<?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 issue in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277537#M2106</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/88797"&gt;@sharmas2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In this case, you may need to modify the DQL to suit your requirements. Here’s an example&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter matchesPhrase(dt.security_context,"_sec_intel") 
      or matchesPhrase(dt.security_context,"_sourcefire_secevents")
| fieldsAdd Status = if( 
     (inlineresultid == "5" OR inlineresultid == "0" OR inlineresultid == "2") ,"Detected",
     else:if( 
     (inlineresultid == "1" OR inlineresultid == "4" OR accesscontrolruleaction == "Block" OR isnull(URLSICategory) OR isnull(DNSSICategory) AND isnotnull(IPReputationSICategory)), "Blocked", 
      else:null ))
| fieldsRename market=respondercountry
| summarize by:{Status,market}, {count=count()}
| summarize {market_details= collectArray(array(toString(market),count ))},  by:{Status}
| fieldsAdd market_details=toString(market_details)
| parse market_details, "'[' KVP{ '[' DQS:key ', ' INT:value ']' ', '?}:market_details ']'"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the data like this ? hope this will helps!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-19 at 3.43.57 PM.png" style="width: 820px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28078iD1A34BCB1F8491A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-05-19 at 3.43.57 PM.png" alt="Screenshot 2025-05-19 at 3.43.57 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br,&lt;BR /&gt;Akhil&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 20:46:08 GMT</pubDate>
    <dc:creator>Akhil-Jayendran</dc:creator>
    <dc:date>2025-05-19T20:46:08Z</dc:date>
    <item>
      <title>parsing issue</title>
      <link>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277326#M2090</link>
      <description>&lt;P&gt;I am looking for an ouput as below .&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" width="960" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL width="64" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64" height="19"&gt;market&lt;/TD&gt;
