<?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: Log Processing : Is it possible to use a logattribute to referece a PARSED JSON object value in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Log-Processing-Is-it-possible-to-use-a-logattribute-to-referece/m-p/263948#M1486</link>
    <description>&lt;P&gt;I'm not sure I understand what the problem is.&lt;/P&gt;&lt;P&gt;It looks to like a very common uses case to me. Have you seen &lt;A href="https://docs.dynatrace.com/docs/shortlink/log-monitoring-log-processing-examples#lpexample4" target="_blank"&gt;this&lt;/A&gt; docuemntation example for the classic log processing or the &lt;A href="https://docs.dynatrace.com/docs/shortlink/openpipeline-processing-examples#parse-a-field-containing-json-as-a-raw-string" target="_blank"&gt;equivalent&lt;/A&gt; for OpenPipeline?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be as ease as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PARSE(content,"JSON:parsedJson")
| FIELDS_ADD(f1: parsedJson["intField"]
| FIELDS_REMOVE(parsedJson)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2024 11:09:03 GMT</pubDate>
    <dc:creator>Tomasz_Wozniak</dc:creator>
    <dc:date>2024-11-28T11:09:03Z</dc:date>
    <item>
      <title>Log Processing : Is it possible to use a logattribute to referece a PARSED JSON object value</title>
      <link>https://community.dynatrace.com/t5/DQL/Log-Processing-Is-it-possible-to-use-a-logattribute-to-referece/m-p/228324#M342</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;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 ?&lt;BR /&gt;&lt;BR /&gt;Ex: Fixed JSON dataset&amp;nbsp;&lt;BR /&gt;{ "get_key_1": "value1",&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"get_key_2" :&amp;nbsp;"value2" .... )&lt;BR /&gt;&lt;BR /&gt;Expecting log has check_key="get_key_1"&lt;BR /&gt;i want to reference value1 based on check_key , something like parsedJSON[ ${check_key} ] . Is it possible to do this ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 12:42:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Log-Processing-Is-it-possible-to-use-a-logattribute-to-referece/m-p/228324#M342</guid>
      <dc:creator>pallepavan</dc:creator>
      <dc:date>2024-10-02T12:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Log Processing : Is it possible to use a logattribute to referece a PARSED JSON object value</title>
      <link>https://community.dynatrace.com/t5/DQL/Log-Processing-Is-it-possible-to-use-a-logattribute-to-referece/m-p/263948#M1486</link>
      <description>&lt;P&gt;I'm not sure I understand what the problem is.&lt;/P&gt;&lt;P&gt;It looks to like a very common uses case to me. Have you seen &lt;A href="https://docs.dynatrace.com/docs/shortlink/log-monitoring-log-processing-examples#lpexample4" target="_blank"&gt;this&lt;/A&gt; docuemntation example for the classic log processing or the &lt;A href="https://docs.dynatrace.com/docs/shortlink/openpipeline-processing-examples#parse-a-field-containing-json-as-a-raw-string" target="_blank"&gt;equivalent&lt;/A&gt; for OpenPipeline?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be as ease as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PARSE(content,"JSON:parsedJson")
| FIELDS_ADD(f1: parsedJson["intField"]
| FIELDS_REMOVE(parsedJson)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 11:09:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Log-Processing-Is-it-possible-to-use-a-logattribute-to-referece/m-p/263948#M1486</guid>
      <dc:creator>Tomasz_Wozniak</dc:creator>
      <dc:date>2024-11-28T11:09:03Z</dc:date>
    </item>
  </channel>
</rss>

