<?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 content for ingest rule contains more than one line in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Log-content-for-ingest-rule-contains-more-than-one-line/m-p/246529#M123</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4677"&gt;@a_chiaravalle&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Ingest rules is not a filter. With this rule you ingested the entire log file which conatins your START value from the choosen processes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I order to drop the unnecessary lines you should set a log drop rule (carefully) to this log ingest rule.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1716565325929.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20090iF9D900D95635347E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mizs_0-1716565325929.png" alt="Mizs_0-1716565325929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the log drop rule matcher you should put your log.source and a nagate content filter. In the log viewer you can check the result. You should see only the unwanted loglines in the result. This expession should be in the log drop rule.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_2-1716565649312.png" style="width: 673px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20092i2FA21FB82629A1E4/image-dimensions/673x221?v=v2" width="673" height="221" role="button" title="Mizs_2-1716565649312.png" alt="Mizs_2-1716565649312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_3-1716565855589.png" style="width: 725px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20093i7E820C05629AE399/image-dimensions/725x279?v=v2" width="725" height="279" role="button" title="Mizs_3-1716565855589.png" alt="Mizs_3-1716565855589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 15:51:57 GMT</pubDate>
    <dc:creator>Mizső</dc:creator>
    <dc:date>2024-05-24T15:51:57Z</dc:date>
    <item>
      <title>Log content for ingest rule contains more than one line</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-content-for-ingest-rule-contains-more-than-one-line/m-p/246503#M122</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;From java application server's log (Linux) I want to capture only the rows related to START and END events of some batch.&lt;/P&gt;&lt;P&gt;To do this, I defined a "Log Ingest rule":&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a_chiaravalle_0-1716559580181.png" style="width: 699px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20079iB05530376EE0EA98/image-dimensions/699x224?v=v2" width="699" height="224" role="button" title="a_chiaravalle_0-1716559580181.png" alt="a_chiaravalle_0-1716559580181.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;but when I check the result of this rule In the log viewer, I see that "log content" contains other lines other than the START events (bolded).&lt;/P&gt;&lt;P&gt;This is the entire log content with multiple lines:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a_chiaravalle_2-1716558667649.png" style="width: 782px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20077iC1999C85FBDEC592/image-dimensions/782x178?v=v2" width="782" height="178" role="button" title="a_chiaravalle_2-1716558667649.png" alt="a_chiaravalle_2-1716558667649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I expect to have only one line and I don't have an explanation for this behavior considering that at the end of each line there is a carriage return (\n) character.&lt;/P&gt;&lt;P&gt;Could you please verify what is wrong ?&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Antonello Chiaravalle&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 14:20:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-content-for-ingest-rule-contains-more-than-one-line/m-p/246503#M122</guid>
      <dc:creator>a_chiaravalle</dc:creator>
      <dc:date>2024-05-24T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Log content for ingest rule contains more than one line</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-content-for-ingest-rule-contains-more-than-one-line/m-p/246529#M123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4677"&gt;@a_chiaravalle&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Ingest rules is not a filter. With this rule you ingested the entire log file which conatins your START value from the choosen processes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I order to drop the unnecessary lines you should set a log drop rule (carefully) to this log ingest rule.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_0-1716565325929.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20090iF9D900D95635347E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mizs_0-1716565325929.png" alt="Mizs_0-1716565325929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the log drop rule matcher you should put your log.source and a nagate content filter. In the log viewer you can check the result. You should see only the unwanted loglines in the result. This expession should be in the log drop rule.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_2-1716565649312.png" style="width: 673px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20092i2FA21FB82629A1E4/image-dimensions/673x221?v=v2" width="673" height="221" role="button" title="Mizs_2-1716565649312.png" alt="Mizs_2-1716565649312.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mizs_3-1716565855589.png" style="width: 725px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20093i7E820C05629AE399/image-dimensions/725x279?v=v2" width="725" height="279" role="button" title="Mizs_3-1716565855589.png" alt="Mizs_3-1716565855589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 15:51:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-content-for-ingest-rule-contains-more-than-one-line/m-p/246529#M123</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2024-05-24T15:51:57Z</dc:date>
    </item>
  </channel>
</rss>

