<?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: Filtering and sending only specific data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24837#M3975</link>
    <description>&lt;P&gt;That worked perfectly, but the qeues was on forwarder.&lt;/P&gt;

&lt;P&gt;Now i want to send the data from hosts to indexer, but i want to specify what kind of data do i want to send to Indexer.&lt;/P&gt;

&lt;P&gt;In this way i will not have problems with exceding space limits (500megas)&lt;/P&gt;

&lt;P&gt;In other example i was filtering but not sending data do indexer now i´m trying to use TCP_ROUTING to send data to indexer.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2012 17:45:50 GMT</pubDate>
    <dc:creator>JPValadas</dc:creator>
    <dc:date>2012-04-11T17:45:50Z</dc:date>
    <item>
      <title>Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24834#M3972</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;

&lt;P&gt;I  got one question in filtering and routing to indexer.&lt;/P&gt;

&lt;P&gt;i got my props like this:&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;pros.conf&lt;/P&gt;

&lt;P&gt;[WinEventLog:System]&lt;/P&gt;

&lt;P&gt;TRANSFORMS-wmi = WantedEventCodes&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;/P&gt;

&lt;P&gt;defaultGroup = splunk.host.pt_9997&lt;/P&gt;

&lt;P&gt;[tcpout:splunk.host.pt_9997]&lt;/P&gt;

&lt;P&gt;autoLB = true&lt;/P&gt;

&lt;P&gt;server = splunk.host.pt:9997&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[WantedEventCodes]&lt;/P&gt;

&lt;P&gt;REGEX = (?msi)^EventCode=(7040)&lt;/P&gt;

&lt;P&gt;DEST_KEY= _TCP_ROUTING&lt;/P&gt;

&lt;P&gt;FORMAT = splunk.host.pt_9997&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;My question is, my forwarder still sending everything to my inxeder, but shouldnt he filter and send only my event code 7040 to indexer?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24834#M3972</guid>
      <dc:creator>JPValadas</dc:creator>
      <dc:date>2020-09-28T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24835#M3973</link>
      <description>&lt;P&gt;I think that you have a default configuration of sending logs to splunk.host.pt:9997, and then you specify that you want to send a subset of these (those matching your EventCode regex) to ... the same place.&lt;/P&gt;

&lt;P&gt;Didn't the nullQueue config work out for you?&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/44583/splunk-filter-on-windows"&gt;http://splunk-base.splunk.com/answers/44583/splunk-filter-on-windows&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;Is there perhaps an element of confusion here? &lt;/P&gt;

&lt;P&gt;On a heavy forwarder (or indexer), you can use the &lt;CODE&gt;nullQueue&lt;/CODE&gt; approach to stop some events from being indexed by dropping them, according to your regex.&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; approach can be used when you normally send all your data to one (group of) indexer(s), but want to send some of the data to a different (group of) indexer(s).&lt;/P&gt;

&lt;P&gt;Configuring &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; is not needed for normal forwarding/indexing of events to your ordinary indexer(s).&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE 2:&lt;/P&gt;

&lt;P&gt;No. Sending events to the &lt;CODE&gt;nullQueue&lt;/CODE&gt; will not count towards the license.&lt;/P&gt;

&lt;P&gt;If you only have one indexer, you should use the &lt;CODE&gt;nullQueue&lt;/CODE&gt; to filter out events that you do not want to index. If you have a Heavy forwarder you put your configs there, if you have a Lightweight or Universal forwarder, you do the configuration on the indexer. &lt;/P&gt;

&lt;P&gt;/kristian&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24835#M3973</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-11T17:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24836#M3974</link>
      <description>&lt;P&gt;Kristian is correct, I think, with his assessment of the configuration. This configuration would forward everything to splunk.host.pt:9997. Additionally, this configuration would only a subset of events from a heavy forwarder to an indexer, or from an indexer to another indexer. If you're trying to do this on a Universal/Lightweight forwarder, it isn't going to work because no data is parsed on those instances.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24836#M3974</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-04-11T17:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24837#M3975</link>
      <description>&lt;P&gt;That worked perfectly, but the qeues was on forwarder.&lt;/P&gt;

&lt;P&gt;Now i want to send the data from hosts to indexer, but i want to specify what kind of data do i want to send to Indexer.&lt;/P&gt;

&lt;P&gt;In this way i will not have problems with exceding space limits (500megas)&lt;/P&gt;

&lt;P&gt;In other example i was filtering but not sending data do indexer now i´m trying to use TCP_ROUTING to send data to indexer.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24837#M3975</guid>
      <dc:creator>JPValadas</dc:creator>
      <dc:date>2012-04-11T17:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24838#M3976</link>
      <description>&lt;P&gt;You can do this on the indexer with the instructions found here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You're looking for the section that says 'Keep specific events and discard the rest'. This is intended for the exact use case you describe, to avoid exceeding the license volume allowed.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24838#M3976</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-04-11T17:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24839#M3977</link>
      <description>&lt;P&gt;jbsplunk and Kristian thank you for the answer,&lt;/P&gt;

&lt;P&gt;jbsplunk i´m doing this with a heavy forwarder and i should do the changes in forwarder right?  not in indexer.&lt;/P&gt;

&lt;P&gt;I created that props and transforms on forwarder to make him send only Event Code 7040 to indexer, TCP Routing in forwarder should not send to indexer?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 17:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24839#M3977</guid>
      <dc:creator>JPValadas</dc:creator>
      <dc:date>2012-04-11T17:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24840#M3978</link>
      <description>&lt;P&gt;If you're using a heavy forwarder, then the changes will be made on the forwarder, that is correct. If you're using a heavy forwarder, you can just throw all the events you don't want to nullQueue at the forwarder level, and what's left will be sent on. &lt;/P&gt;

&lt;P&gt;I am not sure I understand what you mean by your last question, but the configuration you were previously using sent everything to a single indexer, and then a subset of events to that same indexer, which seems redundant.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 19:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24840#M3978</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-04-11T19:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24841#M3979</link>
      <description>&lt;P&gt;see update above. /k&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 08:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24841#M3979</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-12T08:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24842#M3980</link>
      <description>&lt;P&gt;My last question was:&lt;/P&gt;

&lt;P&gt;sending to null queue in forwarder will not count? in size?&lt;/P&gt;

&lt;P&gt;My afraid is that sending too a Queue even if a Null Queue that will be taking space and exceed the limit in forwarder right? because there is data in a Queue and i only have 500 mgs.&lt;/P&gt;

&lt;P&gt;What i was trying was, in forwarder he see the data that i want and send it to indexer, and trash data will not put in queues, and i will not have problems with space.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 09:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24842#M3980</guid>
      <dc:creator>JPValadas</dc:creator>
      <dc:date>2012-04-12T09:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering and sending only specific data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24843#M3981</link>
      <description>&lt;P&gt;see update above. /k&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 10:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-and-sending-only-specific-data/m-p/24843#M3981</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-12T10:25:58Z</dc:date>
    </item>
  </channel>
</rss>

