<?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: How to edit my inputs.conf to blacklist a directory? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286185#M54633</link>
    <description>&lt;P&gt;Interesting...&lt;BR /&gt;
will have to try this, thanks for sharing it!&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 13:12:08 GMT</pubDate>
    <dc:creator>Michael</dc:creator>
    <dc:date>2017-02-15T13:12:08Z</dc:date>
    <item>
      <title>How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286177#M54625</link>
      <description>&lt;P&gt;Apologies, but I'm not groking this. I've read dozens of "answers", I've read several docs on the topic. But, I can't find a way to blacklist a directory. Is it even possible? The Docs say it's possible, but demonstrate it with file extensions (ie.: ".bak$"), implying it can only be done on files, not directories... I have a deployer and universal clients, Splunk 6.5.&lt;/P&gt;

&lt;P&gt;In this example, I'm simply trying to prevent gitlab entries. Please, can someone give me the straight answer as to what I should use? (Please don't give me a link to follow, chances are I've been there).&lt;/P&gt;

&lt;P&gt;I'm using the stanza in my inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...and for the blacklist statement, I've tried a gazillion things, including:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = "/var/log/gitlab/*"
blacklist = \/var\/log\/gitlab\/*
blacklist = gitlab.$
blacklist = gitlab/.$
blacklist = ///var/log/gitlab
blacklist = %gitlab/%$
blacklist = gitlab\.$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and multiple variations of the above...&lt;BR /&gt;
 etc., etc., etc.&lt;/P&gt;

&lt;P&gt;Thanks for your help,&lt;BR /&gt;
~Frusterated&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286177#M54625</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-02-13T19:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286178#M54626</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = \/gitlab\/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2017 20:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286178#M54626</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-13T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286179#M54627</link>
      <description>&lt;P&gt;Sorry, but nope. Has that actually worked for you, or are guessing?&lt;/P&gt;

&lt;P&gt;I know my inputs.conf file is being deployed properly, because this system (Server Class) was previously feeding into another index. I used this to make other changes, including the index destination and "host = $decideOnStartup" (which is a &lt;EM&gt;very&lt;/EM&gt; cool trick, BTW) -- and they all took. But I just can't get the "blacklist" to work...&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 20:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286179#M54627</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-02-13T20:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286180#M54628</link>
      <description>&lt;P&gt;I haven't tested it but I've done similar thing for other use-cases of mine. Try being more specific and check the case of regex string.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = \/gitlab\/.+$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = gitlab
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2017 20:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286180#M54628</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-13T20:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286181#M54629</link>
      <description>&lt;P&gt;Hey, it looks like it's working!    blacklist = \/gitlab\/&lt;/P&gt;

&lt;P&gt;BUT, that invites another mystery...&lt;/P&gt;

&lt;P&gt;I've seen this before: I'll make changes in my deployment server, push the changes, and some will take effect immediately -- some won't until some time passes, like this one. This is the second time this has happened where I'll try something, it won't work, then I'll go home at the end of my workday (around 4:00 PM local). Then I'll come in the next day and it will be working. In both cases, I looked at the timeline and saw that the change kicked in (or, stopped getting log entries in this case) around 8:00 PM that same day.&lt;/P&gt;

&lt;P&gt;Anyone else observe this behavior?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 21:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286181#M54629</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-02-14T21:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286182#M54630</link>
      <description>&lt;P&gt;In serverclass.conf, do you have the app set so that the forwarder automatically restarts? Because in general, the forwarder must restart in order for any changes to take effect. That includes changes to inputs.conf&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 23:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286182#M54630</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-02-14T23:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286183#M54631</link>
      <description>&lt;P&gt;I will share a "clever trick" I use to decide how a whitelist / blacklist combination is going to work on a directory structure.  Use the unix &lt;CODE&gt;find&lt;/CODE&gt; command as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;find $PATH -print | egrep $WHITELIST | egrep -v $BLACKLIST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Things that survive this will be processed by the monitor stanza in question.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 04:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286183#M54631</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2017-02-15T04:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286184#M54632</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;

&lt;P&gt;As I said, most changes will take place within minutes. In fact, on this very system is question, when making changes, I actually made two:  one pointed it to another index, and one was the blacklist. The index change took place immediately (confirming for me the app edit and reload was working as it should). But this odd delay in other things... happened twice now.&lt;/P&gt;

&lt;P&gt;I wonder if it's a "bug" similar to what can happen when you manually edit the XML of a dashboard, and nothing you do with your browser refreshes the GUI until you execute a refresh...or wait. &lt;/P&gt;

&lt;P&gt;Just an oddity, I guess it's not a big deal...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 13:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286184#M54632</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-02-15T13:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286185#M54633</link>
      <description>&lt;P&gt;Interesting...&lt;BR /&gt;
will have to try this, thanks for sharing it!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 13:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286185#M54633</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-02-15T13:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286186#M54634</link>
      <description>&lt;P&gt;@Michael - Did the answer/comment provided by somesoni2 help provide a working solution to your original question? If yes, please let me know so I can convert it to an answer to be accepted. If no, please leave a comment with more feedback. Thanks! &lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 00:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286186#M54634</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-03-20T00:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286187#M54635</link>
      <description>&lt;P&gt;This answer is late, but for this problem you can just add the stanza below for your &lt;CODE&gt;inputs.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [blacklist://&amp;lt;path&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Dan&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 04:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286187#M54635</guid>
      <dc:creator>dantimola</dc:creator>
      <dc:date>2017-07-26T04:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286188#M54636</link>
      <description>&lt;P&gt;I struggled a little bit mee too on those backlists in [monitor://] stanza.&lt;/P&gt;

&lt;P&gt;The point is that you should write a regular expression and not the absolute path&lt;BR /&gt;
Try this balcklist setting in your stanza, it should work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
disabled=0
blacklist=\/var\/log\/gitlab\/.*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 14:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/286188#M54636</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-01-30T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/700086#M115945</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/278"&gt;@dwaddle&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;May I know where do we need to run this?&lt;/P&gt;&lt;P&gt;Can you please share some sample output?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 11:55:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/700086#M115945</guid>
      <dc:creator>blbr123</dc:creator>
      <dc:date>2024-09-25T11:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputs.conf to blacklist a directory?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/700431#M115991</link>
      <description>Hi&lt;BR /&gt;as this is quite old thread, it's better to create a new question to get someone to answer you.&lt;BR /&gt;r. Ismo</description>
      <pubDate>Sat, 28 Sep 2024 15:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-my-inputs-conf-to-blacklist-a-directory/m-p/700431#M115991</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-09-28T15:20:45Z</dc:date>
    </item>
  </channel>
</rss>

