Hello, I'm facing a problem with Kibana alerting:
- I defined my query DSL and defined an aggregation
- I want to access the result of the aggregation returned using the query. Kibana only suggest
{{context.hits}}
but I'm not interested on hits, instead I'm interested on something like{{context.aggregations}}
but doesn't work. Is it also possible to use thectx
like in watchers ?
below the aggregations response :
#top of response ...
"aggregations" : {
"job_status" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "value1",
"doc_count" : 53017
},
{
"key" : "value2",
"doc_count" : 52977
},
{
"key" : "value3",
"doc_count" : 40
}
]
}
}
what i'm looking for:
Youssef
Thank you