<?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: DATA filtering using Heavy forwarders in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DATA-filtering-using-Heavy-forwarders/m-p/313375#M58734</link>
    <description>&lt;P&gt;You will want to look at the documentation here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Essentially you will want to route the unwanted data to the nullqueue.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 14:20:29 GMT</pubDate>
    <dc:creator>jcrabb_splunk</dc:creator>
    <dc:date>2017-11-28T14:20:29Z</dc:date>
    <item>
      <title>DATA filtering using Heavy forwarders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DATA-filtering-using-Heavy-forwarders/m-p/313374#M58733</link>
      <description>&lt;P&gt;i was tyring to filter a set of data to indexer by filtering out few data and below are the sample logs and configurations:&lt;/P&gt;

&lt;P&gt;Here trying to pass only category_id=FLOWERS to the indexer and ignore GIFTS events. &lt;BR /&gt;
sample log:&lt;/P&gt;

&lt;P&gt;177.23.21.50 - - [24/Jul/2014:03:42:00] "GET /flower_store/category.screen?category_id=GIFTS HTTP/1.1" 200 10591 "&lt;A href="http://mystore.splunk.com/flower_store/main%5C%5C.screen&amp;amp;JSESSIONID=SD2SL2FF7ADFF5" target="_blank"&gt;http://mystore.splunk.com/flower_store/main\\.screen&amp;amp;JSESSIONID=SD2SL2FF7ADFF5&lt;/A&gt;" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 CentOS/1.5.0.10-0.1.el4.centos Firefox/1.5.0.10" 2035 1226&lt;/P&gt;

&lt;P&gt;233.77.49.46 - - [24/Jul/2014:03:41:46] "GET /flower_store/product.screen?product_id=K9-BD-01 HTTP/1.1" 200 10560 "&lt;A href="http://mystore.splunk.com/flower_store/category.screen?category_id=GIFTS&amp;amp;JSESSIONID=SD2SL2FF7ADFF5" target="_blank"&gt;http://mystore.splunk.com/flower_store/category.screen?category_id=GIFTS&amp;amp;JSESSIONID=SD2SL2FF7ADFF5&lt;/A&gt;" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 CentOS/1.5.0.10-0.1.el4.centos Firefox/1.5.0.10" 661 1822&lt;/P&gt;

&lt;P&gt;177.23.21.50 - - [24/Jul/2014:03:42:00] "GET /flower_store/category.screen?category_id=FLOWERSHTTP/1.1" 200 10591 "&lt;A href="http://mystore.splunk.com/flower_store/main%5C%5C.screen&amp;amp;JSESSIONID=SD2SL2FF7ADFF5" target="_blank"&gt;http://mystore.splunk.com/flower_store/main\\.screen&amp;amp;JSESSIONID=SD2SL2FF7ADFF5&lt;/A&gt;" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 CentOS/1.5.0.10-0.1.el4.centos Firefox/1.5.0.10" 2035 1226&lt;/P&gt;

&lt;P&gt;Configuration:&lt;BR /&gt;
&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/willwork.log]&lt;BR /&gt;
sourcetype = access_common&lt;BR /&gt;
index=heavy&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;outputs.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = my_search_peers&lt;BR /&gt;
forwardedindex.filter.disable = true&lt;BR /&gt;
indexAndForward = false&lt;/P&gt;

&lt;P&gt;[tcpout:my_search_peers]&lt;BR /&gt;
server=indexerip:9997&lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/willwork.log]&lt;BR /&gt;
sourcetype = access_common&lt;BR /&gt;
index=heavy&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[access-combine]&lt;BR /&gt;
TRANSFORMS-routing=accessrouting&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[accessrouting]&lt;BR /&gt;
REGEX=FLOWERS&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=my_search_peers&lt;/P&gt;

&lt;P&gt;data is getting indexer but GIFTS even is also getting indexed&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DATA-filtering-using-Heavy-forwarders/m-p/313374#M58733</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2020-09-29T17:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: DATA filtering using Heavy forwarders</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DATA-filtering-using-Heavy-forwarders/m-p/313375#M58734</link>
      <description>&lt;P&gt;You will want to look at the documentation here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Essentially you will want to route the unwanted data to the nullqueue.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 14:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DATA-filtering-using-Heavy-forwarders/m-p/313375#M58734</guid>
      <dc:creator>jcrabb_splunk</dc:creator>
      <dc:date>2017-11-28T14:20:29Z</dc:date>
    </item>
  </channel>
</rss>

