<?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: Filter data out from Data Input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134265#M27593</link>
    <description>&lt;P&gt;Setup those type of filters at the indexer level :&lt;BR /&gt;
You can use a rule based on the sourcetype, and a matching regex based on the event.&lt;BR /&gt;
You can test your regex on sample events with the "rex" command in splunk before to make sure.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2014 21:24:28 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2014-04-16T21:24:28Z</dc:date>
    <item>
      <title>Filter data out from Data Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134264#M27592</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have spent last 2 hours searching for this simple scenario on Splunk Answers, without any luck.&lt;BR /&gt;
Here is the case.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Splunk 6.0.2 (Trial version) &lt;/LI&gt;
&lt;LI&gt;OS : Windows 7, 64 Bit&lt;/LI&gt;
&lt;LI&gt;Data Input : A Log4J file on my local computer &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Requirement : Just want to index events which contains the string "[ERROR ]", in my indexer.&lt;/P&gt;

&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 20:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134264#M27592</guid>
      <dc:creator>bahmed</dc:creator>
      <dc:date>2014-04-16T20:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data out from Data Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134265#M27593</link>
      <description>&lt;P&gt;Setup those type of filters at the indexer level :&lt;BR /&gt;
You can use a rule based on the sourcetype, and a matching regex based on the event.&lt;BR /&gt;
You can test your regex on sample events with the "rex" command in splunk before to make sure.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 21:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134265#M27593</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-04-16T21:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data out from Data Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134266#M27594</link>
      <description>&lt;P&gt;Based on the article, I set the following files as shown, but still not getting the filtered log.&lt;/P&gt;

&lt;H2&gt;props.config&lt;/H2&gt;

&lt;P&gt;[MyVacationLog]&lt;BR /&gt;
TRANSFORMS-set= myvacnull,myvacparsing&lt;/P&gt;

&lt;H2&gt;transforms.config&lt;/H2&gt;

&lt;P&gt;[myvacnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[myvacparsing]&lt;BR /&gt;
REGEX = [ERROR]&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 20:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134266#M27594</guid>
      <dc:creator>bahmed</dc:creator>
      <dc:date>2014-04-22T20:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data out from Data Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134267#M27595</link>
      <description>&lt;P&gt;1- [ and ] are regex keyword, you should escape them&lt;BR /&gt;
&lt;CODE&gt;REGEX = \[ERROR\]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2- make sure that those props/transforms are on the indexers (not on universal or lightweight forwarders only)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 21:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134267#M27595</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-04-22T21:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data out from Data Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134268#M27596</link>
      <description>&lt;P&gt;Thanks yannK. I have changed the regular expression as per your point 1. No change in the result.&lt;/P&gt;

&lt;P&gt;My props/transforms are in the following directory : C:\Program Files\Splunk\etc\system\local&lt;/P&gt;

&lt;P&gt;Does that makes them on indexers. &lt;/P&gt;

&lt;P&gt;Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 16:45:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134268#M27596</guid>
      <dc:creator>bahmed</dc:creator>
      <dc:date>2014-04-23T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data out from Data Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134269#M27597</link>
      <description>&lt;P&gt;This looked correct, What is the current behavior when you index new events :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;all events are dropped the nullQueue (with or without the [ERROR] keyword)&lt;/LI&gt;
&lt;LI&gt;all events are indexed ?&lt;/LI&gt;
&lt;LI&gt;a mix of both ?&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;did you restarted the indexers to apply the change ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134269#M27597</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-04-23T19:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data out from Data Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134270#M27598</link>
      <description>&lt;P&gt;For the new events, all of them are getting indexed including the one contains "Error".&lt;/P&gt;

&lt;P&gt;I have restarted the Splunk on my local machine.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 21:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-data-out-from-Data-Input/m-p/134270#M27598</guid>
      <dc:creator>bahmed</dc:creator>
      <dc:date>2014-04-23T21:05:46Z</dc:date>
    </item>
  </channel>
</rss>

