<?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 forward all events to a single index, but filter out all splunkd sourcetype events that contain &amp;quot;INFO&amp;quot;? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173783#M34969</link>
    <description>&lt;P&gt;REGEX = "INFO" is exactly match "INFO" with quotes. So, if your event doesn't have quotes around INFO, then use REGEX = INFO  &lt;/P&gt;

&lt;P&gt;Also, you have user another transforms to forwarder the remaining event. Please the configurations I have explained in the answer.&lt;/P&gt;

&lt;P&gt;let me know it works.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jan 2015 18:32:37 GMT</pubDate>
    <dc:creator>jayannah</dc:creator>
    <dc:date>2015-01-06T18:32:37Z</dc:date>
    <item>
      <title>How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173779#M34965</link>
      <description>&lt;P&gt;We are currently using props.conf and transforms.conf to combine all non-internal ingest into a single index on our heavy forwarder (coming from 100s of universal forwarders). &lt;/P&gt;

&lt;P&gt;We are doing so with the following config: &lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[default]&lt;BR /&gt;
 TRANSFORMS-index = setdefaultindex&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
 [setdefaultindex]&lt;BR /&gt;
 REGEX = .&lt;BR /&gt;
 DEST_KEY = _MetaData:Index&lt;BR /&gt;
 FORMAT = customindexname&lt;/P&gt;

&lt;P&gt;All was working well until we decided to start filtering out all splunkd sourcetype events that contain INFO. It seems they are forwarded on regardless of the filter we put in place due to the config above. Is there a way around this?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 18:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173779#M34965</guid>
      <dc:creator>mwilson788</dc:creator>
      <dc:date>2015-01-06T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173780#M34966</link>
      <description>&lt;P&gt;Hi, since you only provided the example for the default index, this is hard to solve. &lt;BR /&gt;
Take a look at the docs about routing and filtering, which contains an example on how to filter events and send them into the darkness of digital universe or the null queue &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 18:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173780#M34966</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-01-06T18:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173781#M34967</link>
      <description>&lt;P&gt;Thank you for your response. Actually, the document you reference is what I've been using to the letter.&lt;/P&gt;

&lt;P&gt;The following was added to props.conf for filtering:&lt;BR /&gt;
[splunkd]&lt;BR /&gt;
TRANSFORMS-null = setnull&lt;/P&gt;

&lt;P&gt;And to transforms.conf:&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = \"INFO\"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;According to the doc, this should work but, does nothing. Am I overlooking something simple here?&lt;/P&gt;

&lt;P&gt;As a side note, I even went so far as to set priority on the stanzas as a test. No luck there either.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 18:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173781#M34967</guid>
      <dc:creator>mwilson788</dc:creator>
      <dc:date>2015-01-06T18:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173782#M34968</link>
      <description>&lt;P&gt;I shall described 2 solutions for your problem-1. However, I do prefer option-1 below.&lt;/P&gt;

&lt;P&gt;Option-1:  If you don't specify index name in the inputs.conf, then all the events goto the default index. By default, the default index is 'main', but you can configure "customindex" as default index so that all events which arrives without index name in the metadata will go into the "customindex" or default index whatever you configure. Use below below props &amp;amp; transforms just to filter out (drop) INFO events.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[default]&lt;BR /&gt;
TRANSFORMS-index =  drop_info_events, send_all_events&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[drop_info_events]&lt;BR /&gt;
REGEX = INFO&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[send_all_events]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;option-2:  Use below configure where the customer index name is mentioned in the configuration files.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[default]&lt;BR /&gt;
TRANSFORMS-index = setdefaultindex, drop_info_events, send_all_events&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setdefaultindex]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = customindexname&lt;/P&gt;

&lt;P&gt;[drop_info_events]&lt;BR /&gt;
REGEX = INFO&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[send_all_events]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173782#M34968</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2020-09-28T18:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173783#M34969</link>
      <description>&lt;P&gt;REGEX = "INFO" is exactly match "INFO" with quotes. So, if your event doesn't have quotes around INFO, then use REGEX = INFO  &lt;/P&gt;

&lt;P&gt;Also, you have user another transforms to forwarder the remaining event. Please the configurations I have explained in the answer.&lt;/P&gt;

&lt;P&gt;let me know it works.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 18:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173783#M34969</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2015-01-06T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173784#M34970</link>
      <description>&lt;P&gt;I really thought this might work but alas, the events still poor in. It's like the filter is being ignored completely...&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 18:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173784#M34970</guid>
      <dc:creator>mwilson788</dc:creator>
      <dc:date>2015-01-06T18:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173785#M34971</link>
      <description>&lt;P&gt;I should say Option 2 is the one I tried. I'm afraid I'm unable to change the inputs.conf file on the UFs as mentioned in Option 1 (I agree this would be ideal).&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 18:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173785#M34971</guid>
      <dc:creator>mwilson788</dc:creator>
      <dc:date>2015-01-06T18:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173786#M34972</link>
      <description>&lt;P&gt;Did you restart your Heavy forwarder after putting these changes?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 19:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173786#M34972</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2015-01-06T19:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173787#M34973</link>
      <description>&lt;P&gt;Of course. Still tinkering. I appreciate the effort. If you think of anything at all, it would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 19:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173787#M34973</guid>
      <dc:creator>mwilson788</dc:creator>
      <dc:date>2015-01-06T19:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173788#M34974</link>
      <description>&lt;P&gt;Did you remove the double quotes in the REGEX = "INFO" line  in props.conf??&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 19:29:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173788#M34974</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2015-01-06T19:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How  to forward all events to a single index, but filter out all splunkd sourcetype events that contain "INFO"?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173789#M34975</link>
      <description>&lt;P&gt;I did actually. I just got this to work with a bit of tweaking.&lt;/P&gt;

&lt;P&gt;Answer here for others who may have this issue:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[default]&lt;BR /&gt;
TRANSFORMS-index = setdefaultindex, setnull&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setdefaultindex]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = indexname&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = INFO&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;This was very close to your solution so I give you all the credit jayannah! Thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 19:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-all-events-to-a-single-index-but-filter-out-all/m-p/173789#M34975</guid>
      <dc:creator>mwilson788</dc:creator>
      <dc:date>2015-01-06T19:32:17Z</dc:date>
    </item>
  </channel>
</rss>