&lt;TD width="64"&gt;Total&lt;/TD&gt;
&lt;TD width="64"&gt;albania&lt;/TD&gt;
&lt;TD width="64"&gt;czech&lt;/TD&gt;
&lt;TD width="64"&gt;ghana&lt;/TD&gt;
&lt;TD width="64"&gt;greece&lt;/TD&gt;
&lt;TD width="64"&gt;ireland&lt;/TD&gt;
&lt;TD width="64"&gt;itfixednw&lt;/TD&gt;
&lt;TD width="64"&gt;netherlands&lt;/TD&gt;
&lt;TD width="64"&gt;nlziggo&lt;/TD&gt;
&lt;TD width="64"&gt;portugal&lt;/TD&gt;
&lt;TD width="64"&gt;spain&lt;/TD&gt;
&lt;TD width="64"&gt;uk&lt;/TD&gt;
&lt;TD width="64"&gt;uklm&lt;/TD&gt;
&lt;TD width="64"&gt;voisind&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Blocked&lt;/TD&gt;
&lt;TD&gt;9001175&lt;/TD&gt;
&lt;TD&gt;10836&lt;/TD&gt;
&lt;TD&gt;56008&lt;/TD&gt;
&lt;TD&gt;1416856&lt;/TD&gt;
&lt;TD&gt;432310&lt;/TD&gt;
&lt;TD&gt;1519&lt;/TD&gt;
&lt;TD&gt;5290800&lt;/TD&gt;
&lt;TD&gt;501189&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;TD&gt;11028&lt;/TD&gt;
&lt;TD&gt;221512&lt;/TD&gt;
&lt;TD&gt;1054954&lt;/TD&gt;
&lt;TD&gt;3645&lt;/TD&gt;
&lt;TD&gt;473&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19"&gt;Detected&lt;/TD&gt;
&lt;TD&gt;1474991&lt;/TD&gt;
&lt;TD&gt;2158&lt;/TD&gt;
&lt;TD&gt;1152029&lt;/TD&gt;
&lt;TD&gt;19880&lt;/TD&gt;
&lt;TD&gt;763&lt;/TD&gt;
&lt;TD&gt;3282&lt;/TD&gt;
&lt;TD&gt;35419&lt;/TD&gt;
&lt;TD&gt;47660&lt;/TD&gt;
&lt;TD&gt;971&lt;/TD&gt;
&lt;TD&gt;1099&lt;/TD&gt;
&lt;TD&gt;6314&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;205394&lt;/TD&gt;
&lt;TD&gt;22&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below query is not giving the required output ..&lt;/P&gt;
&lt;P&gt;fetch logs // scanLimitGBytes: , samplingRatio: 1000&lt;BR /&gt;| filter dt.system.bucket=="custom_group_security"&lt;BR /&gt;| filter contains(dt.security_context, "_sec_intel")&lt;BR /&gt;| filter contains(dt.security_context, "_sourcefire_secevents")&lt;BR /&gt;| filterOut contains(dt.security_context ,"ngss")&lt;BR /&gt;| filterOut contains(dt.security_context ,"gdc")&lt;BR /&gt;| filterOut contains(dt.security_context ,"sspp")&lt;BR /&gt;| parse content,"LD 'URLSICategory:' LD:URLSICategory ','"&lt;BR /&gt;| parse content,"LD 'URLSICategory :' LD:URLSICategory2 ','"&lt;BR /&gt;| parse content,"LD 'URLSICategory=' LD:URLSICategory3 ','"&lt;BR /&gt;| fieldsAdd URLSICategory = coalesce(URLSICategory, URLSICategory2)&lt;BR /&gt;| fieldsAdd URLSICategory = coalesce(URLSICategory, URLSICategory3)&lt;BR /&gt;| parse content, """LD 'DNSSICategory=' [^,]{1,100}?:DNSSICategory "," """&lt;BR /&gt;| parse content,"""LD 'InlineResultID":' LONG:InlineResultID "," """&lt;BR /&gt;| parse content, """LD 'IPReputationSICategory=' [^,]{1,100}?:IPReputationSICategory "," """&lt;BR /&gt;| parse content,"LD 'AccessControlRuleAction: '[0-9a-zA-Z-]{1,100}?:AccessControlRuleAction','"&lt;BR /&gt;| fieldsAdd Status = if( (InlineResultID == 5 OR InlineResultID == 0 OR InlineResultID == 2) ,"Detected",else:&lt;BR /&gt;if( (InlineResultID ==1 OR InlineResultID == 4 OR RuleAction == "Block" OR isnull(URLSICategory) OR isnull(DNSSICategory) AND isnotnull(IPReputationSICategory)), "Blocked", else:null))&lt;BR /&gt;| filter isnotnull(Status)&lt;BR /&gt;| summarize count(),by:{Status,market}&lt;BR /&gt;//| fieldsAdd market = substring(dt.security_context, to: indexOf(dt.security_context, "_"))&lt;BR /&gt;//| fieldsAdd market = replaceString(market, "cita", "")&lt;BR /&gt;//| fieldsAdd date = formatTimestamp(timestamp, format:"MM-dd-yyyy")&lt;BR /&gt;//| summarize co{market}, by:{date,Status}&lt;BR /&gt;//| fieldsSummary market ,Status&lt;/P&gt;
&lt;P&gt;Please find the below raw data as well :-&lt;/P&gt;
&lt;P&gt;| filter contains(dt.security_context, "_sec_intel")&lt;/P&gt;
&lt;P&gt;====================================&lt;BR /&gt;May 08 2025 14:48:27 VCIMilanSecIntel : %FTD-1-430002: EventPriority=High, DeviceUUID=3fca3c60-fcae-11de-91ea-975343494af9, InstanceID=9, FirstPacketSecond=2025-05-08T14:48:27Z, ConnectionID=10078, AccessControlRuleAction=Block, AccessControlRuleReason=IP Block, SrcIP=83.222.191.170, DstIP=37.25.168.243, SrcPort=40227, DstPort=7356, Protocol=tcp, IngressInterface=DPB1-IN, EgressInterface=DPB1-OUT, IngressZone=CITADEL-Milan-DPB1, EgressZone=CITADEL-Milan-DPB1, ACPolicy=NGSS2-Milan, Prefilter Policy=NGSS2-Milan-Prefilter, InitiatorPackets=1, ResponderPackets=0, InitiatorBytes=58, ResponderBytes=0, SecIntMatchingIP=Source, IPReputationSICategory=Custom-Blocklist-Global-IP_FS, ClientAppDetector=AppID, HostName=IT1IPS03BIN1-1_2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| filter contains(dt.security_context, "_sourcefire_secevents")&lt;/P&gt;
&lt;P&gt;==========================================&lt;/P&gt;
&lt;P&gt;{"EventType":"IntrusionEvent","EventSecond":1746715592,"EventMicrosecond":157111,"DeviceUUID":"3fca3c60-fcae-11de-91ea-975343494af9","InstanceID":18,"FirstPacketSecond":1746715591,"ConnectionID":37483,"InitiatorIP":"157.72.65.130","ResponderIP":"195.232.147.125","InitiatorPort":11768,"ResponderPort":123,"Protocol":"udp","IngressInterface":"DPB1-IN","EgressInterface":"DPB1-OUT","IngressZone":"CITADEL-Milan-DPB1","EgressZone":"CITADEL-Milan-DPB1","PriorityID":2,"GeneratorID":3,"SignatureID":39878,"SignatureRevision":4,"Impact":2,"IntrusionRuleMessage":"SERVER-OTHER Cisco IOS truncated NTP packet processing denial of service attempt","Classification":"Inappropriate content was detected","IntrusionPolicy":"Milan-Blocking-Policy_S3","FirewallPolicy":"NGSS2-Milan","FirewallRule":"To Legacy applications","NAP_Policy":"NGSS2-Milan-NAP-Snort3","InlineResult":"Block","VLAN_ID":3101,"Device":"IT1IPS03BIN1-1_2","DeviceIP":"198.19.40.21","DeviceSerialNumber":"FLM2443067L","EgressInterfaceUUID":"47a1da92-a6ac-11eb-b4ad-fb6eab37a80a","EgressZoneUUID":"47b3a240-a6ac-11eb-b4ad-fb6eab37a80a","EventID":1127183,"FirewallPolicyUUID":"00000000-0000-0000-0000-0000681c487b","FirewallRuleID":268436578,"Hostname":"IE1FMCATS1-A1","ImpactFlag":7,"IngressInterfaceUUID":"4759ef8e-a6ac-11eb-b4ad-fb6eab37a80a","IngressZoneUUID":"47b3a240-a6ac-11eb-b4ad-fb6eab37a80a","InitiatorContinent":"Asia","InitiatorContinentCode":"as","InitiatorCountry":"Japan","InitiatorCountryCode":"jpn","InitiatorCountryID":392,"InlineResultID":4,"IntrusionPolicyRevUUID":"82e629b0-6543-11ef-b36c-117b0c432ecb","IntrusionPolicyUUID":"a488735a-d4ea-0ed3-0000-326418261953","NAP_PolicyUUID":"cf0ab078-437d-11ef-ab6b-97ee0b432ecb","ProtocolID":17,"RealmID":0,"RealmName":"Invalid ID","ResponderContinent":"Europe","ResponderContinentCode":"eu","ResponderCountry":"Germany","ResponderCountryCode":"deu","ResponderCountryID":276,"SensorID":2,"SnortVersionID":3,"UserID":9999997}&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 08:50:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277326#M2090</guid>
      <dc:creator>sharmas2</dc:creator>
      <dc:date>2025-05-16T08:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: parsing issue</title>
      <link>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277445#M2095</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/88797"&gt;@sharmas2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It looks like your raw data doesn’t contain all the expected fields, but the data appears to be in JSON format. I believe you can use a simple DQL query like the one below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter matchesPhrase(dt.security_context,"_sec_intel") or matchesPhrase(dt.security_context,"_sourcefire_secevents")
