Hi
I am using kibana version 4.5.0, elastic search 2.3.1 version and getting the following exception while trying to excuting the below query from Discover tab search bar.
Query1 used :
{
"query": {
"match_all": {}
},
"fields" : ["userid", "username"]
}
Exception for Query1 in Kibana UI :
Error: Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"query_parsing_exception","reason":"[filtered] query does not support [query]","index":"logserver","line":1,"col":145}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"logserver","node":"aRE-5393Q2W9ls2xkTTSUg","reason":{"type":"query_parsing_exception","reason":"[filtered] query does not support [query]","index":"logserver","line":1,"col":145}}]}}
Query2 used :
{
"query" : {
"match_all": {}
},
"aggs" : {
"countSize": {
"avg" : { "field" : "NUM_RECORDS" }
}
}
}
Exception for Query2 in Kibana UI :
Error: Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"query_parsing_exception","reason":"No query registered for [aggs]","index":"logserver","line":1,"col":110}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"logserver","node":"aRE-5393Q2W9ls2xkTTSUg","reason":{"type":"query_parsing_exception","reason":"No query registered for [aggs]","index":"logserver","line":1,"col":110}}]}}
But the same query is working fine when called via elasticsearch REST API and returns the expected result. Please let me know if any settings need to be enabled in kibana or elasticsearch