Set Default Filter in Kibana for latest id in DSL

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

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