<?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 I &amp;quot;/dev/null&amp;quot; a sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-quot-dev-null-quot-a-sourcetype/m-p/34608#M6261</link>
    <description>&lt;P&gt;Yes you can by routing the undesired events to the nullQueue. Check this part of the documentation:
&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Routeandfilterdata#Discard_specific_events_and_keep_the_rest" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Routeandfilterdata#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let's assume you don't want the sourcetype &lt;CODE&gt;my_sourcetype&lt;/CODE&gt;. On your indexer, set up your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then in 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;You can of course tweak the REGEX to not be as greedy and just throw out specific events. But the example as is will discard everything coming in as the &lt;CODE&gt;my_sourcetype&lt;/CODE&gt; sourcetype.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2011 04:39:56 GMT</pubDate>
    <dc:creator>ftk</dc:creator>
    <dc:date>2011-01-28T04:39:56Z</dc:date>
    <item>
      <title>Can I "/dev/null" a sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-quot-dev-null-quot-a-sourcetype/m-p/34607#M6260</link>
      <description>&lt;P&gt;So I need to temporarily free up some indexing license. Rather than tweaking my deployment, I was hoping I could just route a few sourcetypes to /dev/null for a little while. Is there a way I can tell splunk to not index a sourcetype of a list of sourcetypes?&lt;/P&gt;

&lt;P&gt;Thanks
Steve&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2011 03:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-quot-dev-null-quot-a-sourcetype/m-p/34607#M6260</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2011-01-28T03:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I "/dev/null" a sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-quot-dev-null-quot-a-sourcetype/m-p/34608#M6261</link>
      <description>&lt;P&gt;Yes you can by routing the undesired events to the nullQueue. Check this part of the documentation:
&lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Routeandfilterdata#Discard_specific_events_and_keep_the_rest" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Routeandfilterdata#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let's assume you don't want the sourcetype &lt;CODE&gt;my_sourcetype&lt;/CODE&gt;. On your indexer, set up your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then in 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;You can of course tweak the REGEX to not be as greedy and just throw out specific events. But the example as is will discard everything coming in as the &lt;CODE&gt;my_sourcetype&lt;/CODE&gt; sourcetype.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2011 04:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-quot-dev-null-quot-a-sourcetype/m-p/34608#M6261</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-01-28T04:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I "/dev/null" a sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-quot-dev-null-quot-a-sourcetype/m-p/34609#M6262</link>
      <description>&lt;P&gt;Worked like a charm! Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 06:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-quot-dev-null-quot-a-sourcetype/m-p/34609#M6262</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2011-02-01T06:58:40Z</dc:date>
    </item>
  </channel>
</rss>

