# Grafana dropdown variables list

**URL:** <https://community.grafana.com/t/grafana-dropdown-variables-list/39599>\
**Category:** Grafana\
**Created:** [November 22, 2020, 6:45pm UTC](https://community.grafana.com/t/grafana-dropdown-variables-list/39599 "2020-11-22T18:45:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![melanxolik](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@melanxolik](https://community.grafana.com/u/melanxolik)\
**Post date:** [November 22, 2020, 6:45pm UTC](https://community.grafana.com/t/grafana-dropdown-variables-list/39599/1 "2020-11-22T18:45:51Z")

</div>

Hi All,

Is it possible to make a dropdown list which based on templates and variables for next logs line:

> 2020-11-22T20:41:41+02:00 {} {“asked\_host”:“dns-cache01”, “requested\_domain”:“[vmi71744.contar.net](http://vmi71744.contar.net)”,“src\_ip”:“19.10.173.137”, “q\_type”:“A”,“q\_code”:“NOERROR”}  
> 2020-11-22T20:41:41+02:00 {} {“asked\_host”:“dns-cache01”, “requested\_domain”:“vmi71744.conta.nt”,“src\_ip”:“19.10.173.128”, “q\_type”:“A”,“q\_code”:“NOERROR”}  
> 2020-11-22T20:41:41+02:00 {} {“asked\_host”:“dns-cache01”, “requested\_domain”:“vmi71744.contar.nt”,“src\_ip”:“19.10.173.10”, “q\_type”:“A”,“q\_code”:“NOERROR”}  
> 2020-11-22T20:41:41+02:00 {} {“asked\_host”:“dns-cache01”, “requested\_domain”:“vmi71744.contar.nt”,“src\_ip”:“19.100.173.10”, “q\_type”:“A”,“q\_code”:“NOERROR”}

I saw that for variable it’s possible to use labels, but is it possible to combine labels and some text filters?  
I would like to make a dropdown list with filter by q\_code values

---

<div class="post-metadata">

**Author:** ![ewelch](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ewelch/32/13744_2.png) [@ewelch](https://community.grafana.com/u/ewelch)\
**Post date:** [November 27, 2020, 4:13pm UTC](https://community.grafana.com/t/grafana-dropdown-variables-list/39599/2 "2020-11-27T16:13:19Z")

</div>

I think this would need to be asked over in #support

We are just now focusing more effort in supporting Loki here and haven’t really figure out where UI questions that are closely tied to Loki should go, but at the moment mostly only Loki devs are checking here so for better results I would ask this over in #support

---

<div class="post-metadata">

**Author:** ![michaelpistrang](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/michaelpistrang/32/14225_2.png) [@michaelpistrang](https://community.grafana.com/u/michaelpistrang)\
**Post date:** [December 29, 2020, 2:23am UTC](https://community.grafana.com/t/grafana-dropdown-variables-list/39599/3 "2020-12-29T02:23:25Z")

</div>

I found this post as I am searching for the exact same answer. I have yet to find an equivalent post in #support.

Has anybody found an answer to this yet? I’ve asked in the community slack and got no reply, so I’m hoping that bumping this helps.
