# Log Processing : Is it possible to use a logattribute to referece a PARSED JSON object value

**URL:** <https://community.dynatrace.com/t/log-processing-is-it-possible-to-use-a-logattribute-to-referece-a-parsed-json-object-value/42548>\
**Category:** DQL\
**Tags:** dql, grail, logs\
**Created:** [November 9, 2023, 7:43pm UTC](https://community.dynatrace.com/t/log-processing-is-it-possible-to-use-a-logattribute-to-referece-a-parsed-json-object-value/42548 "2023-11-09T19:43:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pallepavan](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pallepavan](https://community.dynatrace.com/u/pallepavan)\
**Post date:** [November 9, 2023, 7:43pm UTC](https://community.dynatrace.com/t/log-processing-is-it-possible-to-use-a-logattribute-to-referece-a-parsed-json-object-value/42548/1 "2023-11-09T19:43:28Z")

</div>

Hi All,

I am trying to enrich log based on a Fixed JSON dataset and incoming log attribute, I have parsed the Fixed json object and trying to add a new field value from Json while existing log attribute as key. is this possible to do this ?

Ex: Fixed JSON dataset&nbsp;  
{ “get\_key\_1”: “value1”,

“get\_key\_2” :&nbsp;“value2” … )

Expecting log has check\_key=“get\_key\_1”  
i want to reference value1 based on check\_key , something like parsedJSON[${check\_key}] . Is it possible to do this ?

---

<div class="post-metadata">

**Author:** ![Tomasz\_Wozniak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomasz_wozniak/32/31321_2.png) [@Tomasz\_Wozniak](https://community.dynatrace.com/u/Tomasz_Wozniak)\
**Post date:** [November 28, 2024, 11:09am UTC](https://community.dynatrace.com/t/log-processing-is-it-possible-to-use-a-logattribute-to-referece-a-parsed-json-object-value/42548/2 "2024-11-28T11:09:03Z")

</div>

I’m not sure I understand what the problem is.

It looks to like a very common uses case to me. Have you seen [this](https://docs.dynatrace.com/docs/shortlink/log-monitoring-log-processing-examples#lpexample4) docuemntation example for the classic log processing or the [equivalent](https://docs.dynatrace.com/docs/shortlink/openpipeline-processing-examples#parse-a-field-containing-json-as-a-raw-string) for OpenPipeline?

It should be as ease as

```markup
PARSE(content,"JSON:parsedJson")
| FIELDS_ADD(f1: parsedJson["intField"]
| FIELDS_REMOVE(parsedJson)

```
