<?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: Props and Transforms - include base folder, but not some sub folders in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245175#M47404</link>
    <description>&lt;P&gt;Yes, everything, it actually looks like the filtering might not be being applied at all.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 02:24:40 GMT</pubDate>
    <dc:creator>mrgibbon</dc:creator>
    <dc:date>2016-10-13T02:24:40Z</dc:date>
    <item>
      <title>Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245169#M47398</link>
      <description>&lt;P&gt;Hi all, Im trying to do file nullQueue filtering on my HWF.&lt;BR /&gt;
I want to keep the log entries for /sausages but drop the ones for /sausages/data&lt;/P&gt;

&lt;P&gt;So far I have this: (test setup on desktop)&lt;BR /&gt;
&lt;STRONG&gt;PROPS.CONF&lt;/STRONG&gt;&lt;BR /&gt;
[source::/home/splunk/Desktop/xxx/fs-audit.log*]&lt;BR /&gt;
TRANSFORMS-set= setnull,whitelist,blacklist&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TRANSFORMS.CONF&lt;/STRONG&gt;&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX= .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[whitelist]&lt;BR /&gt;
REGEX = /sausages&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;[blacklist]&lt;BR /&gt;
REGEX = /sausages/data&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;I did play with escaping the slashes like \/sausages\/ but that didnt work either.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 01:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245169#M47398</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-10-13T01:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245170#M47399</link>
      <description>&lt;P&gt;These configurations are filtering your data on an event by event basis. Am I right in thinking you are wanting to filter out whole log files depending on their location? If so, you probably want to configure this in inputs.conf rather than props.&lt;BR /&gt;
Also, for your whitelist and blacklist stanzas, Splunk is looking in _raw for /sausages and /sausages/data. Can these phrases be found in the events that you are filtering out? If so, can you provide an example event?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245170#M47399</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2016-10-13T02:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245171#M47400</link>
      <description>&lt;P&gt;Yes, all the data is in one audit.log file, I want to remove any entries with /sausages/data but keep everything else with /sausages.&lt;BR /&gt;
I thought the . regex at the start would kill off any other entries in the file too.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245171#M47400</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-10-13T02:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245172#M47401</link>
      <description>&lt;P&gt;So are you receiving any events at the moment?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:22:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245172#M47401</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2016-10-13T02:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245173#M47402</link>
      <description>&lt;P&gt;Hi mrgibbon, &lt;/P&gt;

&lt;P&gt;I wonder if  you could just directly define your filter criteria in the regex rather than use whitelist and blacklist: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TRANSFORMS.CONF&lt;/STRONG&gt;&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX= /sausages/data&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;It's worth a try. Thanks!&lt;BR /&gt;
Hunter&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245173#M47402</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2016-10-13T02:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245174#M47403</link>
      <description>&lt;P&gt;So keep the first log entry and nullQueue the 2nd one:&lt;/P&gt;

&lt;P&gt;2016-09-26T10:17:38+10:00 fort audit: [ID 702911 audit.notice] open(2) - read,write ok session 2315219746 by user as user:user from 23.23.23.23 obj /sausages/KEEPME.DAT&lt;/P&gt;

&lt;P&gt;2016-09-26T10:17:38+10:00 fort audit: [ID 702911 audit.notice] open(2) - read,write ok session 2315219746 by user as user:user from 23.23.23.23 obj /sausages/data/somecorp/test.DAT&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245174#M47403</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-10-13T02:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245175#M47404</link>
      <description>&lt;P&gt;Yes, everything, it actually looks like the filtering might not be being applied at all.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245175#M47404</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-10-13T02:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245176#M47405</link>
      <description>&lt;P&gt;yeah, the problem is, that this is just one example in this file, there are many others to add too.&lt;BR /&gt;
I just want to start solving a small issue and work on it from there, its driving me nuts.&lt;/P&gt;

&lt;P&gt;My original transforms.conf looked like this:&lt;/P&gt;

&lt;P&gt;TRANSFORMS.CONF&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX= .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[whitelist]&lt;BR /&gt;
REGEX = /etc|/usr|/bin|/sbin|/opt|/uniworks|/u|/lib&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;[blacklist]&lt;BR /&gt;
REGEX = /var|/tmp|/vol|/system|/rpool|/proc|/net|/mnt|/backup|/archive|/devices|/export|/kernel|/platform|/uniworks/data&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245176#M47405</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-10-13T02:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245177#M47406</link>
      <description>&lt;P&gt;Is it possible that you define a sourcetype for all the events you want to exclude from indexing and then you can send data of that sourcetype to nullQueue? &lt;BR /&gt;
And just like lguinn suggested, it's advisable to use SOURCE=MetaData.Source to just filter the source. &lt;BR /&gt;
Thanks! &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245177#M47406</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2016-10-13T02:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245178#M47407</link>
      <description>&lt;P&gt;Sorted it. &lt;BR /&gt;
There was a second file added to the inputs.conf and it didn't have the transforms applied to it!&lt;BR /&gt;
So I was filtering on just one file, everything from the 2nd file was getting through.&lt;BR /&gt;
Thanks so much for the help!!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245178#M47407</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-10-13T02:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Props and Transforms - include base folder, but not some sub folders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245179#M47408</link>
      <description>&lt;P&gt;Glad to know you have figured it out. Cheers! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 02:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-and-Transforms-include-base-folder-but-not-some-sub/m-p/245179#M47408</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2016-10-13T02:50:24Z</dc:date>
    </item>
  </channel>
</rss>

