for some reason, when I upgraded to the latest elasticsearch version,
the grafana panels do not work for me, and the reason is that i never get the options defined as templated variables.
More specifically, as an example, if i look into the “netelement” grafana templated variable (corresponds to “dev_name” elasticsearch field)
In Kibana, it looks OK:
In Grafana, it does not look OK (no results returned):
I had upgraded Grafana and was working with the old Elasticsearch instance (i do not remember the last before upgrade version of Elasticsearch but it should be 5.x or 6.x I had to migrate that quickly).
In order to make the fields searchable and aggregate-able, the mapping had to change like that: