I want to run this below query in kibana discover filter
"aggs": {
"response_term": {
"terms": {
"field": "ResponseCode.keyword",
"size": 100000
},
"aggs":
{
"response": {
"cardinality": {
"field": "ResponseCode.keyword"
}
},
"response_code_filter":{
"bucket_selector": {
"buckets_path": {
"max_10": "response"
},
"script": "params.max_10 > 10"
}
}
}
}
}
But i am getting unknown field [aggs]