Granted documents query with filter by @timestamp

I have a similar issue with granted documents query (as Document Level Security & Combining queries together)

I use following query:

{
    "bool": {
      "filter": [
        {
          "range": {
            "@timestamp": {
              "gte": "now-90d"
            }
          }
        }
      ]
    }
}

and on Descover tab I see an error Error: Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"parse_exception","reason":"could not read the current timestamp"}

How I can use range by @timestamp in granted documents query?

Thanks.

@Anton_Matveev

I appreciate you're tagging my topic, I must have missed @ikakavas reply :sleeping: which wasn't formatting error as json was valid.

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