<?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 Is blacklist recursive in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-blacklist-recursive/m-p/462118#M79779</link>
    <description>&lt;P&gt;I have an inputs.conf stanza that I want to add. I am adding it to monitor all files and sub-directories. Throughout these sub-directories there are .bz2 files that I dont want to ingest. What would be the best way? I was thinking blacklist the bz2 files but that may not be the best way? Maybe there's a better way?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/remote/*]
blacklist=(*.bz2*)
index=nix_os
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There could be any number of sub-directories below the remote/ parent directory.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 15:01:14 GMT</pubDate>
    <dc:creator>tkw03</dc:creator>
    <dc:date>2020-02-05T15:01:14Z</dc:date>
    <item>
      <title>Is blacklist recursive</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-blacklist-recursive/m-p/462118#M79779</link>
      <description>&lt;P&gt;I have an inputs.conf stanza that I want to add. I am adding it to monitor all files and sub-directories. Throughout these sub-directories there are .bz2 files that I dont want to ingest. What would be the best way? I was thinking blacklist the bz2 files but that may not be the best way? Maybe there's a better way?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/remote/*]
blacklist=(*.bz2*)
index=nix_os
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There could be any number of sub-directories below the remote/ parent directory.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-blacklist-recursive/m-p/462118#M79779</guid>
      <dc:creator>tkw03</dc:creator>
      <dc:date>2020-02-05T15:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is blacklist recursive</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-blacklist-recursive/m-p/462119#M79780</link>
      <description>&lt;P&gt;The asterisk &lt;CODE&gt;*&lt;/CODE&gt; will not recurse through subfolders. See this:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Data/Specifyinputpathswithwildcards#Input_examples"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Data/Specifyinputpathswithwildcards#Input_examples&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I would use something like this. Assuming bz2 is the file extension&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/remote/*]
whitelist=\.bz2$
index=nix_os
disabled = 0
recursive=true           #true by default
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-blacklist-recursive/m-p/462119#M79780</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-02-05T16:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is blacklist recursive</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-blacklist-recursive/m-p/462120#M79781</link>
      <description>&lt;P&gt;Splunk Docs has good documentation explaining how to whitelist and blacklist file paths. The &lt;CODE&gt;blacklist&lt;/CODE&gt; and &lt;CODE&gt;whitelist&lt;/CODE&gt; sections requires custom regex expressions. So yes, there are ways to blacklist all files of a specific file type &lt;STRONG&gt;.bz2&lt;/STRONG&gt; in your case. &lt;/P&gt;

&lt;P&gt;See the Blacklist (ignore) files in &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Data/Whitelistorblacklistspecificincomingdata"&gt;Whitelist or blacklist specific incoming data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 16:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-blacklist-recursive/m-p/462120#M79781</guid>
      <dc:creator>13tsavage</dc:creator>
      <dc:date>2020-02-05T16:46:12Z</dc:date>
    </item>
  </channel>
</rss>

