<?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 Splunk inputs and whitelists --- how to? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-inputs-and-whitelists-how-to/m-p/465461#M80244</link>
    <description>&lt;P&gt;I've combed through inputs.conf and the various questions on answers but can't seem to get a definitive example in how to employ a whitelist or modify my monitor stanza to match on specific folders and their sub-directories per my use case.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;match on /mnt/data/apple/desired_folder/*/*
match on /mnt/data/apple/dir_1/*/*
match on /mnt/data/apple/folder_two/*/*

DONT match /mnt/data/apple/junk/*/*]
DONT match on too many others to list
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Each directory in the whitelist, has one more sub-directory, then the log files themselves, of which I want everything in the folder.  Do I have to write 3 monitor stanzas for this? &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;failed attempts - no logs get pulled in&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///mnt/data/apple/(dir_1|folder_two|index_this)/*/*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///mnt/data/apple/*/*/*]
whitelist = (dir_1|folder_two|index_this)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For now I've resorted to 3 monitor stanza's but I thought there is a cleaner way to do this in Splunk that I've completely forgotten/missed.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 07:04:04 GMT</pubDate>
    <dc:creator>DEAD_BEEF</dc:creator>
    <dc:date>2020-02-12T07:04:04Z</dc:date>
    <item>
      <title>Splunk inputs and whitelists --- how to?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-inputs-and-whitelists-how-to/m-p/465461#M80244</link>
      <description>&lt;P&gt;I've combed through inputs.conf and the various questions on answers but can't seem to get a definitive example in how to employ a whitelist or modify my monitor stanza to match on specific folders and their sub-directories per my use case.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;match on /mnt/data/apple/desired_folder/*/*
match on /mnt/data/apple/dir_1/*/*
match on /mnt/data/apple/folder_two/*/*

DONT match /mnt/data/apple/junk/*/*]
DONT match on too many others to list
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Each directory in the whitelist, has one more sub-directory, then the log files themselves, of which I want everything in the folder.  Do I have to write 3 monitor stanzas for this? &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;failed attempts - no logs get pulled in&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///mnt/data/apple/(dir_1|folder_two|index_this)/*/*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///mnt/data/apple/*/*/*]
whitelist = (dir_1|folder_two|index_this)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For now I've resorted to 3 monitor stanza's but I thought there is a cleaner way to do this in Splunk that I've completely forgotten/missed.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 07:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-inputs-and-whitelists-how-to/m-p/465461#M80244</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2020-02-12T07:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk inputs and whitelists --- how to?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-inputs-and-whitelists-how-to/m-p/465462#M80245</link>
      <description>&lt;P&gt;better of writing 3 stanzas&lt;BR /&gt;
if the files in each directory tree are different, you will want 3 stanzas anyways so you can apply the correct sourcetype to each&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-inputs-and-whitelists-how-to/m-p/465462#M80245</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-02-12T13:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk inputs and whitelists --- how to?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-inputs-and-whitelists-how-to/m-p/465463#M80246</link>
      <description>&lt;P&gt;Okay, but let's say I have 300 directories that I want (but there are over 5,000 I don't want)... must I still write them all out?  I omitted sourcetype and everything else for brevity and assuming they are all the same sourcetype.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 16:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-inputs-and-whitelists-how-to/m-p/465463#M80246</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2020-02-12T16:06:28Z</dc:date>
    </item>
  </channel>
</rss>