| fieldsAdd Status = if( (inlineresultid == "5" OR inlineresultid == "0" OR inlineresultid == "2") ,"Detected",else:
if( (inlineresultid == "1" OR inlineresultid == "4" OR accesscontrolruleaction == "Block" OR isnull(URLSICategory) OR isnull(DNSSICategory) AND isnotnull(IPReputationSICategory)), "Blocked", else:null))
| fieldsRename market=respondercountry
| fieldsKeep Status, inlineresultid,accesscontrolruleaction,market
|summarize count(),by:{Status,market}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;You might get result like this.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-18 at 8.21.43 PM.png" style="width: 684px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28059i860FA9263701112E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-05-18 at 8.21.43 PM.png" alt="Screenshot 2025-05-18 at 8.21.43 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Akhil&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 01:23:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277445#M2095</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-05-19T01:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: parsing issue</title>
      <link>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277521#M2103</link>
      <description>&lt;P&gt;no i want result as below ..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sharmas2_0-1747671298091.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28073iB04771DFE68D4A1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sharmas2_0-1747671298091.png" alt="sharmas2_0-1747671298091.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 16:15:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277521#M2103</guid>
      <dc:creator>sharmas2</dc:creator>
      <dc:date>2025-05-19T16:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: parsing issue</title>
      <link>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277537#M2106</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/88797"&gt;@sharmas2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In this case, you may need to modify the DQL to suit your requirements. Here’s an example&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter matchesPhrase(dt.security_context,"_sec_intel") 
      or matchesPhrase(dt.security_context,"_sourcefire_secevents")
| fieldsAdd Status = if( 
     (inlineresultid == "5" OR inlineresultid == "0" OR inlineresultid == "2") ,"Detected",
     else:if( 
     (inlineresultid == "1" OR inlineresultid == "4" OR accesscontrolruleaction == "Block" OR isnull(URLSICategory) OR isnull(DNSSICategory) AND isnotnull(IPReputationSICategory)), "Blocked", 
      else:null ))
