# Grail and JSON formatted logs

**URL:** <https://community.dynatrace.com/t/grail-and-json-formatted-logs/39158>\
**Category:** Logs\
**Tags:** grail, latest-dynatrace, logs\
**Created:** [April 4, 2023, 5:58pm UTC](https://community.dynatrace.com/t/grail-and-json-formatted-logs/39158 "2023-04-04T17:58:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [April 4, 2023, 5:58pm UTC](https://community.dynatrace.com/t/grail-and-json-formatted-logs/39158/1 "2023-04-04T17:58:06Z")

</div>

If upgrading to Grail, does anyone know if it will allow us to treat log messages formatted in JSON and query by key/value pair?

---

<div class="post-metadata">

**Author:** ![rgarzon1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rgarzon1/32/11844_2.png) [@rgarzon1](https://community.dynatrace.com/u/rgarzon1)\
**Post date:** [April 5, 2023, 5:26am UTC](https://community.dynatrace.com/t/grail-and-json-formatted-logs/39158/2 "2023-04-05T05:26:07Z")

</div>

Hi GregOReily

Yes its posible you can use the Json parse

- [DQL Parsing Json](https://www.dynatrace.com/support/help/shortlink/dql-data-types#variant-t)

or you can do a processing rule to math only the keys that you need before storage and next query them in grail without parsing

- [Processing Rule for Logs](https://www.dynatrace.com/support/help/shortlink/log-monitoring-log-processing-examples#lpexample4)

Based on my comprehension, it is feasible.

Regards

---

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [April 17, 2023, 8:20am UTC](https://community.dynatrace.com/t/grail-and-json-formatted-logs/39158/3 "2023-04-17T08:20:18Z")

</div>

To clarify, these are features only available in grail, not available in Log Management today?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 17, 2023, 8:26am UTC](https://community.dynatrace.com/t/grail-and-json-formatted-logs/39158/4 "2023-04-17T08:26:32Z")

</div>

Hi,

DQL is only available in Grail.

Best regards

---

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [April 17, 2023, 8:51am UTC](https://community.dynatrace.com/t/grail-and-json-formatted-logs/39158/5 "2023-04-17T08:51:16Z")

</div>

Thanks, I gathered this would be the case.
