<?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: whitelist and wildcard for rotated file without recursive option in inputs.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109453#M28555</link>
    <description>&lt;P&gt;Thx, for first tip MuS, but unfortunately this isn't working.&lt;BR /&gt;
I'm sometimes using it without backslash by mistake like one any charater.&lt;/P&gt;

&lt;P&gt;Weird is that it's working also for configurations like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///mnt/log/postgresql.log*]
whitelist=(.log$|.log.1$)
index=os
sourcetype=postgres
recursive=false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Jun 2014 12:38:20 GMT</pubDate>
    <dc:creator>koudis</dc:creator>
    <dc:date>2014-06-18T12:38:20Z</dc:date>
    <item>
      <title>whitelist and wildcard for rotated file without recursive option in inputs.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109451#M28553</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have following configuration in inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/audit/audit.log*]
whitelist=(audit\.log$|audit\.log.1$)
index=int-os
sourcetype=audit
recursive=false
[monitor:///mnt/log/messages*]
whitelist=(messages$|messages\.1$)
index=int-os
sourcetype=messages
recursive=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Files are like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@instance:/home/milan.koudelka] ls -l /var/log/audit/
total 26604
-rw-r-----. 1 root splunk 2035776 Jun 18 13:31 audit.log
-r--r-----. 1 root splunk 6291677 Jun 17 17:37 audit.log.1
-r--r-----. 1 root splunk 6291484 Jun 15 02:09 audit.log.2
-r--r-----. 1 root splunk 6291614 Jun 12 10:28 audit.log.3
-r--r-----. 1 root splunk 6291656 Jun  9 19:09 audit.log.4

[root@splunk-ds1:/home/milan.koudelka] ls -l /mnt/log/messages*
-rw-r-----. 1 root splunk  18817 Jun 18 13:32 /mnt/log/messages
-rw-r-----. 1 root splunk  24468 Jun 18 03:42 /mnt/log/messages.1
-rw-r-----. 1 root splunk  52044 Jun 17 03:56 /mnt/log/messages.2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's weird that for messages log file, input is working correctly, when for audit.log input isn't working at all.&lt;BR /&gt;
I've tried to use all configurations like these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/audit/*]
[monitor:///var/log/audit/*.log]
[monitor:///var/log/audit/]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;None of these are working. I don't want to allow recursive.&lt;/P&gt;

&lt;P&gt;Only one working is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/audit/audit.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this will not catch first rotated file audit.log.1&lt;/P&gt;

&lt;P&gt;Any advice why it's working for one log file and it isn't working for another ?&lt;/P&gt;

&lt;P&gt;Splunk version 6.0.3&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109451#M28553</guid>
      <dc:creator>koudis</dc:creator>
      <dc:date>2014-06-18T11:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist and wildcard for rotated file without recursive option in inputs.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109452#M28554</link>
      <description>&lt;P&gt;Hi koudis,&lt;/P&gt;

&lt;P&gt;your &lt;CODE&gt;whitelist&lt;/CODE&gt; for audit.log should be like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; whitelist=(audit\.log$|audit\.log\.1$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 12:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109452#M28554</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-18T12:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist and wildcard for rotated file without recursive option in inputs.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109453#M28555</link>
      <description>&lt;P&gt;Thx, for first tip MuS, but unfortunately this isn't working.&lt;BR /&gt;
I'm sometimes using it without backslash by mistake like one any charater.&lt;/P&gt;

&lt;P&gt;Weird is that it's working also for configurations like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///mnt/log/postgresql.log*]
whitelist=(.log$|.log.1$)
index=os
sourcetype=postgres
recursive=false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jun 2014 12:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109453#M28555</guid>
      <dc:creator>koudis</dc:creator>
      <dc:date>2014-06-18T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist and wildcard for rotated file without recursive option in inputs.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109454#M28556</link>
      <description>&lt;P&gt;When you specify wildcards in a file input path, Splunk creates an implicit whitelist for that stanza. The longest fully qualified path becomes the monitor stanza, and the wildcards are translated into regular expressions. &lt;BR /&gt;
This means your whitelist is being clobberd by your use of * expressions in the stanza.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 13:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109454#M28556</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-18T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: whitelist and wildcard for rotated file without recursive option in inputs.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109455#M28557</link>
      <description>&lt;P&gt;So the easiest way to ensure that only two exact files (audit.log and audit.log.1) will be monitored, without any recursion is like this ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/audit/audit.log]
index=int-os
sourcetype=audit
recursive=false

[monitor:///var/log/audit/audit.log.1]
source=/var/log/audit/audit.log
index=int-os
sourcetype=audit
recursive=false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jul 2014 15:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/whitelist-and-wildcard-for-rotated-file-without-recursive-option/m-p/109455#M28557</guid>
      <dc:creator>koudis</dc:creator>
      <dc:date>2014-07-22T15:50:20Z</dc:date>
    </item>
  </channel>
</rss>

