<?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: Why are my logs sent to the default index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352375#M64592</link>
    <description>&lt;P&gt;Hi Mystica856,&lt;BR /&gt;
I don't like to do this for more reasons:&lt;BR /&gt;
at first I prefer to set destination index in each stanza to have more control on each input of my deployment and don't overload Indexer of jobs that usually forwarders do.&lt;BR /&gt;
I usually put my inputs.conf in dedicated apps (called Techical Add-Ons or TAs) that I centrally manage using a Deployment Server (dedicated when I have many forwarders), but for test you can use the same server of Indexer.&lt;BR /&gt;
In addition don't use splunkuniversalforwarder app because it's a default Splunk app, create a custom TA and put your inputs.conf in it.&lt;BR /&gt;
At the end the path you described is wrong because in Windows you  have to use backslash instead of slash.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Sun, 06 Aug 2017 08:36:10 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-08-06T08:36:10Z</dc:date>
    <item>
      <title>Why are my logs sent to the default index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352371#M64588</link>
      <description>&lt;P&gt;Greetings all, &lt;/P&gt;

&lt;P&gt;I am new to Splunk and trying to know my way around it. I created a home lab environment with the following details: &lt;BR /&gt;
* 1 search head, 1 indexer, and 1 Heavy forwarder ( All Linux). &lt;BR /&gt;
* 1 Universal forwarder ( my desktop). &lt;/P&gt;

&lt;P&gt;Right now, my windows logs are being sent from the Universal Forwarder to Heavy forwarder on TCP port 9998 (random port #). Then, the Heavy Forwarder receives on 9998 and sends on to the indexer on 9997. I can search from the search head and receive all data &lt;EM&gt;however they all go to index=main.&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;I tried the following: &lt;BR /&gt;
* modify inputs.conf in Heavy forwarder with the following: &lt;BR /&gt;
[tcp://mydesktopIP:9998]&lt;/P&gt;

&lt;H1&gt;index = desktop&lt;/H1&gt;

&lt;UL&gt;
&lt;LI&gt;I also tried to modify the inputs.conf file in the launcher app: 
[splunktcp://9998]
index = desktop 
==== &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;None of the options above worked. Also kindly note that I ensured that the indexes.conf file in my indexer has the "desktop" index information. &lt;/P&gt;

&lt;P&gt;Thanks in advance. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 15:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352371#M64588</guid>
      <dc:creator>Mystica856</dc:creator>
      <dc:date>2017-08-05T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my logs sent to the default index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352372#M64589</link>
      <description>&lt;P&gt;Splunk version 6.6.0 I forgot to add it to the question. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 15:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352372#M64589</guid>
      <dc:creator>Mystica856</dc:creator>
      <dc:date>2017-08-05T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my logs sent to the default index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352373#M64590</link>
      <description>&lt;P&gt;Hi Mystica856,&lt;BR /&gt;
destination index must be set in each stanza of each inputs.conf file of Universal Forwarders not of Heavy Forwarder or Indexer.&lt;BR /&gt;
On heavy Forwarder, destination index must be set only for local logs, nof from Universal Forwarders.&lt;/P&gt;

&lt;P&gt;It's also possible to change destination index on Indexers (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.2/Data/Advancedsourcetypeoverrides"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.2/Data/Advancedsourcetypeoverrides&lt;/A&gt; ), in other words:&lt;BR /&gt;
 in &lt;STRONG&gt;props.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [mysourcetype]
 TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [overrideindex]
 DEST_KEY =_MetaData:Index
 REGEX = .
 FORMAT = new_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 16:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352373#M64590</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-05T16:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my logs sent to the default index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352374#M64591</link>
      <description>&lt;P&gt;That did fix it. But what I did is I went to each source/stanza in my "D:/programfiles/splunkuniversalforwarder/etc/apps/splunkuniversalforwarder/local/inputs.conf" and added index=desktop to each. My question is, is there a way to do it on a global level. Meaning, can I tell the universal forwarder that the logs sent to port 9998 should go to index=desktop without editing each stanza? &lt;/P&gt;

&lt;P&gt;Thanks for the solution. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 18:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352374#M64591</guid>
      <dc:creator>Mystica856</dc:creator>
      <dc:date>2017-08-05T18:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my logs sent to the default index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352375#M64592</link>
      <description>&lt;P&gt;Hi Mystica856,&lt;BR /&gt;
I don't like to do this for more reasons:&lt;BR /&gt;
at first I prefer to set destination index in each stanza to have more control on each input of my deployment and don't overload Indexer of jobs that usually forwarders do.&lt;BR /&gt;
I usually put my inputs.conf in dedicated apps (called Techical Add-Ons or TAs) that I centrally manage using a Deployment Server (dedicated when I have many forwarders), but for test you can use the same server of Indexer.&lt;BR /&gt;
In addition don't use splunkuniversalforwarder app because it's a default Splunk app, create a custom TA and put your inputs.conf in it.&lt;BR /&gt;
At the end the path you described is wrong because in Windows you  have to use backslash instead of slash.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 08:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-my-logs-sent-to-the-default-index/m-p/352375#M64592</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-06T08:36:10Z</dc:date>
    </item>
  </channel>
</rss>

