<?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 How to create a new index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407220#M95327</link>
    <description>&lt;P&gt;I am collecting the log files from my syslog server and defined the index for the source path but it is still sending the the events to the main index.&lt;/P&gt;

&lt;P&gt;Need to change the index for the event.&lt;/P&gt;

&lt;P&gt;Please help!&lt;/P&gt;</description>
    <pubDate>Sat, 13 Apr 2019 17:07:37 GMT</pubDate>
    <dc:creator>sherrysafdar</dc:creator>
    <dc:date>2019-04-13T17:07:37Z</dc:date>
    <item>
      <title>How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407220#M95327</link>
      <description>&lt;P&gt;I am collecting the log files from my syslog server and defined the index for the source path but it is still sending the the events to the main index.&lt;/P&gt;

&lt;P&gt;Need to change the index for the event.&lt;/P&gt;

&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 17:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407220#M95327</guid>
      <dc:creator>sherrysafdar</dc:creator>
      <dc:date>2019-04-13T17:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407221#M95328</link>
      <description>&lt;P&gt;On your indexer you need to create an index using the &lt;CODE&gt;indexes.conf&lt;/CODE&gt; file:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Indexesconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Indexesconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once the index is defined there, you need to reference it inside of the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; on your syslog server like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://.......]
index=YourIndexNameHere
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Apr 2019 18:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407221#M95328</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-13T18:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407222#M95329</link>
      <description>&lt;P&gt;I am unable to find the indexes.conf under /opt/splunk/etc/system/local I wonder if I need to need to create one? if that doesn't exist?&lt;/P&gt;

&lt;P&gt;Also, on my syslog my current inputs.conf looks like below with the default installation.&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
host = SP-FWDR&lt;/P&gt;

&lt;P&gt;Do I need to reference each index inside the inputs.conf whatever I need to be in a separate indexes? how about the rest of the events will it go to the main?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 19:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407222#M95329</guid>
      <dc:creator>sherrysafdar</dc:creator>
      <dc:date>2019-04-13T19:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407223#M95330</link>
      <description>&lt;P&gt;No, do not put your stuff in &lt;CODE&gt;/opt/splunk/etc/system/local&lt;/CODE&gt;.  Create your own app on your indexers in &lt;CODE&gt;/opt/splunk/etc/apps/YourCompany_all_indexes/default/indexes.conf&lt;/CODE&gt;.  Yes, you reference that index name inside of &lt;CODE&gt;inputs.conf&lt;/CODE&gt; on your syslog server.  If you do not specify any index name, then by default, your events will go to &lt;CODE&gt;main&lt;/CODE&gt;.  If you specify and index name/value that does not exist, then the events will go nowhere and get dropped (logging &lt;CODE&gt;Received event for unconfigured/disabled/deleted&lt;/CODE&gt; in &lt;CODE&gt;index=_internal&lt;/CODE&gt; ), unless you have defined a &lt;CODE&gt;lastChanceIndex&lt;/CODE&gt; on your indexers.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2019 19:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407223#M95330</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-13T19:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407224#M95331</link>
      <description>&lt;P&gt;Sorry for jumping in @woodcock - we put our indexes under &lt;CODE&gt;$SPLUNK_HOME/etc/apps/YourCompany_all_indexes/local/indexes.conf&lt;/CODE&gt; (local versus your recommendation of default).&lt;/P&gt;

&lt;P&gt;In the past, on an older platform, we placed the indexes under - &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/_cluster/local/indexes.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So, we see three variations - &lt;/P&gt;

&lt;P&gt;1) &lt;CODE&gt;$SPLUNK_HOME/etc/apps/YourCompany_all_indexes/default/indexes.conf&lt;/CODE&gt;&lt;BR /&gt;
2) &lt;CODE&gt;$SPLUNK_HOME/etc/apps/YourCompany_all_indexes/local/indexes.conf&lt;/CODE&gt;&lt;BR /&gt;
3) &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/_cluster/local/indexes.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Why is #1 the preferred way?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 00:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407224#M95331</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-14T00:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407225#M95332</link>
      <description>&lt;P&gt;The person who &lt;CODE&gt;authors&lt;/CODE&gt; the app should deploy his configurations in &lt;CODE&gt;default&lt;/CODE&gt;.  That way if the person who is &lt;CODE&gt;using&lt;/CODE&gt; the app needs to updated/override/configure the settings to suit his situation, he can deploy his configurations in &lt;CODE&gt;local&lt;/CODE&gt; to override the author's defaults.  Splunk PS has the bad habit of deploying their configurations in &lt;CODE&gt;custom_app/local&lt;/CODE&gt; because it suits them better to have configurations that the user cannot override because they prefer things to stay the way that they think they should be.  I think that this is a mistake.  In any case &lt;STRONG&gt;EVERYBODY&lt;/STRONG&gt; agrees that nothing should be deployed in &lt;CODE&gt;$SPLUNK_HOME/etc/system/&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 05:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407225#M95332</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-14T05:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407226#M95333</link>
      <description>&lt;P&gt;Much appreciated @woodcock , what about the &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/_cluster/local/indexes.conf&lt;/CODE&gt; location ?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 12:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407226#M95333</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-14T12:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407227#M95334</link>
      <description>&lt;P&gt;That directory has the highest precedence of all, even higher than &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/&lt;/CODE&gt;, so is for emergencies only.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 14:21:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407227#M95334</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-14T14:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407228#M95335</link>
      <description>&lt;P&gt;oh oh wow - much appreciated @woodcock !!!&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 21:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407228#M95335</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-14T21:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407229#M95336</link>
      <description>&lt;P&gt;If you deploy indexes.conf via the master at /opt/splunk/etc/master-apps/_cluster/local/indexes.conf then your indexes.conf on the peer nodes (indexers) will reside at /opt/splunk/etc/slave-apps/_cluster/local/indexes.conf, not at /etc/system/local.&lt;/P&gt;

&lt;P&gt;In a clustered environment, I'm not a fan of deploying indexes.conf any other way, though it can be done (e.g. in a custom app).&lt;BR /&gt;
If that app gets deleted, or you inadvertently deploy with the app directory missing, or wrong permissions, etc. then you're going to have problems.&lt;/P&gt;

&lt;P&gt;The /opt/splunk/etc/master-apps/_cluster/local/ is a special directory intended just for this purpose, and is documented as such:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.4/Indexer/Updatepeerconfigurations" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.4/Indexer/Updatepeerconfigurations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-new-index/m-p/407229#M95336</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2020-09-30T00:14:31Z</dc:date>
    </item>
  </channel>
</rss>

