<?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: Default index for all splunkforwarder monitors? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37098#M6861</link>
    <description>&lt;P&gt;on every splunk instance the default destination index is defined in :&lt;BR /&gt;
$SPLUNK_HOME/etc/system/default/inputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
index=default&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;on the indexers, the default index is specified in &lt;BR /&gt;
$SPLUNK_HOME/etc/system/default/indexes.conf&lt;BR /&gt;
 #the global parameter (no stanza, just as first parameters of the file)&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
defaultDatabase = main&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can override it by adding in system/local on the forwarders (or in a deployed app)&lt;BR /&gt;
$SPLUNK_HOME/etc/system/local/inputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
index=monitor&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or on the indexers, change the default index to go to monitor, instead of main.&lt;BR /&gt;
(but it will be the case for every events, not just for the forwarders)&lt;BR /&gt;
add in local/indexes.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
defaultDatabase = monitor&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2012 14:16:29 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2012-04-26T14:16:29Z</dc:date>
    <item>
      <title>Default index for all splunkforwarder monitors?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37097#M6860</link>
      <description>&lt;P&gt;I want all forwarders on a single splunkforwarder box to send data to the same specified index.  I'd like to avoid having to do this in inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor]
...
index=box_index

[monitor]
...
index=box_index

[monitor]
...
index=box_index

...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to set the default index globally on a single box that functioning only as a &lt;STRONG&gt;splunkforwarder&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 13:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37097#M6860</guid>
      <dc:creator>Jordan_Brough</dc:creator>
      <dc:date>2012-04-26T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Default index for all splunkforwarder monitors?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37098#M6861</link>
      <description>&lt;P&gt;on every splunk instance the default destination index is defined in :&lt;BR /&gt;
$SPLUNK_HOME/etc/system/default/inputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
index=default&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;on the indexers, the default index is specified in &lt;BR /&gt;
$SPLUNK_HOME/etc/system/default/indexes.conf&lt;BR /&gt;
 #the global parameter (no stanza, just as first parameters of the file)&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
defaultDatabase = main&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can override it by adding in system/local on the forwarders (or in a deployed app)&lt;BR /&gt;
$SPLUNK_HOME/etc/system/local/inputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
index=monitor&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or on the indexers, change the default index to go to monitor, instead of main.&lt;BR /&gt;
(but it will be the case for every events, not just for the forwarders)&lt;BR /&gt;
add in local/indexes.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
defaultDatabase = monitor&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37098#M6861</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-04-26T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Default index for all splunkforwarder monitors?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37099#M6862</link>
      <description>&lt;P&gt;on every splunk instance the default destination index is defined in :&lt;BR /&gt;
$SPLUNK_HOME/etc/system/default/inputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
index=default&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;on the indexers, the default index is specified in &lt;BR /&gt;
$SPLUNK_HOME/etc/system/default/indexes.conf&lt;BR /&gt;
 #the global parameter (no stanza, just as first parameters of the file)&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
defaultDatabase = main&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can override it by adding in system/local on the forwarders &lt;BR /&gt;
local/inputs.conf (in system or in a deployed app)&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
index=monitor&lt;BR /&gt;
 #was index-default&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or on the indexers, change the default index to go to monitor, instead of main.&lt;BR /&gt;
(but it will be the case for every events, not just for the forwarders)&lt;BR /&gt;
add in local/indexes.conf (in system or in a deployed app)&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
defaultDatabase = monitor&lt;BR /&gt;
 #was defaultDatabase = main&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37099#M6862</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-04-26T14:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Default index for all splunkforwarder monitors?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37100#M6863</link>
      <description>&lt;P&gt;to be more clear,  i want to add that in a deployed app (on a universal forwarderder),  i to make this work on a input.conf i had to add it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default] 
index=xyz
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note the line break in my code block above, as on the inputs.conf adding it all as ONE LINE like this below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default] index=xyz
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;did not work / had effect.  This was on a 6.6.x splunk setup / UF &lt;BR /&gt;
tks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Default-index-for-all-splunkforwarder-monitors/m-p/37100#M6863</guid>
      <dc:creator>spunk311z</dc:creator>
      <dc:date>2020-02-11T20:43:47Z</dc:date>
    </item>
  </channel>
</rss>

