<?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 drop all entries to a specific index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182826#M36630</link>
    <description>&lt;P&gt;As far as I know, the filtering can be done at source, sourcetype or host level, its not possible for index level. I would be interested to see if there really is a way.&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2014 19:19:49 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-05-29T19:19:49Z</dc:date>
    <item>
      <title>How to drop all entries to a specific index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182823#M36627</link>
      <description>&lt;P&gt;We've reached our license limit. So, at the indexer, I want to drop all log entries destined to a specific index. Documentation is clear how to do that on a heavy forwarder, for example, but I haven't found any documentation of how to drop all traffic to a specific index at the indexer. Props.conf looked promising but it doesn't support an index key. In props.conf, I was expecting that I could create a stanza like this:&lt;/P&gt;

&lt;P&gt;[index::development] # This key is not listed in the props.conf.spec&lt;/P&gt;

&lt;P&gt;TRANSFORMS-blackhole = blackhole&lt;/P&gt;

&lt;P&gt;and in transforms.conf:&lt;/P&gt;

&lt;P&gt;[blackhole]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;It just seems there has to be a way, but I haven't been able to discover it.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 17:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182823#M36627</guid>
      <dc:creator>mlindsey</dc:creator>
      <dc:date>2014-05-29T17:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop all entries to a specific index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182824#M36628</link>
      <description>&lt;P&gt;Wouldn't your &lt;CODE&gt;REGEX=.&lt;/CODE&gt; just match single character events for sending to nullQueue?  Maybe try &lt;CODE&gt;REGEX=.*&lt;/CODE&gt; to make it more greedy and match everything.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 17:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182824#M36628</guid>
      <dc:creator>jhupka</dc:creator>
      <dc:date>2014-05-29T17:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop all entries to a specific index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182825#M36629</link>
      <description>&lt;P&gt;The REGEX is really irrelevant in this case because the example is a fantasy not an actual configuration. I just hoped it would be that way. The real issue is routing all traffic destined to one index to the nullQueue.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 18:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182825#M36629</guid>
      <dc:creator>mlindsey</dc:creator>
      <dc:date>2014-05-29T18:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop all entries to a specific index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182826#M36630</link>
      <description>&lt;P&gt;As far as I know, the filtering can be done at source, sourcetype or host level, its not possible for index level. I would be interested to see if there really is a way.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 19:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182826#M36630</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-29T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop all entries to a specific index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182827#M36631</link>
      <description>&lt;P&gt;So I don't really have a quick and dirty answer to shutting off an index that doesn't come with its own caveats.  E.g. if I had to do this I might try something like:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Just manually off the inputs going to that index and deploy it out real quick using DS.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;If you don't care about anything in that index for now, you could just remove its config from your index.conf.  But you'll get warnings when stuff goes to that index, but those events get dropped and I'm pretty sure don't affect license.  Just don't delete the index's directories so when you re-enable the index old data is still there&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 30 May 2014 14:57:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182827#M36631</guid>
      <dc:creator>jhupka</dc:creator>
      <dc:date>2014-05-30T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop all entries to a specific index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182828#M36632</link>
      <description>&lt;P&gt;The following worked just great! Kudos to James Brodsky and Splunk Support.&lt;/P&gt;

&lt;P&gt;&lt;B&gt;In props.conf:&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;# This stanza drops alls events destined for the 'development' index.&lt;BR /&gt;
&lt;BR /&gt;#&lt;BR /&gt;
&lt;BR /&gt;[host::*]&lt;BR /&gt;
&lt;BR /&gt;TRANSFORMS-dropindex = senddevidxtonull&lt;/P&gt;

&lt;P&gt;&lt;B&gt;In transforms.conf:&lt;/B&gt;&lt;/P&gt;

&lt;P&gt;[senddevidxtonull]&lt;BR /&gt;
&lt;BR /&gt;SOURCE_KEY=_MetaData:Index&lt;BR /&gt;
&lt;BR /&gt;REGEX=development&lt;BR /&gt;
&lt;BR /&gt;DEST_KEY=queue&lt;BR /&gt;
&lt;BR /&gt;FORMAT=nullQueue&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:48:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-drop-all-entries-to-a-specific-index/m-p/182828#M36632</guid>
      <dc:creator>mlindsey</dc:creator>
      <dc:date>2020-09-28T16:48:54Z</dc:date>
    </item>
  </channel>
</rss>

