<?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: fschange whitelist and blacklist cumbersome configuration in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/fschange-whitelist-and-blacklist-cumbersome-configuration/m-p/80395#M16563</link>
    <description>&lt;P&gt;fschange black and whitelist do not work as monitor black/whitelist hence quite a bit of trial and error is needed to get it write. Yes, you can start to have hundreds of regex# and have no signs seeing the end of it.&lt;/P&gt;

&lt;P&gt;The easiest workaround that I can suggest is to use props.conf and transforms.conf to index only those you wish to index and send others to nullQueue.&lt;/P&gt;

&lt;P&gt;For examples, to make it simple I did c:\Windows fschange monitor filesystem:&lt;/P&gt;

&lt;P&gt;Inputs.conf:&lt;BR /&gt;
[fschange:c:\Windows]&lt;BR /&gt;
index = fschange-prob&lt;BR /&gt;
recurse = true&lt;BR /&gt;
delayInMills = 3&lt;BR /&gt;
pollPeriod = 3&lt;BR /&gt;
hashMaxSize=-1&lt;BR /&gt;
fullEvent=false&lt;BR /&gt;
sendEventMaxSize=-1&lt;BR /&gt;
sourcetype=exe-dll&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[exe-dll]&lt;BR /&gt;
TRANSFORMS-delindexfschange=deletefschange,sendtoparse&lt;/P&gt;

&lt;P&gt;Transforms.conf:&lt;BR /&gt;
[deletefschange]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[sendtoparse]&lt;BR /&gt;
REGEX = (.*?).(EXE|exe|Exe|dll|Dll|DLL)\"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Since you wish to monitor c:\Windows\system and c:\Windows\System32, you can edit your regex to filter further. The above will index all the files under c:\Windows whose extension is exe or dll, the rest will be sent to nullQueue and will not get indexed.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2012 06:34:24 GMT</pubDate>
    <dc:creator>elusive</dc:creator>
    <dc:date>2012-06-21T06:34:24Z</dc:date>
    <item>
      <title>fschange whitelist and blacklist cumbersome configuration</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fschange-whitelist-and-blacklist-cumbersome-configuration/m-p/80394#M16562</link>
      <description>&lt;P&gt;I want to monitor only exe and dll extension files located in:&lt;BR /&gt;
C:\Windows\System32&lt;BR /&gt;
and&lt;BR /&gt;
C:\Windows\System &lt;/P&gt;

&lt;P&gt;So far, I have set up filters - I have 50 regex - but there are still more and more file types which are going to splunk which I do not wish to monitor.  is there any simpler way?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 06:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fschange-whitelist-and-blacklist-cumbersome-configuration/m-p/80394#M16562</guid>
      <dc:creator>elusive</dc:creator>
      <dc:date>2012-06-21T06:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: fschange whitelist and blacklist cumbersome configuration</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/fschange-whitelist-and-blacklist-cumbersome-configuration/m-p/80395#M16563</link>
      <description>&lt;P&gt;fschange black and whitelist do not work as monitor black/whitelist hence quite a bit of trial and error is needed to get it write. Yes, you can start to have hundreds of regex# and have no signs seeing the end of it.&lt;/P&gt;

&lt;P&gt;The easiest workaround that I can suggest is to use props.conf and transforms.conf to index only those you wish to index and send others to nullQueue.&lt;/P&gt;

&lt;P&gt;For examples, to make it simple I did c:\Windows fschange monitor filesystem:&lt;/P&gt;

&lt;P&gt;Inputs.conf:&lt;BR /&gt;
[fschange:c:\Windows]&lt;BR /&gt;
index = fschange-prob&lt;BR /&gt;
recurse = true&lt;BR /&gt;
delayInMills = 3&lt;BR /&gt;
pollPeriod = 3&lt;BR /&gt;
hashMaxSize=-1&lt;BR /&gt;
fullEvent=false&lt;BR /&gt;
sendEventMaxSize=-1&lt;BR /&gt;
sourcetype=exe-dll&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[exe-dll]&lt;BR /&gt;
TRANSFORMS-delindexfschange=deletefschange,sendtoparse&lt;/P&gt;

&lt;P&gt;Transforms.conf:&lt;BR /&gt;
[deletefschange]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[sendtoparse]&lt;BR /&gt;
REGEX = (.*?).(EXE|exe|Exe|dll|Dll|DLL)\"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Since you wish to monitor c:\Windows\system and c:\Windows\System32, you can edit your regex to filter further. The above will index all the files under c:\Windows whose extension is exe or dll, the rest will be sent to nullQueue and will not get indexed.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 06:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/fschange-whitelist-and-blacklist-cumbersome-configuration/m-p/80395#M16563</guid>
      <dc:creator>elusive</dc:creator>
      <dc:date>2012-06-21T06:34:24Z</dc:date>
    </item>
  </channel>
</rss>

