<?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 data to different indexes from one single input.conf forwarder to one single indexer? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11366#M574</link>
    <description>&lt;P&gt;Great! Now i fully understand. That helps a lot! Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2010 21:17:06 GMT</pubDate>
    <dc:creator>tpaulsen</dc:creator>
    <dc:date>2010-04-22T21:17:06Z</dc:date>
    <item>
      <title>How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11360#M568</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;i want to collect logs from one forwarder (Splunk 4.0.10) and forward the data to different indexes on one indexer. How do i achieve this?&lt;/P&gt;

&lt;P&gt;Do i have to define it in the inputs.conf of the forwarder?&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = teststufen-int
[monitor:///var/opt/noa/int04/current/process/log/process1.log]
[monitor:///var/opt/noa/int04/current/process/log/process2.log]

index = teststufen-sirt
[monitor:///var/opt/noa/int06/current/process/log/process1.log]
[monitor:///var/opt/noa/int06/current/process/log/process2.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will this work?&lt;/P&gt;

&lt;P&gt;enter code here&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 23:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11360#M568</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2010-04-13T23:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11361#M569</link>
      <description>&lt;P&gt;I believe that should work, I would try something like - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
index=os


[monitor:///var/log]
index=os2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Apr 2010 23:22:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11361#M569</guid>
      <dc:creator>jfraiberg</dc:creator>
      <dc:date>2010-04-13T23:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11362#M570</link>
      <description>&lt;P&gt;Ok, thank you. so the other way round.&lt;/P&gt;

&lt;P&gt;Do i have to put the index declaration after every [monitor:///...] entry?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 23:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11362#M570</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2010-04-13T23:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11363#M571</link>
      <description>&lt;P&gt;you may want to use the "code" formatting button (the "101010" button) in the editing window to get the linebreaks right here.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 00:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11363#M571</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-14T00:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11364#M572</link>
      <description>&lt;P&gt;Put an index parameter into each monitor stanza as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/blah]
index = blah
[monitor:///var/log/fu]
index = helloworld
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you do not define an index parameter the data will go into the default index. Check the manual on inputs here for more information: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Data/Editinputs.conf" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Data/Editinputs.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 20:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11364#M572</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-04-15T20:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11365#M573</link>
      <description>&lt;P&gt;ftk has your answer, but for detail, the 'ini file format' concept is basically:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[name_of_stanza1]
setting1=value1
setting2=value2

[name_of_stanza2]
setting1=value3
setting2=value4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk extends this by supporting the idea of defaults across all stanzas, eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
setting1=default

[name_of_stanza1]

[name_of_stanza2]
setting1=override
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here, stanza1 gets the default, while stanza2 chooses another value.  We also support writing defaults without an explicit stanza.  This means the same thing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;setting1=default
[name_of_stanza1]
[name_of_stanza2]
setting1=override
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So in your proposal, you have a default index specified:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = teststufen-int
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then in your stanza for process2.log, you override the index to
teststufen-sirt.&lt;/P&gt;

&lt;P&gt;See &lt;A href="http://www.splunk.com/base/Documentation/4.1/Admin/Aboutconfigurationfiles" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1/Admin/Aboutconfigurationfiles&lt;/A&gt; for more information.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 23:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11365#M573</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-04-21T23:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11366#M574</link>
      <description>&lt;P&gt;Great! Now i fully understand. That helps a lot! Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2010 21:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11366#M574</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2010-04-22T21:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward data to different indexes from one single input.conf forwarder to one single indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11367#M575</link>
      <description>&lt;P&gt;Yes, that´s what i thought. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2010 21:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-data-to-different-indexes-from-one-single-input/m-p/11367#M575</guid>
      <dc:creator>tpaulsen</dc:creator>
      <dc:date>2010-04-22T21:17:30Z</dc:date>
    </item>
  </channel>
</rss>

