I am new to Kibana and ES. I am using Kibana 4.6 . I have read the Kibana 4.6 documentation and it says Discover page in Kibana supports full JSON DSL queries (Discover | Kibana Guide [8.11] | Elastic). But when I enter json query with aggregation it shows "Parse queries failed error". Can someone help me out? I am trying to visualize my search query but this error is blocking me. I am trying to run the following query. It runs fine in Sense.
{
"query": {
"regexp": {
"body.message": ".ended."
}
},
"aggs": {
"group_device": {
"terms": {
"field": "serialNumber"
},
"aggs": {
"group_state": {
"terms": {
"script": {
"lang": "groovy",
"file": "extract_state"
}
},
"aggs": {
"group_time": {
"avg": {
"script": {
"lang": "groovy",
"file": "extract_time"
}
}
}
}
}
}
}
}, "size" : 0
}