# Parse Json logs with a compact json formatter

**URL:** <https://community.dynatrace.com/t/parse-json-logs-with-a-compact-json-formatter/47597>\
**Category:** DQL\
**Tags:** dql, logs\
**Created:** [September 11, 2024, 12:43pm UTC](https://community.dynatrace.com/t/parse-json-logs-with-a-compact-json-formatter/47597 "2024-09-11T12:43:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![faraz](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@faraz](https://community.dynatrace.com/u/faraz)\
**Post date:** [September 11, 2024, 12:43pm UTC](https://community.dynatrace.com/t/parse-json-logs-with-a-compact-json-formatter/47597/1 "2024-09-11T12:43:21Z")

</div>

Hi,&nbsp;  
I am trying to come up with a query to parse the incoming log with compact json format from [Serilog](https://github.com/serilog/serilog-formatting-compact?tab=readme-ov-file#comparison)

The problem I am facing is I cant use&nbsp;@ for the matcher name.

**Sample log**

{“@t”:“2024-09-11T05:25:43.6670035Z”,“@mt”:“Finished publishing product updates.”,“@tr”:“84074a2818729843acdaa18a3650fed5”}

**Query**

fetch logs  
| filter matchesPhrases (content,“12025657”) // to get the exact logs  
| parse content, “JSON:structuredLog”  
| fieldsadd client\_time = structuredLog[@t] // \<--- Syntax Error here with the&nbsp;@t

Any advice would be appreciated

Thanks

---

_[View the full topic](https://community.dynatrace.com/t/parse-json-logs-with-a-compact-json-formatter/47597)._
