My issue is related to the following post…
https://groups.io/g/grafana/topic/1639329
Has this been resolved? I am still running into this issue.
Using Grafana 4.2.0 Docker
Using Elasticsearch 5.3.0 Docker
…
When making an elasticsearch template query
{“find”: “terms”, “field”: “@hostname”}
grafana sends the following request…
https://MY_HOSTNAME/api/datasources/proxy/2/_msearch?search_type=count
with request payload…
{“search_type”:“count”,“ignore_unavailable”:true,“index”:“filebeat-"}
{“size”:0,“query”:{“bool”:{“filter”:[{“range”:{"@timestamp":{“gte”:“1494543765410”,“lte”:“1494544665410”,“format”:“epoch_millis”}}},{“query_string”:{“analyze_wildcard”:true,“query”:"”}}]}},“aggs”:{“1”:{“terms”:{“field”:"@hostname",“size”:500,“order”:{"_term":“asc”}}}}}
and receives the response…
{“error”:{“root_cause”:[{“type”:“illegal_argument_exception”,“reason”:“No search type for [count]”}],“type”:“illegal_argument_exception”,“reason”:“No search type for [count]”},“status”:400}