<?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 do you exclude files in a directory? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383871#M112116</link>
    <description>&lt;P&gt;Damn these double negatives!!  I looked at that then talked myself into it being correct.&lt;/P&gt;

&lt;P&gt;Thanks @damann.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 22:16:03 GMT</pubDate>
    <dc:creator>balcv</dc:creator>
    <dc:date>2019-03-28T22:16:03Z</dc:date>
    <item>
      <title>How do you exclude files in a directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383869#M112114</link>
      <description>&lt;P&gt;I've been struggling with this for several days now and cannot find a solution that works for me so I am turning to you all.&lt;/P&gt;

&lt;P&gt;I simply want to exclude 2 files from a directory from being indexed.  The two files exist on one of my Linux servers and are in the /var/log/httpd directory along with regular Apache log files that I DO want indexed.  The two files to be excluded are 64080_access_log and 64080_error_log.&lt;/P&gt;

&lt;P&gt;From what I have read, the solution should be to have a blacklist line in the inputs.conf file, which I have done in the /splunk/etc/apps/Splunk_TA_nix/local directory, and it looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/httpd]
blacklist=64080_access_log|64080_error_log
disabled = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this is not working.  After a restart of Splunk, I am still seeing log data from the blacklisted files.&lt;/P&gt;

&lt;P&gt;In case it's relevant, I have my main Splunk host that receives those logs, and does the indexing, and that is the host I have added the above code to.  I also have a heavy forwarder setup as my Universal Forwarder deployment server, but it does not receive or process any log data.  Am I right in adding the above code to the main Splunk server that is receiving the log data?&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383869#M112114</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2020-09-29T23:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you exclude files in a directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383870#M112115</link>
      <description>&lt;P&gt;change &lt;CODE&gt;disabled=true&lt;/CODE&gt; to  &lt;CODE&gt;disabled=false&lt;/CODE&gt; to activate your stanza &lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 22:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383870#M112115</guid>
      <dc:creator>damann</dc:creator>
      <dc:date>2019-03-28T22:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you exclude files in a directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383871#M112116</link>
      <description>&lt;P&gt;Damn these double negatives!!  I looked at that then talked myself into it being correct.&lt;/P&gt;

&lt;P&gt;Thanks @damann.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 22:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383871#M112116</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-03-28T22:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you exclude files in a directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383872#M112117</link>
      <description>&lt;P&gt;I feel like such a &lt;STRONG&gt;noob&lt;/STRONG&gt; for this one!!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 22:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-exclude-files-in-a-directory/m-p/383872#M112117</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-03-28T22:20:07Z</dc:date>
    </item>
  </channel>
</rss>

