<?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 Change the INDEX for the data received from Splunk Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17291#M2177</link>
    <description>&lt;P&gt;I have &lt;STRONG&gt;Splunk (4.1.2)&lt;/STRONG&gt; with &lt;STRONG&gt;Search / Indexer running on Redhat Linux&lt;/STRONG&gt;.
And I installed &lt;STRONG&gt;Splunk (4.1.2) as forwarder on a windows server&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;From the windows Splunk forwarder I am collecting Windows Remote Logs using WMI and forwarding them to my Splunk Instance running on Linux.&lt;/P&gt;

&lt;P&gt;By default, all the WMI data collected is going to "&lt;STRONG&gt;main&lt;/STRONG&gt;" index. I created an index called windows on the main splunk instance on Linux. I want all the &lt;STRONG&gt;data coming from the windows forwarder&lt;/STRONG&gt; to go to index "&lt;STRONG&gt;windows&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;Can someone help me in configuring the same?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2010 21:35:05 GMT</pubDate>
    <dc:creator>klkumar10</dc:creator>
    <dc:date>2010-07-13T21:35:05Z</dc:date>
    <item>
      <title>Change the INDEX for the data received from Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17291#M2177</link>
      <description>&lt;P&gt;I have &lt;STRONG&gt;Splunk (4.1.2)&lt;/STRONG&gt; with &lt;STRONG&gt;Search / Indexer running on Redhat Linux&lt;/STRONG&gt;.
And I installed &lt;STRONG&gt;Splunk (4.1.2) as forwarder on a windows server&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;From the windows Splunk forwarder I am collecting Windows Remote Logs using WMI and forwarding them to my Splunk Instance running on Linux.&lt;/P&gt;

&lt;P&gt;By default, all the WMI data collected is going to "&lt;STRONG&gt;main&lt;/STRONG&gt;" index. I created an index called windows on the main splunk instance on Linux. I want all the &lt;STRONG&gt;data coming from the windows forwarder&lt;/STRONG&gt; to go to index "&lt;STRONG&gt;windows&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;Can someone help me in configuring the same?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2010 21:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17291#M2177</guid>
      <dc:creator>klkumar10</dc:creator>
      <dc:date>2010-07-13T21:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change the INDEX for the data received from Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17292#M2178</link>
      <description>&lt;P&gt;When the data leaves the forwarder it can be labeled with the other index you want to send to.  There are two steps that need to occur:&lt;/P&gt;

&lt;P&gt;1 - Create the index on the Splunk indexer.  You can do this via the GUI and you will need to restart Splunk for the index to be created.&lt;/P&gt;

&lt;P&gt;2 - Modify the WMI input settings on the Forwarder to use the windows index.  To do this, find the input setting for your WMI input (likely in $SPLUNK_HOME/etc/apps/windows/default) and set the index value to windows.  Typically, you can just edit your inputs.conf file and add a "index=windows" line under your WMI input:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.py]
index=windows
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jul 2010 22:54:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17292#M2178</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-07-13T22:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change the INDEX for the data received from Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17293#M2179</link>
      <description>&lt;P&gt;Thanks for the solution.&lt;/P&gt;

&lt;P&gt;But instead of adding the script option, I made the default index to windows in inputs.conf&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/apps/windows/local/inputs.conf&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
index = windows&lt;/P&gt;

&lt;P&gt;And then restarted splunk, it works.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2010 14:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17293#M2179</guid>
      <dc:creator>klkumar10</dc:creator>
      <dc:date>2010-07-14T14:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change the INDEX for the data received from Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17294#M2180</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;is it possible to use different indexes on the main splunk server? For example I have 2 fileserver in our windows environment and many other windows server. The event data of the fileserver should be stored at "index_fileserver" and the other event data of the other windows server should be stored at "index_windows". How can I configure this on the windows forwarder?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2010 01:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17294#M2180</guid>
      <dc:creator>krusty</dc:creator>
      <dc:date>2010-12-16T01:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change the INDEX for the data received from Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17295#M2181</link>
      <description>&lt;P&gt;Hi, Question for Simeon. &lt;BR /&gt;
I have tried to configure the script thing and it doesnt work. I might be missing something or doing something wrong. &lt;BR /&gt;
Also in our forwarder the path/script names are slightly different:&lt;/P&gt;

&lt;P&gt;C:\Program Files\SplunkUniversalForwarder\etc\apps*&lt;EM&gt;Splunk_TA_windows&lt;/EM&gt;*\default\inputs.conf&lt;/P&gt;

&lt;P&gt;C:\Program Files\SplunkUniversalForwarder\bin\scripts*&lt;EM&gt;splunk-wmi.path&lt;/EM&gt;*&lt;/P&gt;

&lt;P&gt;splunk-wmi.path is actually not a python script but a file which content is just the text : &lt;BR /&gt;
$SPLUNK_HOME\bin\splunk-wmi.exe&lt;/P&gt;

&lt;P&gt;Maybe we need to modify a different inputs.conf ? this type of file is everywhere inside the $splunkhome&lt;BR /&gt;
The exact modification we need to do is to write just "RIGHT" under the label ###### Scripted Input (See also wmi.conf):&lt;BR /&gt;
[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.py]&lt;BR /&gt;
index=windows&lt;/P&gt;

&lt;P&gt;Is this correct ? including all thebrackets &amp;lt;a href="... etc... ? Im totally lost &lt;/P&gt;

&lt;P&gt;...So the win forwarded logs arrive to the main index which is something that we dont want. &lt;BR /&gt;
On the other hand we dont want to change the main index to be our windows index. We would like to keep everything on its proper place.&lt;BR /&gt;
Any hints ?"&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17295#M2181</guid>
      <dc:creator>gopala</dc:creator>
      <dc:date>2020-09-29T08:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change the INDEX for the data received from Splunk Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17296#M2182</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Indexer/Setupmultipleindexes"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Indexer/Setupmultipleindexes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 16:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-the-INDEX-for-the-data-received-from-Splunk-Forwarder/m-p/17296#M2182</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2015-12-09T16:10:44Z</dc:date>
    </item>
  </channel>
</rss>

