<?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 do I route events into different indexes based on event type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264829#M50845</link>
    <description>&lt;P&gt;this is feasible and i completely understand it &lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2016 06:48:13 GMT</pubDate>
    <dc:creator>nawneel</dc:creator>
    <dc:date>2016-02-04T06:48:13Z</dc:date>
    <item>
      <title>How do I route events into different indexes based on event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264826#M50842</link>
      <description>&lt;P&gt;I have an indexing scenario and below are the points to be considered. Imagine I have log file with DEBUG, INFO, and ERROR events .&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Need to filter out events with INFO using nullQueue (feasible) &lt;/LI&gt;
&lt;LI&gt;DEBUG and ERROR events need to go to DEBUGINDEX and ERRORINDEX respectively (is this feasible?)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is the second scenario feasible, and if so, how? &lt;/P&gt;

&lt;P&gt;I have my data flowing from a universal forwarder to an indexer via heavy forwarder. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 13:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264826#M50842</guid>
      <dc:creator>nawneel</dc:creator>
      <dc:date>2016-02-03T13:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I route events into different indexes based on event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264827#M50843</link>
      <description>&lt;P&gt;For Question 1. You can use the Discard Specific events and keep the rest configuration in the Admin manual:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.1/Admin/Routeandfilterdata#Filter_event_data_and_send_to_queues"&gt;http://docs.splunk.com/Documentation/Splunk/4.1/Admin/Routeandfilterdata#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264827#M50843</guid>
      <dc:creator>dgrubb_splunk</dc:creator>
      <dc:date>2016-02-03T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I route events into different indexes based on event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264828#M50844</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Question 2&lt;/STRONG&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;STRONG&gt;Universal Forwarder&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://path to your file]
sourcetype = mysourcetype
other props ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Indexer or Heavy Forwarder&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
TRANSFORMS-newindex = index2debug, index2error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[index2debug]
DEST_KEY =_MetaData:Index
REGEX = something that matches DEBUG lines
FORMAT = debugindex

 [index2error]
DEST_KEY =_MetaData:Index
REGEX = something that matches ERROR lines
FORMAT = errorindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Keep in mind you can also override your index name dynamically if you capture the final value in your REGEX and then you use something like "index::$1" in your FORMAT line.&lt;/P&gt;

&lt;P&gt;Some official documentation here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264828#M50844</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-03T14:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I route events into different indexes based on event type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264829#M50845</link>
      <description>&lt;P&gt;this is feasible and i completely understand it &lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 06:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-events-into-different-indexes-based-on-event-type/m-p/264829#M50845</guid>
      <dc:creator>nawneel</dc:creator>
      <dc:date>2016-02-04T06:48:13Z</dc:date>
    </item>
  </channel>
</rss>

