Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable query for terms returns None #36

Closed
IamShubhamGupto opened this issue Feb 12, 2022 · 1 comment
Closed

Variable query for terms returns None #36

IamShubhamGupto opened this issue Feb 12, 2022 · 1 comment

Comments

@IamShubhamGupto
Copy link

I am trying to create variables on a grafana dashboard using the query option. I am required to provide a JSON query, however, the query does not seem to work.

Query : {"find": "terms", "field": "@type"}

Alternate variations:
I have replaced field with type, fields.type.keyword, type.keyword but no use, the variable always is None

image

The query {"find": "fields", "type": "string"} works fine and displays all tags which contain the type string.

image

Grafana version: [v8.3.0 (914fcedb72)]
Elasticsearch version: 7.15.2
Data source version: v7.0+

Sample data structure

{
    ...
    "type": "string"
    ...
   "field2": {
       ...
   }
}
@IamShubhamGupto
Copy link
Author

resolved in grafana/grafana#45589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant