<?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: Filtering logs not working as expected in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692474#M115116</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244107"&gt;@vimselva&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;check in search dashboard if the regex is correct using the regex command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| regex "NormalizedApiId failed to resolve"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 09:22:41 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-07-05T09:22:41Z</dc:date>
    <item>
      <title>Filtering logs not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692471#M115114</link>
      <description>&lt;P&gt;I have tried to solve this problem with all the combinations, but missing some key thing on how to resolve.&lt;/P&gt;&lt;P&gt;I have various logs coming with source pattern as &lt;EM&gt;/var/log/containers/*&lt;/EM&gt;. I would like to drop the DEBUG logs and hence have the following in &lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;[source://var/log/containers/*]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRANSFORMS-null&lt;/SPAN&gt;&lt;SPAN&gt; = debug_to_null&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;and in &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;[debug_to_null]&lt;BR /&gt;REGEX = DEBUG&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;After making the above change, as expected the logs with &lt;STRONG&gt;DEBUG&lt;/STRONG&gt; keyword is getting dropped.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now, I would also like to drop logs with another pattern for a particular source pattern under &lt;EM&gt;/var/log/containers&lt;/EM&gt;, so I've updated my &lt;STRONG&gt;props.conf&lt;/STRONG&gt; like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;[source::/var/log/containers/*_integration-business*.log]&lt;BR /&gt;TRANSFORMS-null = setnull&lt;BR /&gt;&lt;BR /&gt;[source://var/log/containers/*]&lt;BR /&gt;TRANSFORMS-null = debug_to_null&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and updated &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;[debug_to_null]&lt;BR /&gt;REGEX = DEBUG&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;[setnull]&lt;BR /&gt;REGEX = NormalizedApiId failed to resolve&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After making this change, I can see only logs with &lt;STRONG&gt;DEBUG&lt;/STRONG&gt; keyword is getting dropped, however the logs with&amp;nbsp;&lt;STRONG&gt;NormalizedApiId failed to resolve&lt;/STRONG&gt; are still being ingested.&lt;/P&gt;&lt;P&gt;I was hoping that logs with &lt;STRONG&gt;DEBUG&lt;/STRONG&gt; keyword from all source paths with &lt;STRONG&gt;/var/log/containers/*&lt;/STRONG&gt; pattern will be dropped and&amp;nbsp;&lt;STRONG&gt;NormalizedApiId failed to resolve&lt;/STRONG&gt; keyword from a particular source path with&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;/var/log/containers/*_integration-business*.log&lt;/STRONG&gt; pattern will be dropped. But seems not working that way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please guide me on this.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 09:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692471#M115114</guid>
      <dc:creator>vimselva</dc:creator>
      <dc:date>2024-07-05T09:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering logs not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692474#M115116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244107"&gt;@vimselva&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;check in search dashboard if the regex is correct using the regex command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| regex "NormalizedApiId failed to resolve"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 09:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692474#M115116</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-05T09:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering logs not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692500#M115118</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try to change another TRANSFORMS definition to something else like TRANSFORMS-null-ib-log instead of use just TRANSFORS-null twice.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Attributeprecedencewithinafile" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Attributeprecedencewithinafile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 15:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692500#M115118</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-07-05T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering logs not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692524#M115119</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;, that worked after updating the key.&lt;/P&gt;&lt;P&gt;However, still puzzled on after adding another stanza. My current &lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;[source::/var/log/containers/*_integration-business*.log]&lt;BR /&gt;TRANSFORMS-int-null = setnull&lt;BR /&gt;&lt;BR /&gt;[source::/var/log/containers/*_0091*.log]&lt;BR /&gt;TRANSFORMS-set = allow_all&lt;BR /&gt;&lt;BR /&gt;[source::/var/log/containers/*]&lt;BR /&gt;TRANSFORMS-null = debug_to_null&lt;/PRE&gt;&lt;P&gt;and &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;[allow_all]&lt;BR /&gt;REGEX = .&lt;BR /&gt;DEST_KEY = QUEUE&lt;BR /&gt;FORMAT = indexQueue&lt;BR /&gt;&lt;BR /&gt;[setnull]&lt;BR /&gt;REGEX = NormalizedApiId failed to resolve&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;BR /&gt;&lt;BR /&gt;[debug_to_null]&lt;BR /&gt;REGEX = DEBUG|Debug|debug&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/PRE&gt;&lt;P&gt;So I would like to allow any logs including &lt;STRONG&gt;DEBUG&lt;/STRONG&gt; keyword from the source pattern&amp;nbsp;&lt;STRONG&gt;/var/log/containers/*_0091*.log&lt;/STRONG&gt;, however I see the logs with &lt;STRONG&gt;DEBUG&lt;/STRONG&gt; keyword from that particular source pattern is being dropped. Is this even possible to do?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 01:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692524#M115119</guid>
      <dc:creator>vimselva</dc:creator>
      <dc:date>2024-07-06T01:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering logs not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692525#M115120</link>
      <description>&lt;P&gt;Yes the regex is correct and validated.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 01:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692525#M115120</guid>
      <dc:creator>vimselva</dc:creator>
      <dc:date>2024-07-06T01:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering logs not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692552#M115126</link>
      <description>Maybe you could utilize that priority attribute with those two sources and use same TRANSFORMS-null attribute with both of those sources? See details from previous doc link.</description>
      <pubDate>Sat, 06 Jul 2024 14:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692552#M115126</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-07-06T14:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering logs not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692583#M115130</link>
      <description>&lt;P&gt;You are great, that worked! Thank you for sharing knowledge.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 11:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-logs-not-working-as-expected/m-p/692583#M115130</guid>
      <dc:creator>vimselva</dc:creator>
      <dc:date>2024-07-07T11:13:30Z</dc:date>
    </item>
  </channel>
</rss>

