Help understanding range query with date

Hi all,
I'm very new beginner with ELK stack.
I'm trying to build a query that should get the documents created today.
I thougt to write this query:

   "query": {
  "range": {
    "@timestamp": {
      "gte": "now/d",
      "lt": "now"
    }
 }
}

Unfortunately elasticsearch gives back documents with timestamps outside this range.
What am I doing wrong?

Thank You

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