<?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 some data coming into Splunk via HTTP Event Collector be filtered to nullqueue based on sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-some-data-coming-into-Splunk-via-HTTP-Event-Collector-be/m-p/245633#M47459</link>
    <description>&lt;P&gt;Hi @simpkins1958 ,&lt;/P&gt;

&lt;P&gt;Yes it's possible. HEC is another input type and transformations can be applied to that as well. here is an example&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[nullq]
TRANSFORMS-set= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX=.
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my HEC conf from inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[http://Test]
disabled = 0
index = main
token = myrandomtoken
sourcetype = nullq
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Jul 2016 09:57:35 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2016-07-07T09:57:35Z</dc:date>
    <item>
      <title>Can some data coming into Splunk via HTTP Event Collector be filtered to nullqueue based on sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-some-data-coming-into-Splunk-via-HTTP-Event-Collector-be/m-p/245631#M47457</link>
      <description>&lt;P&gt;When data is coming into Splunk through the HTTP Event Collector, can some of it be routed to the nullqueue based on sourcetype to avoid indexing?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 21:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-some-data-coming-into-Splunk-via-HTTP-Event-Collector-be/m-p/245631#M47457</guid>
      <dc:creator>simpkins1958</dc:creator>
      <dc:date>2016-07-06T21:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can some data coming into Splunk via HTTP Event Collector be filtered to nullqueue based on sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-some-data-coming-into-Splunk-via-HTTP-Event-Collector-be/m-p/245632#M47458</link>
      <description>&lt;P&gt;I haven't done anything with http event collector myself, but I would think you could do that.  I could be wrong, but it's worth trying anyway, right?  I think the event collector has to be installed on a Splunk Enterprise instance, so that's probably where you would need to configure the props/transforms to do the routing.&lt;/P&gt;

&lt;P&gt;If you need help trying to set that up, feel free to give us some more details like the sourcetype and sample events you'd like to discard.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 01:43:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-some-data-coming-into-Splunk-via-HTTP-Event-Collector-be/m-p/245632#M47458</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-07T01:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can some data coming into Splunk via HTTP Event Collector be filtered to nullqueue based on sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-some-data-coming-into-Splunk-via-HTTP-Event-Collector-be/m-p/245633#M47459</link>
      <description>&lt;P&gt;Hi @simpkins1958 ,&lt;/P&gt;

&lt;P&gt;Yes it's possible. HEC is another input type and transformations can be applied to that as well. here is an example&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[nullq]
TRANSFORMS-set= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX=.
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my HEC conf from inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[http://Test]
disabled = 0
index = main
token = myrandomtoken
sourcetype = nullq
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2016 09:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-some-data-coming-into-Splunk-via-HTTP-Event-Collector-be/m-p/245633#M47459</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2016-07-07T09:57:35Z</dc:date>
    </item>
  </channel>
</rss>

