Hi,
I’m would like create variable with elasticsearch datasource including min_doc_count:2.
Unfortunately min_doc_count is filtered out from query during execution.
My intention is create variable with only duplicate values.
It can be recreated on playground: https://play.grafana.org/d/000000014/elasticsearch-metrics
Variable query: {“find”:“terms”,“field”:"@hostname",“query”:"@hostname:*",“min_doc_count”:“2”,“size”:400}
Request query looks like:
{“search_type”:“query_then_fetch”,“ignore_unavailable”:true,“index”:[“metrics-2019.01.23”]}
{“size”:0,“query”:{“bool”:{“filter”:[{“range”:{"@timestamp":{“gte”:“1548232637371”,“lte”:“1548234437371”,“format”:“epoch_millis”}}},{“query_string”:{“analyze_wildcard”:true,“query”:"@hostname:*"}}]}},“aggs”:{“1”:{“terms”:{“field”:"@hostname",“size”:400,“order”:{"_term":“asc”}}}}}
It is visible that size parameter is altered but min_doc_count parameter is missing.
Can anybody help ? May I did something wrong.
Thank you in advance
Regards
Radim