<?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: How to exclude a sourcetype from being indexed? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141370#M28964</link>
    <description>&lt;P&gt;Should I do this on the Indexer or forwarder?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2015 19:29:13 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2015-07-29T19:29:13Z</dc:date>
    <item>
      <title>How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141366#M28960</link>
      <description>&lt;P&gt;I have a forwarder on 3 different servers which grabs all the data coming from those servers. There is 1 specific sourcetype and source both called 'WinEventLog:Application' which we do not want indexed.&lt;/P&gt;

&lt;P&gt;Where in the forwarder do I exclude this source/sourcetype from being indexed? &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 14:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141366#M28960</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-07-29T14:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141367#M28961</link>
      <description>&lt;P&gt;Find the inputs.conf file on the forwarder which defines the data input (what data is monitored and where its stored). It could be in &lt;CODE&gt;Splunk_Home/etc/system/local&lt;/CODE&gt; OR &lt;CODE&gt;Splunk_Home/etc/apps/SomeAppName/local&lt;/CODE&gt; OR &lt;CODE&gt;/ Splunk_Home/etc/apps/SomeAppName/default&lt;/CODE&gt;. Once found look for the sourcetype name and disable/remove the data input which is using that sourcetype. Restart the forwarder once done.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 14:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141367#M28961</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-07-29T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141368#M28962</link>
      <description>&lt;P&gt;Yeah I have that pulled open and the sourcetype is already defined as &lt;CODE&gt;sourcetype=ATG_Message_Log&lt;/CODE&gt;.. I see nothing on any of the boxes which show the source or sourcetype as &lt;CODE&gt;WinEventLog:Application&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 14:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141368#M28962</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-07-29T14:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141369#M28963</link>
      <description>&lt;P&gt;The answer by @somesoni2 should work and is the proper way to do it because it stops the forwarders from doing work that is not necessary which this alternate solution does not do.  The solution below will have the forwarders send the data in and then the indexers will trash all events for the undesirable sourcetype:&lt;/P&gt;

&lt;P&gt;In &lt;CODE&gt;props.conf&lt;/CODE&gt; do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Application]
TRANSFORMS-remove_events = remove_events 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In &lt;CODE&gt;transforms.conf&lt;/CODE&gt; do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[remove_events]
REGEX = *
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141369#M28963</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-29T16:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141370#M28964</link>
      <description>&lt;P&gt;Should I do this on the Indexer or forwarder?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 19:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141370#M28964</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-07-29T19:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141371#M28965</link>
      <description>&lt;P&gt;I just looked at the 3 hosts which have the &lt;CODE&gt;WinEventLog:Application&lt;/CODE&gt; and these are being indexed in &lt;CODE&gt;index=main&lt;/CODE&gt; while my legitimate events are being indexed in the index I specified in the inputs.conf file.. So maybe this would explain why I can't find it.. But why is data being indexed if I didn't specify the source or sourcetype in the inputs.conf? &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 19:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141371#M28965</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-07-29T19:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141372#M28966</link>
      <description>&lt;P&gt;On the indexers and then restart Splunk services.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 20:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141372#M28966</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-29T20:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141373#M28967</link>
      <description>&lt;P&gt;Depending on your OS and the package that you download, Splunk is preconfigured to send some things in by default.  Most of the time, this is what people desire so it makes sense.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 20:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141373#M28967</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-29T20:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude a sourcetype from being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141374#M28968</link>
      <description>&lt;P&gt;Thank you. &lt;/P&gt;

&lt;P&gt;However below configuration line errored out.&lt;BR /&gt;
    [remove_events]&lt;BR /&gt;
    REGEX = *&lt;/P&gt;

&lt;P&gt;By modifying as below, it works. &lt;BR /&gt;
    [remove_events]&lt;BR /&gt;
    REGEX = (?s).*&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 03:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-a-sourcetype-from-being-indexed/m-p/141374#M28968</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2018-12-31T03:44:55Z</dc:date>
    </item>
  </channel>
</rss>

