<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Parsing log content JSON in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/269791#M1693</link>
    <description>&lt;P&gt;Thanks for posting the DQL,&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/64996"&gt;@gbaudart&lt;/a&gt;&amp;nbsp;as it helped me with an issue I've been sitting with the entire day!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@6EDF483EF947B43E16DF999BED8ABCC0/images/emoticons/dynaspin.gif" alt=":dynaspin:" title=":dynaspin:" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 18:50:38 GMT</pubDate>
    <dc:creator>andre_vdveen</dc:creator>
    <dc:date>2025-02-11T18:50:38Z</dc:date>
    <item>
      <title>Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268742#M1645</link>
      <description>&lt;P&gt;I am trying to parse this log content and get the data from the JSON. I need event type, and event_timestamp. Can anyone help with the DQL? Thanks in advance.&lt;/P&gt;&lt;P&gt;2025-01-29 09:37:46,297 app-name [main] DEBUG .util.MessageUtility - Message: {"event_id": "a", "event_source": b, "event_type": "1", "event_taxonomy": "CASE", "event_correlationId": "b967e031", "event_timestamp": 12345678, "event_message": {"agreement_number": "123", "case_type": "A", "previous_status": "000", "new_status": "", "case_id": "123", "schedule_number": null, "additional_info": null}}&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 18:10:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268742#M1645</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2025-01-29T18:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268756#M1646</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67050"&gt;@susmita_k&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can try this (after your fetch and yours filters) :&lt;BR /&gt;&lt;BR /&gt;| parse content, "LD 'Message: 'JSON:json"&lt;BR /&gt;| fieldsFlatten json, fields:{&lt;SPAN&gt;event_type&lt;/SPAN&gt;,&lt;SPAN&gt;event_timestamp&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;Let me know if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:24:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268756#M1646</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2025-01-29T19:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268763#M1647</link>
      <description>&lt;P&gt;yes, it worked, at the same time I am trying to get the log timestamp in EST time, by using below DQL, however, not able to get the result, did I miss anything ?&lt;/P&gt;&lt;P&gt;|PARSE content ,"TIMESTAMP('yyyy-MM-dd HH:mm:ss,SSS'):timestamp_parsed"&lt;BR /&gt;|fieldsAdd log_timestamp == formatTimestamp(timestamp_parsed,format:"yyyy-MM-dd HH:mm:ss,SSS", timezone:"US/Eastern")&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:32:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268763#M1647</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2025-01-29T19:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268766#M1648</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try with only one "="&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| FieldsAdd log_timestamp = formatTimestamp(timestamp_parsed,format:"yyyy-MM-dd HH:mm:ss,SSS", timezone:"US/Eastern")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:46:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268766#M1648</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2025-01-29T19:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268777#M1649</link>
      <description>&lt;P&gt;Thanks so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 21:24:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/268777#M1649</guid>
      <dc:creator>susmita_k</dc:creator>
      <dc:date>2025-01-29T21:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/269791#M1693</link>
      <description>&lt;P&gt;Thanks for posting the DQL,&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/64996"&gt;@gbaudart&lt;/a&gt;&amp;nbsp;as it helped me with an issue I've been sitting with the entire day!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@6EDF483EF947B43E16DF999BED8ABCC0/images/emoticons/dynaspin.gif" alt=":dynaspin:" title=":dynaspin:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 18:50:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/269791#M1693</guid>
      <dc:creator>andre_vdveen</dc:creator>
      <dc:date>2025-02-11T18:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/270936#M1743</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/64996"&gt;@gbaudart&lt;/a&gt;&amp;nbsp;Could you help me in the similar query for our nested JSON which we parsed from the cloudwatch logs.&lt;BR /&gt;This is the content after parsing in it JSON:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{ "AutomationExecutionId": "950a5d72-b10e-4134-8e36-ff040f90460f", "Account_Id": "171739898504", "Region_Name": "us-west-2", "StepExecutions": [ { "StepName": "CreateLogGroup", "Action": "aws:executeScript", "ExecutionStartTime": "2025-02-14 10:30:48.032000+00:00", "ExecutionEndTime": "2025-02-14 10:30:52.097000+00:00", "StepStatus": "Success", "Outputs": { "OutputPayload": [ "{\"Payload\":{\"message\":\"Log group /mcs-ops-patching/950a5d72-b10e-4134-8e36-ff040f90460f created.\\nLog group /mcs-ops-patching/950a5d72-b10e-4134-8e36-ff040f90460f retention policy updated\\n\"}}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Need to print Key:Value pair for eg.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;OutputPayload :&amp;nbsp;"{\"Payload\":{\"message\":\"Log group /mcs-ops-patching/950a5d72-b10e-4134-8e36-ff040f90460f created.\\nLog group /mcs-ops-patching/950a5d72-b10e-4134-8e36-ff040f90460f retention policy updated\\n\"}}"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Attaching the screenshot as well&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 11:53:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/270936#M1743</guid>
      <dc:creator>imsummii</dc:creator>
      <dc:date>2025-02-25T11:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing log content JSON</title>
      <link>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/270987#M1747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/84465"&gt;@imsummii&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can try this (after your fetch and yours filters) :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| parse content, "LD '\"Outputs\": ' JSON:json"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| fieldsFlatten json, fields:{OutputPayload&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;| parse OutputPayload, "LD ': [&amp;nbsp;\"' JSON:json2"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;| fieldsFlatten json2, fields:{message}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 19:17:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parsing-log-content-JSON/m-p/270987#M1747</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2025-02-25T19:17:02Z</dc:date>
    </item>
  </channel>
</rss>

