<?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: DQL+ DPL summarize in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-DPL-summarize/m-p/251229#M1077</link>
    <description>&lt;P&gt;Yes, it is possible with combination of couple of functions. I used example line and created 5 log lines out it with different IDs (2+2+1)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-99cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-88cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-88cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded""")

| fieldsAdd content = if( matchesPhrase(content, "Exchange[ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]"), content, else: replacePattern(content, "'Exchange[ID' LD ']'", "Exchange[ID-*]" ) )
| summarize {cnt=count()}, by: {content}&lt;/LI-CODE&gt;&lt;P&gt;If line contains given ID, I leave it without modifications. In other cases I use &lt;EM&gt;&lt;STRONG&gt;replacePattern&lt;/STRONG&gt;&lt;/EM&gt; function to modify content and remove not needed ID. After this operation when I summarize by content I just get 2 groups&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1721669606993.png" style="width: 850px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21267iAE6F61753E383A43/image-dimensions/850x170?v=v2" width="850" height="170" role="button" title="krzysztof_hoja_0-1721669606993.png" alt="krzysztof_hoja_0-1721669606993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope I understood the need correctly&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2024 17:37:07 GMT</pubDate>
    <dc:creator>krzysztof_hoja</dc:creator>
    <dc:date>2024-07-22T17:37:07Z</dc:date>
    <item>
      <title>DQL+ DPL summarize</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-DPL-summarize/m-p/251191#M1076</link>
      <description>&lt;P&gt;Good afternoon community,&lt;/P&gt;&lt;P&gt;I'm trying to summarize the count of some exception - everything it's easy but some exception may vary based on some ID contained in the text. For example:&lt;BR /&gt;&lt;BR /&gt;Inbound processing in endpoint at /IOM/**** failed with message "Fault:Sequential processing failed for number 0. Exchange[&lt;FONT color="#FF9900"&gt;ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098&lt;/FONT&gt;]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way with a combination of DQL and DPL, or just one of the two to say "If field containing exception with:&amp;nbsp;&lt;FONT color="#FF9900"&gt;[ID-**]&amp;nbsp;&lt;FONT color="#000000"&gt;then keep the everything as it is but just transform&amp;nbsp;[ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098] into&amp;nbsp;[ID-*]" ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 11:53:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-DPL-summarize/m-p/251191#M1076</guid>
      <dc:creator>y_buccellato</dc:creator>
      <dc:date>2024-07-22T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: DQL+ DPL summarize</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-DPL-summarize/m-p/251229#M1077</link>
      <description>&lt;P&gt;Yes, it is possible with combination of couple of functions. I used example line and created 5 log lines out it with different IDs (2+2+1)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-99cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-88cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded"""),
record(content="""Fault:Sequential processing failed for number 0. Exchange[ID-88cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]. Caused by: [org.springframework.jms.ResourceAllocationException - Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded); nested exception is javax.jms.ResourceAllocationException: Error creating session - max transacted sessions exceeded (503: Max Transacted Sessions Exceeded)]", caused by "JCSMPErrorResponseException:503: Max Transacted Sessions Exceeded""")

| fieldsAdd content = if( matchesPhrase(content, "Exchange[ID-56cdd22f-5910-4be0-5f99-2c2c-1721602311434-40-375098]"), content, else: replacePattern(content, "'Exchange[ID' LD ']'", "Exchange[ID-*]" ) )
| summarize {cnt=count()}, by: {content}&lt;/LI-CODE&gt;&lt;P&gt;If line contains given ID, I leave it without modifications. In other cases I use &lt;EM&gt;&lt;STRONG&gt;replacePattern&lt;/STRONG&gt;&lt;/EM&gt; function to modify content and remove not needed ID. After this operation when I summarize by content I just get 2 groups&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1721669606993.png" style="width: 850px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21267iAE6F61753E383A43/image-dimensions/850x170?v=v2" width="850" height="170" role="button" title="krzysztof_hoja_0-1721669606993.png" alt="krzysztof_hoja_0-1721669606993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope I understood the need correctly&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 17:37:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-DPL-summarize/m-p/251229#M1077</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-07-22T17:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: DQL+ DPL summarize</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-DPL-summarize/m-p/251392#M1079</link>
      <description>&lt;P&gt;I adapted it based on your clear explanation given your understanding and it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="y_buccellato_0-1721747447069.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21323i5423F51EC519B2CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="y_buccellato_0-1721747447069.png" alt="y_buccellato_0-1721747447069.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 15:10:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-DPL-summarize/m-p/251392#M1079</guid>
      <dc:creator>y_buccellato</dc:creator>
      <dc:date>2024-07-23T15:10:59Z</dc:date>
    </item>
  </channel>
</rss>