| fieldsRename market=respondercountry
| summarize by:{Status,market}, {count=count()}
| summarize {market_details= collectArray(array(toString(market),count ))},  by:{Status}
| fieldsAdd market_details=toString(market_details)
| parse market_details, "'[' KVP{ '[' DQS:key ', ' INT:value ']' ', '?}:market_details ']'"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the data like this ? hope this will helps!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-19 at 3.43.57 PM.png" style="width: 820px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28078iD1A34BCB1F8491A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-05-19 at 3.43.57 PM.png" alt="Screenshot 2025-05-19 at 3.43.57 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br,&lt;BR /&gt;Akhil&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 20:46:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277537#M2106</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-05-19T20:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: parsing issue</title>
      <link>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277558#M2107</link>
      <description>&lt;P&gt;Hi Akhil,&lt;/P&gt;&lt;P&gt;thanks for your efforts but&amp;nbsp; i am getting output as below ..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sharmas2_0-1747729233742.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28083i618D4A63CDCEE0D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sharmas2_0-1747729233742.png" alt="sharmas2_0-1747729233742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 08:21:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277558#M2107</guid>
      <dc:creator>sharmas2</dc:creator>
      <dc:date>2025-05-20T08:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: parsing issue</title>
      <link>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277631#M2115</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/88797"&gt;@sharmas2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can try this ,&amp;nbsp; This is a sample query you should adjust this query according to your needs.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data json:"""[

{"EventType":"IntrusionEvent","EventSecond":1746715592,"EventMicrosecond":157111,"DeviceUUID":"3fca3c60-fcae-11de-91ea-975343494af9","InstanceID":18,"FirstPacketSecond":1746715591,"ConnectionID":37483,"InitiatorIP":"157.72.65.130","ResponderIP":"195.232.147.125","InitiatorPort":11768,"ResponderPort":123,"Protocol":"udp","IngressInterface":"DPB1-IN","EgressInterface":"DPB1-OUT","IngressZone":"CITADEL-Milan-DPB1","EgressZone":"CITADEL-Milan-DPB1","PriorityID":2,"GeneratorID":3,"SignatureID":39878,"SignatureRevision":4,"Impact":2,"IntrusionRuleMessage":"SERVER-OTHER Cisco IOS truncated NTP packet processing denial of service attempt","Classification":"Inappropriate content was detected","IntrusionPolicy":"Milan-Blocking-Policy_S3","FirewallPolicy":"NGSS2-Milan","FirewallRule":"To Legacy applications","NAP_Policy":"NGSS2-Milan-NAP-Snort3","InlineResult":"Block","VLAN_ID":3101,"Device":"IT1IPS03BIN1-1_2","DeviceIP":"198.19.40.21","DeviceSerialNumber":"FLM2443067L","EgressInterfaceUUID":"47a1da92-a6ac-11eb-b4ad-fb6eab37a80a","EgressZoneUUID":"47b3a240-a6ac-11eb-b4ad-fb6eab37a80a","EventID":1127183,"FirewallPolicyUUID":"00000000-0000-0000-0000-0000681c487b","FirewallRuleID":268436578,"Hostname":"IE1FMCATS1-A1","ImpactFlag":7,"IngressInterfaceUUID":"4759ef8e-a6ac-11eb-b4ad-fb6eab37a80a","IngressZoneUUID":"47b3a240-a6ac-11eb-b4ad-fb6eab37a80a","InitiatorContinent":"Asia","InitiatorContinentCode":"as","InitiatorCountry":"Japan","InitiatorCountryCode":"jpn","InitiatorCountryID":392,"InlineResultID":4,"IntrusionPolicyRevUUID":"82e629b0-6543-11ef-b36c-117b0c432ecb","IntrusionPolicyUUID":"a488735a-d4ea-0ed3-0000-326418261953","NAP_PolicyUUID":"cf0ab078-437d-11ef-ab6b-97ee0b432ecb","ProtocolID":17,"RealmID":0,"RealmName":"Invalid ID","ResponderContinent":"Europe","ResponderContinentCode":"eu","ResponderCountry":"Germany","ResponderCountryCode":"deu","ResponderCountryID":276,"SensorID":2,"SnortVersionID":3,"UserID":9999997,"dt.security_context": "_sec_intel"}

  ]"""


| filter matchesPhrase(dt.security_context,"_sec_intel") 
      or matchesPhrase(dt.security_context,"_sourcefire_secevents")
| fieldsAdd Status = if( 
     (InlineResultID == "5" OR InlineResultID == "0" OR InlineResultID == "2") ,"Detected",
     else:if( 
     ((InlineResultID == "1" OR InlineResultID == "4" OR accesscontrolruleaction == "Block" OR isnull(URLSICategory) OR isnull(DNSSICategory))), "Blocked", 
      else:null ))
| fieldsRename market=ResponderCountry
| summarize by:{Status,market}, {count=count()}
| summarize {market_details= collectArray(array(toString(market),count ))},  by:{Status}
| fieldsAdd market_details=toString(market_details)
| parse market_details, "'[' KVP{ '[' DQS:key ', ' INT:value ']' ', '?}:market_details ']'"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 20:47:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/parsing-issue/m-p/277631#M2115</guid>
      <dc:creator>Akhil-Jayendran</dc:creator>
      <dc:date>2025-05-20T20:47:52Z</dc:date>
    </item>
  </channel>
</rss>

