Set Default Filter in Kibana for latest id in DSL

(Sakina Shaikh) #1

I want the filter to be set on dashboard which will fetch only latest record

So Used below query in DSL

{
  "query": {
    "match_all": {}
  },
  "size": 1,
  "sort": [
    {
      "_id": {
        "order": "desc"
      }
    }
  ]
}

This is not working in Elasticsearch Kibana 7

"size" : 1 not working
(system) closed #2

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