Hi Guys,
I've created my own Kibana dashboard. In this dashobard I've added 3 "saved search" created by me.
Everything works fine. What I need to do now is to modify one of these "saved search" to be indipendet by the time range specified in the top-right corner. The output of the "saved search" should be the last N documents stored in the specified index (ignoring the time-range configured).
Is that possible?
Using the REST API I can write something like that:
GET /myindex-*/_search
{
"size" : 3,
"query": {
"bool" : {
"must" : {
"match_all": {}
},
"filter": {
"range": {
"@timestamp": { "gt": "now-1y" }
}
}
}
}
}
I would like to create a search request to be added in my dashboard that reproduce the same query (better without specifying the range filter but to query the whole index to find the last 3 elements)