I am working on ELK stack to process Apache access logs. Spent a lot of time understanding Query DSL format so that more complex queries can be written. Currently am facing issues with running the queries in kibana interface but the same queries work just fine when sent using curl from command line.
Kibana version: 4.1.0
Elasticsearch version: 1.6.0
Java: 1.8.0_45
Using curl(working):
curl -XGET http://localhost:9200/cars/transactions/_search?search_type=count -d '{
"aggs" : {
"colors" : {
"terms" : {
"field" : "color"
}}}}'
Used data from here.
Using kibana(not working):
{ "aggs" : { "colors" : { "terms" : { "field" : "color" } } } }
Error:
org.elasticsearch.index.query.QueryPassingException:[.kibana] No query registered for [aggs]
Below are some of the queries I manage to run successfully in kibana using Query DSL on apache access log data,
- {"filtered":{"filter":{"bool":{"must":{"terms":{"verb":["get"]}}}}}}
- {"filtered":{"filter":{"bool":{"must_not":{"terms":{"agent":["crawler","spider","nagios"]}}}}}}
Any help will be greatly appreciated. I have already searched google about it for hours but without luck. Thanks in advance.