<?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: need to route data to nullqueue based on index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380772#M169704</link>
    <description>&lt;P&gt;For sourcetype:  though they have the common sourcetype, PROD index is also using the same sourcetype. Hence, dropping the data using soucetype will drop the prod data with matching pattern. Hence this is ruled out. &lt;/P&gt;

&lt;P&gt;For host: the combination are too many and it is going very complex. &lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 22:45:13 GMT</pubDate>
    <dc:creator>purnavenkatesh</dc:creator>
    <dc:date>2018-05-02T22:45:13Z</dc:date>
    <item>
      <title>need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380768#M169700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to route the index data to null-queue based on the strings from the events. For example, all the events that contain  string pattern "Error" from all the QA* indexes should to routed to nullqueue. &lt;/P&gt;

&lt;P&gt;Doing it with host and sourcetype is very complex. Can someone suggest me with solution?&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 21:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380768#M169700</guid>
      <dc:creator>purnavenkatesh</dc:creator>
      <dc:date>2018-05-02T21:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380769#M169701</link>
      <description>&lt;P&gt;Just checking - you want to drop certain events that are supposed to go to a certain index (or some indexes), and also contain a certain string?&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 21:58:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380769#M169701</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-02T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380770#M169702</link>
      <description>&lt;P&gt;yes, to be more clear.&lt;/P&gt;

&lt;P&gt;I want to drop all the events with string ERROR in it from set of indexes whose starting string is QA&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 22:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380770#M169702</guid>
      <dc:creator>purnavenkatesh</dc:creator>
      <dc:date>2018-05-02T22:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380771#M169703</link>
      <description>&lt;P&gt;I fear that's not possible at index time, because you can only filter on either the event text OR the index name. It would be much easier if those events have a common set of source, sourcetype or host, then filtering on the event text would be easy.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 22:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380771#M169703</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-02T22:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380772#M169704</link>
      <description>&lt;P&gt;For sourcetype:  though they have the common sourcetype, PROD index is also using the same sourcetype. Hence, dropping the data using soucetype will drop the prod data with matching pattern. Hence this is ruled out. &lt;/P&gt;

&lt;P&gt;For host: the combination are too many and it is going very complex. &lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 22:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380772#M169704</guid>
      <dc:creator>purnavenkatesh</dc:creator>
      <dc:date>2018-05-02T22:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380773#M169705</link>
      <description>&lt;P&gt;Sorry, I don't have any good ideas on this that don't sound like really dirty hacks. I'd try to somehow get this organized with hosts and sourcetypes, but I can see how this can be difficult on it's own.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 00:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380773#M169705</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-03T00:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380774#M169706</link>
      <description>&lt;P&gt;Hi @purnavenkatesh,&lt;/P&gt;

&lt;P&gt;Basically this &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;splunk doc&lt;/A&gt; answers your questions.&lt;/P&gt;

&lt;P&gt;You'll be matching events based on source, sourcetype, host or index in your props.conf and running a transform on that event to change it's destination index to nullQueue.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 01:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380774#M169706</guid>
      <dc:creator>kmugglet</dc:creator>
      <dc:date>2018-05-03T01:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380775#M169707</link>
      <description>&lt;P&gt;little correction here, &lt;CODE&gt;props.conf&lt;/CODE&gt; stanzas cannot be applied to indexes - see the docs on &lt;CODE&gt;props.conf&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;spec&amp;gt;]
* This stanza enables properties for a given &amp;lt;spec&amp;gt;.

&amp;lt;spec&amp;gt; can be:
1. &amp;lt;sourcetype&amp;gt;, the source type of an event.
2. host::&amp;lt;host&amp;gt;, where &amp;lt;host&amp;gt; is the host, or host-matching pattern, for an event.
3. source::&amp;lt;source&amp;gt;, where &amp;lt;source&amp;gt; is the source, or source-matching pattern, for an event.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 May 2018 02:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380775#M169707</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-03T02:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380776#M169708</link>
      <description>&lt;P&gt;I tried the props stanza with index and it didn't work. Looking for other approach to achieve this. &lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 02:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380776#M169708</guid>
      <dc:creator>purnavenkatesh</dc:creator>
      <dc:date>2018-05-03T02:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380777#M169709</link>
      <description>&lt;P&gt;Wouldn't it be possible to follow those routing and filtering instructions and write a transforms stanza that uses &lt;CODE&gt;SOURCE_KEY = _MetaData:Index&lt;/CODE&gt;, to target events for a certain index?&lt;/P&gt;

&lt;P&gt;So write 1 transforms that assigns everything that matches ERROR to the nullqueue, and the overrule that for events that have Index=PROD? Or something along those lines?&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 07:19:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380777#M169709</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-03T07:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380778#M169710</link>
      <description>&lt;P&gt;I thought about something similar.&lt;BR /&gt;
Possible, but really dirty hack:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;For all events, append the content of &lt;CODE&gt;index&lt;/CODE&gt; to _raw, using a very creative separator. E.g. an event &lt;CODE&gt;yourtext&lt;/CODE&gt; becomes &lt;CODE&gt;yourtext#&amp;amp;#&amp;amp;#&amp;amp;QA_main&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;For all events, match on a regex like &lt;CODE&gt;.*ERROR.*#&amp;amp;#&amp;amp;#&amp;amp;QA.*&lt;/CODE&gt; and route all events to nullQueue&lt;/LI&gt;
&lt;LI&gt;For all events, remove the append separator and index again.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;That should work, because you could match ERROR and index in the same step, however it would require three steps to be performed on ALL events, which might get ressource heavy and also is dirty like hell. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380778#M169710</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2020-09-29T19:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380779#M169711</link>
      <description>&lt;P&gt;doing this using host stanza.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 22:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380779#M169711</guid>
      <dc:creator>purnavenkatesh</dc:creator>
      <dc:date>2018-05-08T22:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: need to route data to nullqueue based on index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380780#M169712</link>
      <description>&lt;P&gt;Can we use a wildcard something like below?&lt;/P&gt;

&lt;P&gt;[source::*]&lt;BR /&gt;
[host::&lt;EM&gt;]&lt;BR /&gt;
[&lt;/EM&gt;]&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 04:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-route-data-to-nullqueue-based-on-index/m-p/380780#M169712</guid>
      <dc:creator>arunsunny</dc:creator>
      <dc:date>2019-09-26T04:29:33Z</dc:date>
    </item>
  </channel>
</rss>

