<?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: Log Processing rule limit of line lenght? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/273816#M1873</link>
    <description>&lt;P&gt;Hi, thank you it help me for my case :)!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2025 09:35:45 GMT</pubDate>
    <dc:creator>sabrina_montlu1</dc:creator>
    <dc:date>2025-03-28T09:35:45Z</dc:date>
    <item>
      <title>Log Processing rule limit of line lenght?</title>
      <link>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/229973#M374</link>
      <description>&lt;P&gt;Has anyone noticed this:&lt;BR /&gt;I create a log processing rule to remove parts of the content and only keep relevant data (remove everything after the '[ERROR]' and store it in a new field "message"&lt;/P&gt;
&lt;P&gt;The rule works fine when tested, but when applied at runtime it cuts off parts of the content.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_0-1701075702160.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15843iE5C73293F3443E23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="r_weber_0-1701075702160.png" alt="r_weber_0-1701075702160.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here, querying Grail after the processing has been applied (note the cut off "message" field):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="r_weber_1-1701075829188.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15844i8B153A749DA4A09B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="r_weber_1-1701075829188.png" alt="r_weber_1-1701075829188.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Are there any settings/limit I should be aware of for such cleanup rules?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 13:08:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/229973#M374</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2025-03-28T13:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Log Processing rule limit of line lenght?</title>
      <link>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/230323#M393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35901"&gt;@r_weber&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the LD matcher matches per default the first &lt;A href="https://docs.dynatrace.com/docs/shortlink/dpl-lines-strings#line-data" target="_blank"&gt;4096 characters until the next line break&lt;/A&gt;. You might have some wired line break. therefore I would suggest to go with the DATA matcher and specify a higher character limit.&lt;/P&gt;
&lt;P&gt;But I would suggest that you try the pattern first in notebooks and see if it works the same way as in the processing definition.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fetch logs
| filter &amp;lt;your custom filter for the relevant records&amp;gt;
| parse content, """LD
TIMESTAMP('yyyy-mm-dd HH:mm:ss +S', locale='de') 
LD ('[Error]'|'[Warning]') 
DATA:message"""&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Sini&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 18:24:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/230323#M393</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2023-11-29T18:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Log Processing rule limit of line lenght?</title>
      <link>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/231857#M422</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35901"&gt;@r_weber&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've seen the same behavior with a processing rule that parses a JSON. When I test the rules everything is Ok, but when log is processed, the extracted field seems to be limited to 250 characters.&lt;BR /&gt;Have you find any information or a solution ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 07:44:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/231857#M422</guid>
      <dc:creator>GerardJ</dc:creator>
      <dc:date>2023-12-14T07:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Log Processing rule limit of line lenght?</title>
      <link>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/231869#M424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/66575"&gt;@GerardJ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I solved it as&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/38283"&gt;@sinisa_zubic&lt;/a&gt;&amp;nbsp;suggested by adding a quantifier to the DATA / LD matcher like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;USING(INOUT content:STRING) | 
PARSE(content, "
  LD
  TIMESTAMP('yyyy-mm-dd HH:mm:ss +S', locale='de')
  LD
  ('[Error]'|'[Warning]')
  DATA{1,8192}:content
")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;BR /&gt;Reinhard&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 09:51:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/231869#M424</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2023-12-14T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Log Processing rule limit of line lenght?</title>
      <link>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/273816#M1873</link>
      <description>&lt;P&gt;Hi, thank you it help me for my case :)!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 09:35:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Log-Processing-rule-limit-of-line-lenght/m-p/273816#M1873</guid>
      <dc:creator>sabrina_montlu1</dc:creator>
      <dc:date>2025-03-28T09:35:45Z</dc:date>
    </item>
  </channel>
</rss>

