<?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: Extract IP and Status from CONTENT of dt.system.events to show in a Dashboard in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Extract-IP-and-Status-from-CONTENT-of-dt-system-events-to-show/m-p/242350#M811</link>
    <description>&lt;P&gt;You can use an additional field as a conditional for your "STATUS", something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record()
| parse content, "WORD:stringStart LD ipaddr:ipv4 LD"
| fieldsAdd Status=if(stringStart== "Failed", "ERROR", else:(if(
                      stringStart== "Host", "Succesful"
                      )))
| fieldsRemove stringStart&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That'd be the case if you only have those two types of records, which are easy to parse.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_2-1712771109152.png" style="width: 845px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18830i1D4AA3CCF9C2F1DA/image-dimensions/845x203?v=v2" width="845" height="203" role="button" title="Eric_Yu_2-1712771109152.png" alt="Eric_Yu_2-1712771109152.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Removing the unnecessary fields, and you'd get the result you wanted.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_1-1712770931397.png" style="width: 452px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18829iF05E8DFA1DDFF86C/image-dimensions/452x126?v=v2" width="452" height="126" role="button" title="Eric_Yu_1-1712770931397.png" alt="Eric_Yu_1-1712770931397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if it helps.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 17:47:41 GMT</pubDate>
    <dc:creator>Eric_Yu</dc:creator>
    <dc:date>2024-04-10T17:47:41Z</dc:date>
    <item>
      <title>Extract IP and Status from CONTENT of dt.system.events to show in a Dashboard</title>
      <link>https://community.dynatrace.com/t5/DQL/Extract-IP-and-Status-from-CONTENT-of-dt-system-events-to-show/m-p/241212#M772</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have few entries coming in&amp;nbsp;&lt;STRONG&gt;dt.system.events&lt;/STRONG&gt; which are coming from SNMP Generic Device extension and wanted to show in a dashboard like below:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;IP&lt;/TD&gt;&lt;TD width="50%"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;0.0.0.0&lt;/TD&gt;&lt;TD width="50%"&gt;ERROR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;1.1.1.1&lt;/TD&gt;&lt;TD width="50%"&gt;Successful&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The entries have all data but I am not able to use DQL Architect to extract information and show in dashboard. Check entries below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to assign monitoring configuration to ActiveGate. Reason: DEVICE_CONNECTION_ERROR:Status DEVICE_CONNECTION_ERROR (38) returned from 1 agents (0.0.0.0: Agent(0.0.0.0): GetBulk timout args: 1.3.6.1.2.1.1.5.0 : request timeout (after 3 retries) [status code=38]);&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Host: 1.1.1.1 Query successful&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Can someone please guide me how to get the table above from the entries shared. Any lead would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 13:20:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extract-IP-and-Status-from-CONTENT-of-dt-system-events-to-show/m-p/241212#M772</guid>
      <dc:creator>Raj</dc:creator>
      <dc:date>2024-03-27T13:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extract IP and Status from CONTENT of dt.system.events to show in a Dashboard</title>
      <link>https://community.dynatrace.com/t5/DQL/Extract-IP-and-Status-from-CONTENT-of-dt-system-events-to-show/m-p/242350#M811</link>
      <description>&lt;P&gt;You can use an additional field as a conditional for your "STATUS", something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record()
| parse content, "WORD:stringStart LD ipaddr:ipv4 LD"
| fieldsAdd Status=if(stringStart== "Failed", "ERROR", else:(if(
                      stringStart== "Host", "Succesful"
                      )))
| fieldsRemove stringStart&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That'd be the case if you only have those two types of records, which are easy to parse.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_2-1712771109152.png" style="width: 845px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18830i1D4AA3CCF9C2F1DA/image-dimensions/845x203?v=v2" width="845" height="203" role="button" title="Eric_Yu_2-1712771109152.png" alt="Eric_Yu_2-1712771109152.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Removing the unnecessary fields, and you'd get the result you wanted.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eric_Yu_1-1712770931397.png" style="width: 452px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18829iF05E8DFA1DDFF86C/image-dimensions/452x126?v=v2" width="452" height="126" role="button" title="Eric_Yu_1-1712770931397.png" alt="Eric_Yu_1-1712770931397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 17:47:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extract-IP-and-Status-from-CONTENT-of-dt-system-events-to-show/m-p/242350#M811</guid>
      <dc:creator>Eric_Yu</dc:creator>
      <dc:date>2024-04-10T17:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract IP and Status from CONTENT of dt.system.events to show in a Dashboard</title>
      <link>https://community.dynatrace.com/t5/DQL/Extract-IP-and-Status-from-CONTENT-of-dt-system-events-to-show/m-p/242401#M815</link>
      <description>&lt;P&gt;Thanks Eric. It helped.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 11:46:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extract-IP-and-Status-from-CONTENT-of-dt-system-events-to-show/m-p/242401#M815</guid>
      <dc:creator>Raj</dc:creator>
      <dc:date>2024-04-11T11:46:32Z</dc:date>
    </item>
  </channel>
</rss>

