<?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 events from forwards in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35400#M6438</link>
    <description>&lt;P&gt;Does not work at all if I don't add _TCP_ROUTING. I have added this because document says for TCP routing.(between two Linux servers). &lt;/P&gt;

&lt;P&gt;What does desk_key = queue mean? &lt;/P&gt;

&lt;P&gt;My setup is still not okay, I think reason is [setnull] options around. &lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:43:42 GMT</pubDate>
    <dc:creator>chittari</dc:creator>
    <dc:date>2020-09-28T11:43:42Z</dc:date>
    <item>
      <title>Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35390#M6428</link>
      <description>&lt;P&gt;Hello - I want to send only events with keyword BIDPRICE from my application logs. I guess i need to modifiy props.conf, transforms.conf and outputs.conf &lt;/P&gt;

&lt;P&gt;Can someone help me what changes are acually needed. &lt;BR /&gt;
fyi-Currently forwading is working fine without &lt;STRONG&gt;this&lt;/STRONG&gt; filter. &lt;/P&gt;

&lt;P&gt;Thanks in advance for help. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 09:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35390#M6428</guid>
      <dc:creator>chittari</dc:creator>
      <dc:date>2012-04-25T09:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35391#M6429</link>
      <description>&lt;P&gt;If these are light or universal forwarder, you cannot filter the logs there. You'll have to do it at the indexer instead. Instructions on how to do this are available in the docs: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 09:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35391#M6429</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-04-25T09:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35392#M6430</link>
      <description>&lt;P&gt;This is quite thoroughly discussed in the docs, please see:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/Deploy/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.1/Deploy/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you have a heavy forwarder, the settings should be placed there. In all other cases, the settings should be on the indexer.&lt;/P&gt;

