<?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 Why is my blacklist being so greedy when going through a Universal Forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436724#M76191</link>
    <description>&lt;P&gt;I have an inputs.conf file that has multiple monitor stanzas and it appears that the blacklist used on one of the stanzas is being applied to all ...&lt;/P&gt;

&lt;P&gt;My aim is to have 4 sourcetypes for the same index with the last sourcetype (search) not showing the logs from the first 3 logs.&lt;/P&gt;

&lt;P&gt;Testing locally worked wonders -- grabbed all logs and put them all in their respective sourcetypes and filtered the blacklisted elements from the 4th &lt;BR /&gt;
&lt;STRONG&gt;BUT&lt;/STRONG&gt;&lt;BR /&gt;
when being processed through to the Universal Forwarder, the blacklist seems to be overriding the entire file thus never getting the applications, server, or audit logs&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
`[monitor:///data/web/defaultroot/newlogs/test/applications.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=applications&lt;BR /&gt;
disabled=0&lt;/P&gt;

&lt;P&gt;[monitor:///data/web/defaultroot/newlogs/test/server.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=server&lt;BR /&gt;
disabled=0&lt;/P&gt;

&lt;P&gt;[monitor:///data/web/defaultroot/newlogs/test/audit.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=audit&lt;BR /&gt;
disabled=0&lt;/P&gt;

&lt;P&gt;[monitor:///data/web/defaultroot/newlogs/test/&lt;EM&gt;.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=search&lt;BR /&gt;
disabled=0&lt;BR /&gt;
blacklist1=*gz&lt;BR /&gt;
blacklist2=applications&lt;/EM&gt;&lt;BR /&gt;
blacklist3=server*&lt;BR /&gt;
blacklist4=audit*`&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:19:37 GMT</pubDate>
    <dc:creator>bimord</dc:creator>
    <dc:date>2020-09-30T00:19:37Z</dc:date>
    <item>
      <title>Why is my blacklist being so greedy when going through a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436724#M76191</link>
      <description>&lt;P&gt;I have an inputs.conf file that has multiple monitor stanzas and it appears that the blacklist used on one of the stanzas is being applied to all ...&lt;/P&gt;

&lt;P&gt;My aim is to have 4 sourcetypes for the same index with the last sourcetype (search) not showing the logs from the first 3 logs.&lt;/P&gt;

&lt;P&gt;Testing locally worked wonders -- grabbed all logs and put them all in their respective sourcetypes and filtered the blacklisted elements from the 4th &lt;BR /&gt;
&lt;STRONG&gt;BUT&lt;/STRONG&gt;&lt;BR /&gt;
when being processed through to the Universal Forwarder, the blacklist seems to be overriding the entire file thus never getting the applications, server, or audit logs&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
`[monitor:///data/web/defaultroot/newlogs/test/applications.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=applications&lt;BR /&gt;
disabled=0&lt;/P&gt;

&lt;P&gt;[monitor:///data/web/defaultroot/newlogs/test/server.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=server&lt;BR /&gt;
disabled=0&lt;/P&gt;

&lt;P&gt;[monitor:///data/web/defaultroot/newlogs/test/audit.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=audit&lt;BR /&gt;
disabled=0&lt;/P&gt;

&lt;P&gt;[monitor:///data/web/defaultroot/newlogs/test/&lt;EM&gt;.log]&lt;BR /&gt;
index=test&lt;BR /&gt;
sourcetype=search&lt;BR /&gt;
disabled=0&lt;BR /&gt;
blacklist1=*gz&lt;BR /&gt;
blacklist2=applications&lt;/EM&gt;&lt;BR /&gt;
blacklist3=server*&lt;BR /&gt;
blacklist4=audit*`&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:19:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436724#M76191</guid>
      <dc:creator>bimord</dc:creator>
      <dc:date>2020-09-30T00:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist being so greedy when going through a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436725#M76192</link>
      <description>&lt;P&gt;From the &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/admin/Inputsconf"&gt;docs&lt;/A&gt;, the blacklist option is a regex pattern.  Your regex of &lt;CODE&gt;*gz&lt;/CODE&gt; doesn't make sense because &lt;CODE&gt;*&lt;/CODE&gt; means zero or more of preceding character, which there is no preceding character (I presume you are trying to match on .gz files).  Anyway, I believe you can simply combine them into one blacklist and if you know the file names (server.log), I'm not sure why you simply don't specify that in your blacklist rather than server*.  Try the below and let us know if it works.  If it does, please accept as answer. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///data/web/defaultroot/newlogs/test/applications.log]
index=test
sourcetype=applications
disabled=0 

[monitor:///data/web/defaultroot/newlogs/test/server.log]
index=test
sourcetype=server
disabled=0

[monitor:///data/web/defaultroot/newlogs/test/audit.log]
index=test
sourcetype=audit
disabled=0

[monitor:///data/web/defaultroot/newlogs/test/*.log]
index=test
sourcetype=search
disabled=0
blacklist = (\.gz$|applications\.log|server\.log|audit\.log)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 May 2019 14:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436725#M76192</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2019-05-05T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist being so greedy when going through a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436726#M76193</link>
      <description>&lt;P&gt;@bimord did you find a solution?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 12:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436726#M76193</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2019-05-08T12:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist being so greedy when going through a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436727#M76194</link>
      <description>&lt;P&gt;Hi dead_beef&lt;BR /&gt;
Sorry for the delay -- was trying to get the permissions to access btool.log to futher debug&lt;BR /&gt;
Good pickup on the regex mistake on *gz - I've updated that everywhere now haha (I inherited the scripting from my predecessor and am trying to work out the kinks)&lt;BR /&gt;
Unfortunately, even with the updated blacklist you provided, it appears that the the universal forwarder is continuing to apply it to the whole script rather than just that stanza &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;My solution was to have a separate inputs.conf app to alleviate this with success &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 22:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436727#M76194</guid>
      <dc:creator>bimord</dc:creator>
      <dc:date>2019-05-08T22:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist being so greedy when going through a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436728#M76195</link>
      <description>&lt;P&gt;Interesting solution, glad you figured it out!&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 23:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-being-so-greedy-when-going-through-a/m-p/436728#M76195</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2019-05-08T23:41:59Z</dc:date>
    </item>
  </channel>
</rss>

