# Json Parsed Variable

**URL:** <https://community.grafana.com/t/json-parsed-variable/110720>\
**Category:** Grafana\
**Tags:** loki\
**Created:** [December 25, 2023, 9:03am UTC](https://community.grafana.com/t/json-parsed-variable/110720 "2023-12-25T09:03:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lg838603](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lg838603](https://community.grafana.com/u/lg838603)\
**Post date:** [December 25, 2023, 9:03am UTC](https://community.grafana.com/t/json-parsed-variable/110720/1 "2023-12-25T09:03:57Z")

</div>

I am using loki as datasource and I am getting logs in json format.  
Currently we are using static labels in variable, I want to use json parsed labels in variable. Is there a way?  
Also I am not getting all keys from json as label. Is there a way I can get all key as labels and on the basis of levels fetched from logs I create variable so variables can be dynamic.

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [December 25, 2023, 7:42pm UTC](https://community.grafana.com/t/json-parsed-variable/110720/2 "2023-12-25T19:42:39Z")

</div>

No, you can’t have variable from any parser.
