<?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: Need a help to fetch log based on the condition from json in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Need-a-help-to-fetch-log-based-on-the-condition-from-json/m-p/270229#M1717</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm not sure I fully understand, but you can automatically parse JSON and then filter it like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data json:"""{
    "ID": {
        "ID": "ghghgghgh",
        "Type": "jj"
    },
    "Fruits": {
        "Character": {
            "color": "red",
            "taste": "bitter"
        },
        "Types": {
            "imported": ["11"],
            "isavailable": "False"
        }
    }
},"""
| parse Fruits[Types][imported][0], "INT:event"
| filter Fruits[Types][imported][0] == "11"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 15:16:34 GMT</pubDate>
    <dc:creator>JeanBlanc</dc:creator>
    <dc:date>2025-02-17T15:16:34Z</dc:date>
    <item>
      <title>Need a help to fetch log based on the condition from json</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-a-help-to-fetch-log-based-on-the-condition-from-json/m-p/270085#M1711</link>
      <description>&lt;P&gt;this is the sample json format need DQL to fetch logs if imported is 11 based on the ID&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"ID": {&lt;BR /&gt;"ID": "ghghgghgh",&lt;BR /&gt;"Type": "jj"&lt;BR /&gt;},&lt;BR /&gt;"Fruits": {&lt;BR /&gt;"Character": {&lt;BR /&gt;"color":"red"&lt;BR /&gt;"taste": bitter,&lt;BR /&gt;&lt;BR /&gt;},&lt;BR /&gt;"Types": {&lt;BR /&gt;"imported": [&lt;BR /&gt;11&lt;BR /&gt;],&lt;BR /&gt;"isavailable": "False",&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 11:21:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-a-help-to-fetch-log-based-on-the-condition-from-json/m-p/270085#M1711</guid>
      <dc:creator>JanJanu</dc:creator>
      <dc:date>2025-02-14T11:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help to fetch log based on the condition from json</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-a-help-to-fetch-log-based-on-the-condition-from-json/m-p/270229#M1717</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm not sure I fully understand, but you can automatically parse JSON and then filter it like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data json:"""{
    "ID": {
        "ID": "ghghgghgh",
        "Type": "jj"
    },
    "Fruits": {
        "Character": {
            "color": "red",
            "taste": "bitter"
        },
        "Types": {
            "imported": ["11"],
            "isavailable": "False"
        }
    }
},"""
| parse Fruits[Types][imported][0], "INT:event"
| filter Fruits[Types][imported][0] == "11"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 15:16:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-a-help-to-fetch-log-based-on-the-condition-from-json/m-p/270229#M1717</guid>
      <dc:creator>JeanBlanc</dc:creator>
      <dc:date>2025-02-17T15:16:34Z</dc:date>
    </item>
  </channel>
</rss>

