<?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 Parse Unstructured Log Content While Skipping Newlines Using DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Parse-Unstructured-Log-Content-While-Skipping-Newlines-Using-DQL/m-p/281585#M2310</link>
    <description>&lt;P&gt;Hi everyone, I have this log format in a Managed Cluster, with Log Classic, no Grail:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"content": "last access : Wed May 22 11:32:42 ART 2025\\nmax inactive interval : 1800\\nuser name : anonymous\\nvalid session : true\\nnew session : false\\noverflowed : false\\n _refCount=1\\n } \\n _httpSessionContext=com.ibm.ws.session.http.HttpSessionContextImpl@115c1a4a\\n } \\n)\\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,936 DEBUG script.dao.GeneralDAOImpl  findRow(sp_FN_Comprobantes_FNC,{54672,1,50150346002250506,39,})\\nULL1lryN-ZidhtxVbFg09WN 28/05/25 11:32:50,936 DEBUG sam.service.SamSPService  &amp;lt;&amp;lt;&amp;lt;&amp;lt; TM_FEMP_DB2. - RESULTADOS: cursor -&amp;gt; 1 items retornados, P_COD_CLASEORD = TXO, P_COD_CLIECASH = 0026008500002886, p_sqlcode_out = null, P_COD_IDORDEN = 5751BOJN, \\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,936 INFO script.dao.GeneralDAOImpl  \\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,938 INFO script.dao.GeneralDAOImpl  exec sp_FN_Comprobantes_FNC 54672, null, '50150346002250506', '39', null, null, null\\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,938 INFO script.dao.GeneralDAOImpl ",&lt;/LI-CODE&gt;
&lt;P&gt;I need to get the&amp;nbsp; keyvalue string:&amp;nbsp;&lt;EM&gt;c5uZNCXLKmuKjacR5_NNqxK&lt;/EM&gt; (23 letters).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The keyvalue appears on multiple lines in the log, and there are even other keys with the same string length that I need to capture. It's always a 23-character string.&lt;/P&gt;
&lt;P&gt;I can check after /n (newline) begins with the keyvalue but I cannot get the value with this filter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PARSE(content, "LD '\n' DATA [a-zA-Z0-9_-]{23}:test")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody knows what is the correct filter to get the keyvalue? and is it possible to get multiple keyvalues from this content log?&lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;</description>
    <pubDate>Thu, 18 Dec 2025 10:29:56 GMT</pubDate>
    <dc:creator>mpundang</dc:creator>
    <dc:date>2025-12-18T10:29:56Z</dc:date>
    <item>
      <title>Parse Unstructured Log Content While Skipping Newlines Using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Unstructured-Log-Content-While-Skipping-Newlines-Using-DQL/m-p/281585#M2310</link>
      <description>&lt;P&gt;Hi everyone, I have this log format in a Managed Cluster, with Log Classic, no Grail:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"content": "last access : Wed May 22 11:32:42 ART 2025\\nmax inactive interval : 1800\\nuser name : anonymous\\nvalid session : true\\nnew session : false\\noverflowed : false\\n _refCount=1\\n } \\n _httpSessionContext=com.ibm.ws.session.http.HttpSessionContextImpl@115c1a4a\\n } \\n)\\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,936 DEBUG script.dao.GeneralDAOImpl  findRow(sp_FN_Comprobantes_FNC,{54672,1,50150346002250506,39,})\\nULL1lryN-ZidhtxVbFg09WN 28/05/25 11:32:50,936 DEBUG sam.service.SamSPService  &amp;lt;&amp;lt;&amp;lt;&amp;lt; TM_FEMP_DB2. - RESULTADOS: cursor -&amp;gt; 1 items retornados, P_COD_CLASEORD = TXO, P_COD_CLIECASH = 0026008500002886, p_sqlcode_out = null, P_COD_IDORDEN = 5751BOJN, \\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,936 INFO script.dao.GeneralDAOImpl  \\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,938 INFO script.dao.GeneralDAOImpl  exec sp_FN_Comprobantes_FNC 54672, null, '50150346002250506', '39', null, null, null\\nc5uZNCXLKmuKjacR5_NNqxK 28/05/25 11:32:50,938 INFO script.dao.GeneralDAOImpl ",&lt;/LI-CODE&gt;
&lt;P&gt;I need to get the&amp;nbsp; keyvalue string:&amp;nbsp;&lt;EM&gt;c5uZNCXLKmuKjacR5_NNqxK&lt;/EM&gt; (23 letters).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The keyvalue appears on multiple lines in the log, and there are even other keys with the same string length that I need to capture. It's always a 23-character string.&lt;/P&gt;
&lt;P&gt;I can check after /n (newline) begins with the keyvalue but I cannot get the value with this filter:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PARSE(content, "LD '\n' DATA [a-zA-Z0-9_-]{23}:test")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody knows what is the correct filter to get the keyvalue? and is it possible to get multiple keyvalues from this content log?&lt;/P&gt;
&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 10:29:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Unstructured-Log-Content-While-Skipping-Newlines-Using-DQL/m-p/281585#M2310</guid>
      <dc:creator>mpundang</dc:creator>
      <dc:date>2025-12-18T10:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to PARSE an unstructured log content skipping \n (newline)</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-Unstructured-Log-Content-While-Skipping-Newlines-Using-DQL/m-p/281615#M2311</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/82282"&gt;@mpundang&lt;/a&gt;&amp;nbsp;a tought one.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;n\K[a-zA-Z0-9_-]{23}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_0-1752620569998.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29027i69A315D9B9763A5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="DanielS_0-1752620569998.png" alt="DanielS_0-1752620569998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or another option, less elegant&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[^\n]+([a-zA-Z0-9_-]{23})&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_1-1752620706097.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29028i75A59C9B60DA8116/image-size/large?v=v2&amp;amp;px=999" role="button" title="DanielS_1-1752620706097.png" alt="DanielS_1-1752620706097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 23:06:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-Unstructured-Log-Content-While-Skipping-Newlines-Using-DQL/m-p/281615#M2311</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2025-07-15T23:06:53Z</dc:date>
    </item>
  </channel>
</rss>

