<?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 How do I route data based on the Index field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-data-based-on-the-Index-field/m-p/271023#M52020</link>
    <description>&lt;P&gt;Assuming I have a forwarder with inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/notcritical]
index=datacritical

[monitor:///var/log/critical]
index=datanoncritical
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I route the events from the two files into two different Splunk Indexers based purely on the value of Indexer field?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 10:57:43 GMT</pubDate>
    <dc:creator>mzorzi</dc:creator>
    <dc:date>2016-12-12T10:57:43Z</dc:date>
    <item>
      <title>How do I route data based on the Index field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-data-based-on-the-Index-field/m-p/271023#M52020</link>
      <description>&lt;P&gt;Assuming I have a forwarder with inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/notcritical]
index=datacritical

[monitor:///var/log/critical]
index=datanoncritical
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I route the events from the two files into two different Splunk Indexers based purely on the value of Indexer field?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 10:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-data-based-on-the-Index-field/m-p/271023#M52020</guid>
      <dc:creator>mzorzi</dc:creator>
      <dc:date>2016-12-12T10:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I route data based on the Index field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-data-based-on-the-Index-field/m-p/271024#M52021</link>
      <description>&lt;P&gt;You should be able to forward based on value in the index field with this transforms.conf.&lt;/P&gt;

&lt;P&gt;[send_to_critical]&lt;BR /&gt;
SOURCE_KEY = _MetaData:Index&lt;BR /&gt;
REGEX = datacritical&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
FORMAT = critical&lt;/P&gt;

&lt;P&gt;[send_to_noncritical]&lt;BR /&gt;
SOURCE_KEY = _MetaData:Index&lt;BR /&gt;
REGEX = datanoncritical&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
FORMAT = noncritical&lt;/P&gt;

&lt;P&gt;You the need to create a props.conf and make sure these two rules are applied to each event. You will then also need an outputs.conf with the two different tcpout groups, critical and noncritical.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-data-based-on-the-Index-field/m-p/271024#M52021</guid>
      <dc:creator>mzorzi</dc:creator>
      <dc:date>2020-09-29T12:03:52Z</dc:date>
    </item>
  </channel>
</rss>