&lt;P&gt;In short, what you need to do is&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[your_applog_sourcetype]&lt;BR /&gt;
TRANSFORMS-keep_only_bidprice= setnull,setparsing&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In transforms.conf:&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX = BIDPRICE&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;What this does is to apply a set of rules to your incoming data. First, in props.conf you tell splunk that all events of a certain sourcetype should pass through a transform (or in this case, two transforms - &lt;CODE&gt;setnull&lt;/CODE&gt; and &lt;CODE&gt;setparsing&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;Then, in transforms.conf, you state how data should be treated. &lt;CODE&gt;setnull&lt;/CODE&gt; routes data to the nullQueue, i.e. throws it away. &lt;CODE&gt;setparsing&lt;/CODE&gt; will match all events containing the string BIDPRICE and send these on for parsing and indexing.&lt;/P&gt;

&lt;P&gt;If this does not work for you, then please tell us more about your setup, and post the relevant parts of props.conf and transforms.conf, along with a few sample events from your application log file.&lt;/P&gt;

&lt;P&gt;You should know though that this will only work for new data coming in, and not alter any existing events already in your index.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE AGAIN:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;DEST_KEY = queue&lt;/CODE&gt; is where you state what parameter should be altered by the transform.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;FORMAT = nullQueue&lt;/CODE&gt; is the value that will be set for the parameter. (&lt;CODE&gt;nullQueue&lt;/CODE&gt; is something like &lt;CODE&gt;/dev/null&lt;/CODE&gt;) &lt;/P&gt;

&lt;P&gt;Think of it as saying &lt;CODE&gt;queue = nullQueue&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;So what happens when use &lt;CODE&gt;TRANSFORMS-set = setnull, setparsing&lt;/CODE&gt; in props.conf is; &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;set the destination of all events to&lt;BR /&gt;
nullQueue (since all events will&lt;BR /&gt;
match the dot (.) in the regex, i.e.&lt;BR /&gt;
throw them away. &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;then, for those matching the regex in&lt;BR /&gt;
&lt;CODE&gt;setparsing&lt;/CODE&gt;, i.e.&lt;BR /&gt;
BidPrice, the destination should be&lt;BR /&gt;
re-written to be the indexQueue,&lt;BR /&gt;
which is where events normally for&lt;BR /&gt;
indexing.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:43:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35392#M6430</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T11:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35393#M6431</link>
      <description>&lt;P&gt;Thanks for your reply But This did not work.. I still see all the events in my indexer (Indexer was restarted). Not sure what below values refers to, Any conf update needed to understand what is queue and nullQueue? &lt;BR /&gt;
"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
"&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 10:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35393#M6431</guid>
      <dc:creator>chittari</dc:creator>
      <dc:date>2012-04-25T10:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35394#M6432</link>
      <description>&lt;P&gt;see update above. /k&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 11:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35394#M6432</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-25T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35395#M6433</link>
      <description>&lt;P&gt;Sorry for conusion around. Here is my current setup wrt Filtering and i see all events flowing down to Indexer &lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;props.conf *&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;[host::sgppsr00346.XXXX.XXXX.com]&lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;transforms.conf *&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue  [Not sure what should be here for the case of TCP]&lt;BR /&gt;
FORMAT = nullQueue  [Not sure what should be here for the case of TCP]&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX = [BidPrice]&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING   [TCP routing]&lt;BR /&gt;
FORMAT = GroupName   [This is currect group name as per outputs.conf]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35395#M6433</guid>
      <dc:creator>chittari</dc:creator>
      <dc:date>2020-09-28T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35396#M6434</link>
      <description>&lt;P&gt;What does the event look like? You have to make sure that the regex matches the text in the event. If it does not, then all events are thrown away - since they match the setnull transform.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 11:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35396#M6434</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-25T11:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35397#M6435</link>
      <description>&lt;P&gt;Event looks like this&lt;/P&gt;

&lt;P&gt;INFO 19:55:55,284 &lt;A href="benchmark.BenchmarkPriceBuilder%20updatePriceData:124"&gt;&lt;/A&gt; - UST prices for FIDO : [423423] : BidPrice[103.25390625] AskPrice[103.28515625] BidYield[0.7235491957] AskYield[0.71622942792] at [1335354955284]&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 11:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35397#M6435</guid>
      <dc:creator>chittari</dc:creator>
      <dc:date>2012-04-25T11:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35398#M6436</link>
      <description>&lt;P&gt;Then the regex in transforms.conf should look like;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;REGEX = BidPrice&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 12:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35398#M6436</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-25T12:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35399#M6437</link>
      <description>&lt;P&gt;And don't use &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; unless you know what you are doing.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35399#M6437</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35400#M6438</link>
      <description>&lt;P&gt;Does not work at all if I don't add _TCP_ROUTING. I have added this because document says for TCP routing.(between two Linux servers). &lt;/P&gt;

&lt;P&gt;What does desk_key = queue mean? &lt;/P&gt;

&lt;P&gt;My setup is still not okay, I think reason is [setnull] options around. &lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35400#M6438</guid>
      <dc:creator>chittari</dc:creator>
      <dc:date>2020-09-28T11:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35401#M6439</link>
      <description>&lt;P&gt;Sorry, but WHERE (in which file, on which host) are you making these configuration changes, and what is your setup? &lt;/P&gt;

&lt;P&gt;A) Heavy Forwarder -&amp;gt; indexer ?&lt;BR /&gt;
B) Universal Forwarder -&amp;gt; indexer ?&lt;/P&gt;

&lt;P&gt;For the rest, see update above. &lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 13:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35401#M6439</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-25T13:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35402#M6440</link>
      <description>&lt;P&gt;Universal Forwarder -&amp;gt; indexer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 14:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35402#M6440</guid>
      <dc:creator>chittari</dc:creator>
      <dc:date>2012-04-25T14:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35403#M6441</link>
      <description>&lt;P&gt;It works now ... (relief). I guess the problem was within props.conf file. Looks like [host:: XXXX] does not work with universal forwaders. I chaged this to [source:: &lt;BLAH blah=""&gt;] and it worked. &lt;/BLAH&gt;&lt;/P&gt;

&lt;P&gt;Thanks a lot for your guidence&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 16:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35403#M6441</guid>
      <dc:creator>chittari</dc:creator>
      <dc:date>2012-04-25T16:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter events from forwards</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35404#M6442</link>
      <description>&lt;P&gt;you are welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 18:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-events-from-forwards/m-p/35404#M6442</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-25T18:28:17Z</dc:date>
    </item>
  </channel>
</rss>

