Elasticsearch query based on timestamp from kibana (dev tools)

Hello All,
I am using ELK 8.3.3 on Docker. When I am trying to fetch the data with any timestamp range, I am getting the correct output. But when I am trying to fetch the data based on the below, I am getting nothing. PFA for the reference.

Query:-

GET /btestprod/_search
{
"query": {
"range": {
"@timestamp": {
"gte": "2023-06-01T00:00:00Z",
"lt": "2023-07-01T00:00:00Z"
}
}
}
}

Output:-
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 0,
"relation": "eq"
},
"max_score": null,
"hits":
}
}

Hello,

Please show an example of the query that is working.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.