<?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: Rerouting to different index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134973#M27776</link>
    <description>&lt;P&gt;does your custom index exists ?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2015 19:29:52 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2015-06-04T19:29:52Z</dc:date>
    <item>
      <title>Rerouting to different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134970#M27773</link>
      <description>&lt;P&gt;I can't seem to be able to reroute a sourcetype to a different index.&lt;/P&gt;

&lt;P&gt;Here's props.conf:&lt;BR /&gt;
    [MySourceType]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# makes sure it goes to the proper index.
TRANSFORMS-8_AssignToIndex = setindex_MySourceType
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And here is my transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setindex_MySourceType]
SOURCE_KEY = MetaData:Sourcetype
REGEX = (?i)^sourcetype::MySourceType
DEST_KEY = _MetaData:Index
FORMAT = my_custom_i
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I missing?!?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Claudio&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 19:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134970#M27773</guid>
      <dc:creator>cmlombardo</dc:creator>
      <dc:date>2015-06-03T19:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rerouting to different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134971#M27774</link>
      <description>&lt;P&gt;Hi cmlombardo,&lt;/P&gt;

&lt;P&gt;best thing would be to set the correct index at input level in the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; . But you can do this as well later on any Splunk server doing parsing. Maybe your regex does not match ; if you aplly this to one special sourcetype you can use something like this because you want to have anything from this sourcetype in the new index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf:
[MySourceType]
# makes sure it goes to the proper index.
TRANSFORMS-8_AssignToIndex = setindex_MySourceType

transforms.conf
[setindex_MySourceType]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = my_custom_i
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As long as this is done at parsing level and the sourcetype matches exactly, you will get any new incoming events in the &lt;CODE&gt;index=my_custom_i&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 20:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134971#M27774</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-03T20:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rerouting to different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134972#M27775</link>
      <description>&lt;P&gt;Mhhh... I tried that already and for some reasons it's still going to the main index.&lt;BR /&gt;
It's odd.&lt;/P&gt;

&lt;P&gt;Hopefully this should not have anything to do with the fact that I am experimenting with the free splunk installation I have before sending it to the production one...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 17:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134972#M27775</guid>
      <dc:creator>cmlombardo</dc:creator>
      <dc:date>2015-06-04T17:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rerouting to different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134973#M27776</link>
      <description>&lt;P&gt;does your custom index exists ?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 19:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134973#M27776</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-04T19:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rerouting to different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134974#M27777</link>
      <description>&lt;P&gt;Yes, and I verified it has the same name (including the case, even though I am not sure it would make a difference).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 19:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134974#M27777</guid>
      <dc:creator>cmlombardo</dc:creator>
      <dc:date>2015-06-04T19:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rerouting to different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134975#M27778</link>
      <description>&lt;P&gt;Oh my bad sorry .... try one of these settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setindex_MySourceType]
REGEX = .
FORMAT = my_custom_i
DEST_KEY = _MetaData:Index
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setindex_MySourceType]
REGEX = .
FORMAT = index::my_custom_i
DEST_KEY = _MetaData:Index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2015 20:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rerouting-to-different-index/m-p/134975#M27778</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-04T20:08:33Z</dc:date>
    </item>
  </channel>
</rss>

