Variable query for all dashboard. Simple

Hi! I think that it is very simple but…

I have a dashboard, where every element have a ‘Filter Queries’ like this - userAccount:“foobar”, and it works. But I think that best way is to create a variable with query that will affect to all dashboard elements (graphs, tables, panels). But I cant make a query. I read all the manuals ((

Elasticsearch
Dashboard-Variables
Type:Query
Query:{“find”: “fields”, “query”:“userAccount:‘foobar’”}

Thanks)

Hi,

According to documentation you should use

{“find”: “terms”, “field”: “@hostname”, “query”: ‘’}

Returns a list of values for a field using term aggregation & and a specified lucene query filter. Query will use current dashboard time range as time range for query.

Marcus