<?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 do you create 4000+ index without creating it manually? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379381#M21094</link>
    <description>&lt;P&gt;Ok I get it... You mean to say that I need to put all the config files in indexes.conf.. Hmmm that's was my first option but my boss said that he wants me to have create a script rather than created a 4000+ index stanzas in indexes.conf which I am looking for right now... I know that your instruction will work but my boss wants it to create automatically..&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 06:54:59 GMT</pubDate>
    <dc:creator>ejmin</dc:creator>
    <dc:date>2019-02-12T06:54:59Z</dc:date>
    <item>
      <title>How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379376#M21089</link>
      <description>&lt;P&gt;I have a client that consists of 4000+ branches, and I want to create an index using a file consisting different names of an index. &lt;/P&gt;

&lt;P&gt;Is there any way to create an index of 4000+ by just using a file?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 05:34:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379376#M21089</guid>
      <dc:creator>ejmin</dc:creator>
      <dc:date>2019-02-12T05:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379377#M21090</link>
      <description>&lt;P&gt;Use a &lt;CODE&gt;Deployment Server&lt;/CODE&gt; and create an &lt;CODE&gt;all_index&lt;/CODE&gt; app which has an &lt;CODE&gt;indexes.conf&lt;/CODE&gt; file containing all 4000+ values.  Add this &lt;CODE&gt;all_index&lt;/CODE&gt; app to a &lt;CODE&gt;all_indexer&lt;/CODE&gt; serverclass in the &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/serverclass.conf&lt;/CODE&gt; file with &lt;CODE&gt;restartSplunkd=true&lt;/CODE&gt;.  Restart Splunk on your Deployment Server to enable this new configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 05:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379377#M21090</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-12T05:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379378#M21091</link>
      <description>&lt;P&gt;Hi ejmin,&lt;/P&gt;

&lt;P&gt;The file to modify is indexes.conf, outlined here:&lt;/P&gt;

&lt;P&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;If you have a naming convention, you can then script the creation of all the required stanzas. &lt;/P&gt;

&lt;P&gt;I would caution you to consider why you want that many indexes though, it will lead to difficulties in management and maintenance. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 05:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379378#M21091</guid>
      <dc:creator>sobrien</dc:creator>
      <dc:date>2019-02-12T05:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379379#M21092</link>
      <description>&lt;P&gt;hmmm.. I get your idea but it seems it is not applicable for my architecture because I have this one cluster master pushing to the 3 search peers which are clustered. but anyway thank you for your response.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 06:19:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379379#M21092</guid>
      <dc:creator>ejmin</dc:creator>
      <dc:date>2019-02-12T06:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379380#M21093</link>
      <description>&lt;P&gt;The &lt;CODE&gt;Cluster Master&lt;/CODE&gt; performs the same function as the DS except that it uses &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/&lt;/CODE&gt;.   Create this app and then do a cluster bundle push to the slaves.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 06:25:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379380#M21093</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-12T06:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379381#M21094</link>
      <description>&lt;P&gt;Ok I get it... You mean to say that I need to put all the config files in indexes.conf.. Hmmm that's was my first option but my boss said that he wants me to have create a script rather than created a 4000+ index stanzas in indexes.conf which I am looking for right now... I know that your instruction will work but my boss wants it to create automatically..&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 06:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379381#M21094</guid>
      <dc:creator>ejmin</dc:creator>
      <dc:date>2019-02-12T06:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379382#M21095</link>
      <description>&lt;P&gt;yeahh I know that it will be difficult to manage but for some instances like we are currently in right now is if for certain branch has a problem with the data it will be easy to troubleshoot or delete an index without affecting the whole indexes.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 06:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379382#M21095</guid>
      <dc:creator>ejmin</dc:creator>
      <dc:date>2019-02-12T06:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379383#M21096</link>
      <description>&lt;P&gt;So you are not asking about the deployment mechanism, you are asking about a script to create 4000 stanzas inside the &lt;CODE&gt;indexes.conf&lt;/CODE&gt; file.  That is pretty trivial.  Something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;for i in {1..4000}
do
   index_name = "index${i}"
   echo "[$index_name]" &amp;gt;&amp;gt; indexes.conf
   echo "homePath   = volume:primary/${index_name}/db" &amp;gt;&amp;gt; indexes.conf
   echo "coldPath   = volume:primary/${index_name}/colddb" &amp;gt;&amp;gt; indexes.conf
   echo "thawedPath = \$SPLUNK_DB/${index_name}/thaweddb" &amp;gt;&amp;gt; indexes.conf
done
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379383#M21096</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-12T07:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379384#M21097</link>
      <description>&lt;P&gt;yes very much like that. Sorry for the first question because my boss said it to me right now that he wants a script rather than a file and thats what I working on.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379384#M21097</guid>
      <dc:creator>ejmin</dc:creator>
      <dc:date>2019-02-12T07:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379385#M21098</link>
      <description>&lt;P&gt;See updated answer.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379385#M21098</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-12T07:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create 4000+ index without creating it manually?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379386#M21099</link>
      <description>&lt;P&gt;Ok.. Thanks It works but I made some changes in your script by the way Thankyou it helps a lot to me.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 09:51:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-you-create-4000-index-without-creating-it-manually/m-p/379386#M21099</guid>
      <dc:creator>ejmin</dc:creator>
      <dc:date>2019-02-12T09:51:45Z</dc:date>
    </item>
  </channel>
</rss>

