<?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: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158287#M32093</link>
    <description>&lt;P&gt;I found the input type by looking at &lt;CODE&gt;etc\apps\search\local\inputs.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Turns out it's &lt;CODE&gt;[monitor://C:\Logs\dhcplogs]&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2015 17:29:30 GMT</pubDate>
    <dc:creator>grantsales</dc:creator>
    <dc:date>2015-04-27T17:29:30Z</dc:date>
    <item>
      <title>How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158279#M32085</link>
      <description>&lt;P&gt;I'm using splunk enterprise on a local windows based system. &lt;/P&gt;

&lt;P&gt;I have a file reader configured to watch a directory where I dump logs and folders of logs. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;c:\logs\*\*.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All folders and files that end in ".log"&lt;/P&gt;

&lt;P&gt;There is a specific event that is typically in my .log files and they always start with 30 and 32. I'd like to filter this out and I've tried everything I can think of. &lt;/P&gt;

&lt;P&gt;I even copied this type of setup, but I can't seem to get it working: &lt;BR /&gt;
Section: "Discard specific events and keep the rest"&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Used this for a reference for windows file paths: &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Specifyinputpathswithwildcards"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;in the &lt;CODE&gt;etc\system\local&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::....log]
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also tried &lt;CODE&gt;[source:://....log]&lt;/CODE&gt;&lt;BR /&gt;
Also tried &lt;CODE&gt;[monitor:://....log]&lt;/CODE&gt;&lt;BR /&gt;
Also tried &lt;CODE&gt;[monitor::....log]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
regex = ^3[02]
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After making changes, I restart splunk and send some test data, every time, my unwanted events that start with 30 and 32 still show up. Any help would be great, I'm pretty sure my regex is right, but I don't have any idea if the rest is. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Grant&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158279#M32085</guid>
      <dc:creator>grantsales</dc:creator>
      <dc:date>2015-04-27T16:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158280#M32086</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;First remark, do not use "setnull" as a transforms name, it's too generic ,and could overwrite an existing definition.&lt;BR /&gt;
Prefer something that describe better like : "setnull_logfilter"&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Second remark, maybe a typo &lt;/P&gt;

&lt;P&gt;TRANSFROMS-null= setnull&lt;BR /&gt;
should be &lt;/P&gt;

&lt;P&gt;TRANSFORMS-null= setnull&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158280#M32086</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-04-27T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158281#M32087</link>
      <description>&lt;P&gt;Yes, typo sorry. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158281#M32087</guid>
      <dc:creator>grantsales</dc:creator>
      <dc:date>2015-04-27T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158282#M32088</link>
      <description>&lt;P&gt;How can I find out the correct type for the [source] or [monitor]?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158282#M32088</guid>
      <dc:creator>grantsales</dc:creator>
      <dc:date>2015-04-27T16:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158283#M32089</link>
      <description>&lt;P&gt;tried: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-null = setnull_dhcp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also didn't work, I did change the transforms.conf file too when doing this name change. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158283#M32089</guid>
      <dc:creator>grantsales</dc:creator>
      <dc:date>2015-04-27T16:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158284#M32090</link>
      <description>&lt;P&gt;The next step is to figure is you have a single instance or if this forwarder is sending data to another instance (indexer, or heavy forwarder)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The index time rules have to be setup on the instance that is parsing the events&lt;/STRONG&gt; : the indexers (or the intermediary heavy forwarder if any)&lt;/P&gt;

&lt;P&gt;example  of forwarding architectures :&lt;BR /&gt;
UF -&amp;gt; IDX (put rules here)&lt;BR /&gt;
UF -&amp;gt; UF -&amp;gt; IDX (put rules here)&lt;BR /&gt;
UF -&amp;gt; HF (put rules here) -&amp;gt; IDX&lt;BR /&gt;
UF -&amp;gt; IDX (put rules here) -&amp;gt; IDX&lt;BR /&gt;
IDX (put rules here) &lt;BR /&gt;
HF (put rules here) -&amp;gt; IDX&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:10:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158284#M32090</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-04-27T17:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158285#M32091</link>
      <description>&lt;P&gt;it's basically just a single instance test box, not forwarding any data. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158285#M32091</guid>
      <dc:creator>grantsales</dc:creator>
      <dc:date>2015-04-27T17:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158286#M32092</link>
      <description>&lt;P&gt;Ok. so let's try with a broader props.conf condition&lt;/P&gt;

&lt;P&gt;[source::*log]&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158286#M32092</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-04-27T17:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158287#M32093</link>
      <description>&lt;P&gt;I found the input type by looking at &lt;CODE&gt;etc\apps\search\local\inputs.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Turns out it's &lt;CODE&gt;[monitor://C:\Logs\dhcplogs]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158287#M32093</guid>
      <dc:creator>grantsales</dc:creator>
      <dc:date>2015-04-27T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props and transforms to filter out logs that start with 30 and 32 in a local monitored directory on Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158288#M32094</link>
      <description>&lt;P&gt;Tried both with &lt;BR /&gt;
&lt;CODE&gt;TRANSFORMS-null = setnull_dhcp&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Still not filtering correctly. Is my regex wrong? do I need to stick this into a different .conf file?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-and-transforms-to-filter-out-logs-that/m-p/158288#M32094</guid>
      <dc:creator>grantsales</dc:creator>
      <dc:date>2015-04-27T17:31:42Z</dc:date>
    </item>
  </channel>
</rss>

