<?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: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317224#M59294</link>
    <description>&lt;P&gt;that documents says:&lt;BR /&gt;
&lt;STRONG&gt;Although similar to forwarder-based routing, queue routing can be performed by an indexer, as well as a heavy forwarder. It does not use the outputs.conf file, only props.conf and transforms.conf. &lt;BR /&gt;
You can eliminate unwanted data by routing it to nullQueue, the Splunk equivalent of the Unix /dev/null device. When you filter out data in this way, the data is not forwarded and doesn't count toward your indexing volume.&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;I'm just not sure what the regex needs to be in the transforms.conf to include the events I want, particularly on the multi line event.&lt;/P&gt;

&lt;P&gt;If I use the regex -EnVisionRequest\sversion|EnVisionResponse\sversion|TransactionStatusDetail  will I get&lt;BR /&gt;
all the lines in the multi line event?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 15:14:46 GMT</pubDate>
    <dc:creator>riotto</dc:creator>
    <dc:date>2017-02-24T15:14:46Z</dc:date>
    <item>
      <title>Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317222#M59292</link>
      <description>&lt;P&gt;We have a Universal Forwarder that is sending a huge amount of data. We need to only index events that contain any of  these words-- "EnvisionResponse" or "EnvisionRequest" or "TransactionStatusDetail".&lt;/P&gt;

&lt;P&gt;The "EnvisionRequest" event is multiple lines so I need all the lines for the event:&lt;BR /&gt;
 here is an example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-02-23 12:00:02,982 INFO   (http-139.61.194.230-8380-24)  EnvisionRequest version="1"
referenceNbr 869dc644e461b01
messageType P
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Our Splunk Indexer is version 6.1&lt;BR /&gt;
Can this be done in the props.conf and transforms.conf on the Indexer without adding to the daily license volume?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317222#M59292</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2017-02-23T23:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317223#M59293</link>
      <description>&lt;P&gt;You need to use a heavy forwarder to filter data before indexing it. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad"&gt;Route and filter data&lt;/A&gt; in the &lt;EM&gt;Forwarding Data&lt;/EM&gt; manual. You would configure props.conf and transforms.conf on the forwarder.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317223#M59293</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2017-02-23T23:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317224#M59294</link>
      <description>&lt;P&gt;that documents says:&lt;BR /&gt;
&lt;STRONG&gt;Although similar to forwarder-based routing, queue routing can be performed by an indexer, as well as a heavy forwarder. It does not use the outputs.conf file, only props.conf and transforms.conf. &lt;BR /&gt;
You can eliminate unwanted data by routing it to nullQueue, the Splunk equivalent of the Unix /dev/null device. When you filter out data in this way, the data is not forwarded and doesn't count toward your indexing volume.&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;I'm just not sure what the regex needs to be in the transforms.conf to include the events I want, particularly on the multi line event.&lt;/P&gt;

&lt;P&gt;If I use the regex -EnVisionRequest\sversion|EnVisionResponse\sversion|TransactionStatusDetail  will I get&lt;BR /&gt;
all the lines in the multi line event?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 15:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317224#M59294</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2017-02-24T15:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317225#M59295</link>
      <description>&lt;P&gt;ChrisG is correct... you're probably interested in the Keep Specific events and Discard the rest: section of this doc: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But it sounds like you're also interested in the mechanics of the indexing pipelines, which can be found as an overview: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Indexer/Howindexingworks"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Indexer/Howindexingworks&lt;/A&gt; but I really like the detailed diagram &lt;A href="https://wiki.splunk.com/Community:HowIndexingWorks"&gt;https://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When data comes from the forwarder, it's first broken into individual lines (parsing pipeline, linebreaking processor)... then those lines are merged into events (Merging pipeline, aggregator processor)... then we apply regexes to the event (Typing pipeline, regex extraction processor). So if your regex matches a single part of your multi-line event, then you'll get all of the lines of the event. (because all lines are a whole event by that point). If you are not getting particular lines, then you'll need to adjust props settings to fix how Splunk is breaking your stream of data ultimately into events.&lt;/P&gt;

&lt;P&gt;Does that make sense?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 17:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317225#M59295</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2017-02-24T17:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317226#M59296</link>
      <description>&lt;P&gt;Yes...and that's the answer I was looking for&lt;/P&gt;

&lt;P&gt;BUT is ChrisG correct when he says:&lt;BR /&gt;
&lt;EM&gt;You need to use a **heavy forwarder&lt;/EM&gt;* to filter data before indexing it* ?   or can it be done on the indexer itself? If if can then I should be able to achieve volume reduction, right?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317226#M59296</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2020-09-29T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317227#M59297</link>
      <description>&lt;P&gt;Yes, it can be done on the indexer itself. (But if you're using a heavy forwarder locally or intermediate heavy forwarder it has to be done there). It cannot be done on a Universal Forwarder (which means you're sending data over your network to throw it out... which depending on distance and the volume you're throwing away may or may not be a concern)... UNLESS you are using a sourcetype that uses INDEXED_EXTRACTIONS, in which case you have to do it on the UF. &lt;/P&gt;

&lt;P&gt;(And yes you will achieve volume reduction in terms of license and in terms of events... the events will not be written to disk and therefore not counted. From the same HowIndexingWorks detailed diagram, see that LicenseVolumeCalculation happens with the index processor in the indexer pipeline, right as data is written... if data isn't written, then it's not counted).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 19:03:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317227#M59297</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2017-02-24T19:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317228#M59298</link>
      <description>&lt;P&gt;TIL, thanks, acharlieh!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 19:24:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317228#M59298</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2017-02-24T19:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317229#M59299</link>
      <description>&lt;P&gt;I have it working at the indexer....my concern was the daily license volume &lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 21:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317229#M59299</guid>
      <dc:creator>riotto</dc:creator>
      <dc:date>2017-02-24T21:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can data being sent from a Universal Forwarder be filtered at the indexer level for only certain events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317230#M59300</link>
      <description>&lt;P&gt;@riotto - Did one of the answers below help provide a solution your question? If yes, please click “Accept” below the best answer to resolve this post and upvote anything that was helpful. If no, please leave a comment with more feedback. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 03:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-data-being-sent-from-a-Universal-Forwarder-be-filtered-at/m-p/317230#M59300</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-04-21T03:20:48Z</dc:date>
    </item>
  </channel>
</rss>

