Hi all,
I have written this KQL query in dev console, and it runs fine.
GET _search
{
"query": {
"bool" : {
"must" : [
{"exists": {"field": "kubernetes.deployment.replicas"}}
,
{"range": {"@timestamp":{
"gte": "now-30s"
}}
}
]
}
}
}
I want to save it for reuse later, but then I figure out that it cannot be saved from the dev console. By googling I read from people that to save it , I need to copy the query onto the query input field on the discovery page, and from there , it can be saved.
That's what I am doing, but as soon as it is copped, it executes, and at best it stop with an error, at worst, it runs forever freezing my Kibana session.
Note that I do not copy over on discovery the GET_Search {"query": {}} enveloppe, but only its content:
"bool" : {
"must" : [
{"exists": {"field": "kubernetes.deployment.replicas"}}
,
{"range": {"@timestamp":{
"gte": "now-30s"
}}
}
]
}
what works in discovery is just:
kubernetes.deployment.replicas.available : *
But i need the complex one as it need to be further developed.
Did i missed something ?
Any suggestion, somebody solved that ?
Thanks
Jean