<?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 Different index based on hostname in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Different-index-based-on-hostname/m-p/160502#M32536</link>
    <description>&lt;P&gt;Hi, All.&lt;/P&gt;

&lt;P&gt;I'm trying to send specific hostnames to a different index, but not making a lot of progress.&lt;BR /&gt;
We have 2 forwarders (splunkforwarder), 1 indexer and 1 search head.&lt;/P&gt;

&lt;P&gt;I've put the following configs under &lt;EM&gt;$SPLUNK_HOME/etc/system/local/&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*.mpls.domain.com]
TRANSFORMS-index = mpls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mpls]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = mpls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restarted splunk, but data keeps going to the main index.&lt;BR /&gt;
Any ideas how I can troubleshoot that, please?&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2014 15:54:48 GMT</pubDate>
    <dc:creator>ebastos</dc:creator>
    <dc:date>2014-05-12T15:54:48Z</dc:date>
    <item>
      <title>Different index based on hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-index-based-on-hostname/m-p/160502#M32536</link>
      <description>&lt;P&gt;Hi, All.&lt;/P&gt;

&lt;P&gt;I'm trying to send specific hostnames to a different index, but not making a lot of progress.&lt;BR /&gt;
We have 2 forwarders (splunkforwarder), 1 indexer and 1 search head.&lt;/P&gt;

&lt;P&gt;I've put the following configs under &lt;EM&gt;$SPLUNK_HOME/etc/system/local/&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*.mpls.domain.com]
TRANSFORMS-index = mpls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mpls]
REGEX = .
DEST_KEY = _MetaData:Index
FORMAT = mpls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restarted splunk, but data keeps going to the main index.&lt;BR /&gt;
Any ideas how I can troubleshoot that, please?&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 15:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-index-based-on-hostname/m-p/160502#M32536</guid>
      <dc:creator>ebastos</dc:creator>
      <dc:date>2014-05-12T15:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Different index based on hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-index-based-on-hostname/m-p/160503#M32537</link>
      <description>&lt;P&gt;Your configuration looks correct.  Where is it applied?  It needs to be on the indexer.  I would use btool to make sure the configuration is coming out like expected:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk cmd btool --debug props list "host::*.mpls.domain.com"
splunk cmd bootl --debug transforms list "mpls"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 May 2014 16:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-index-based-on-hostname/m-p/160503#M32537</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2014-05-12T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Different index based on hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-index-based-on-hostname/m-p/160504#M32538</link>
      <description>&lt;P&gt;Good news is that the debug command works.&lt;BR /&gt;
Bad news is that I still don't see why it's not working. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The files are indeed on the indexer.&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/system/local/transforms.conf   [mpls]&lt;BR /&gt;
/opt/splunk/etc/system/local/transforms.conf   DEST_KEY = _MetaData:Index&lt;BR /&gt;
/opt/splunk/etc/system/local/transforms.conf   FORMAT = mpls&lt;BR /&gt;
/opt/splunk/etc/system/local/transforms.conf   REGEX = .&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 16:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-index-based-on-hostname/m-p/160504#M32538</guid>
      <dc:creator>ebastos</dc:creator>
      <dc:date>2014-05-12T16:47:23Z</dc:date>
    </item>
  </channel>
</rss>

