Hi all,
I am struggling with a table view that only shows interfaces that are utilized 70% or more.
I received something like below as guidance but have no clue how to capture this in the Kibana GUI interface. I can't find the Bucket Filter, Selector , Path etc to enforce this.
curl -XPOST "<>/_search" -H 'Content-Type: application/json' -d'
{
"size": 0,
"query": {
"bool": {
"must": [
{
"match": {
"element_class": "MetricFamily.Interface"
}
},
{
"match": {
"name": "Utilization"
}
}
]
}
},
"aggs": {
"interfaces": {
"terms": {
"field": "ci_name.keyword"
},
"aggs": {
"average": {
"avg": {
"field": "value"
}
},
"bucket_filter": {
"bucket_selector": {
"buckets_path": {
"averageUtilization": "average"
},
"script": "params.averageUtilization >= 70"
}
}
}
}
}
}'