Hi, I'm having an issue with Kibana dashboard filter (" + Add filter " option located at the top left corner) isn't applied to a vega-lite visualization.
Here is an example, visualization is using URL to fetch data from Elasticsearch with a body containing query
and aggregation
parts. That being said, the query
part looks like this:
"query": { "bool": { "must": [ "%dashboard_context-must_clause%", { "range": { "eventTime": {"%timefilter%": true} } } ], "must_not": ["%dashboard_context-must_not_clause%"], "filter": [ { "term": {"status": 0} } ] } }
This gives me:
If I apply the filter nothing changes ???
If you inspect some random request from Kibana being sent towards elastic, you can see that filer is contained inside filter
part of the query.bool
:
I've tried putting "%dashboard_context-filter_clause%"
"query": { "bool": { "must": [ "%dashboard_context-must_clause%", { "range": { "eventTime": {"%timefilter%": true} } } ], "must_not": ["%dashboard_context-must_not_clause%"], "filter": [ "%dashboard_context-filter_clause%", <-- **THIS LINE HERE** !!! { "term": {"status": 0} } ] } }
(a wild guess, don't know if that really exists) but that didn't work.
So, bottom line, how can I get Kibana dashboard filter to apply to vega-lite as it does for other types of data visualizations?
Thanks.