<?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: Is there a REST call to create an index dynamically? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284773#M54396</link>
    <description>&lt;P&gt;I haven't seen an option like that. The cluster master does have some REST endpoints for reading index data, but they are all GET methods.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Findexes.2F.7Bname.7D"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Findexes.2F.7Bname.7D&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can individually create the index on each indexer via an API call, but that's probably risky given that the index configurations between all of servers need to match exactly.  I've also had limited success creating the index on a host via API without having to restart the indexer.  &lt;/P&gt;

&lt;P&gt;You're probably stuck with managing an indexes.conf file on your cluster master and building your automation around that.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2016 19:32:51 GMT</pubDate>
    <dc:creator>Jeremiah</dc:creator>
    <dc:date>2016-02-09T19:32:51Z</dc:date>
    <item>
      <title>Is there a REST call to create an index dynamically?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284771#M54394</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is there a way to automate the creation (and parameters) of new indexes through REST (hopefully pushed through the Cluster Manager)?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284771#M54394</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-02-09T18:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST call to create an index dynamically?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284772#M54395</link>
      <description>&lt;P&gt;Yes, take a look at: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284772#M54395</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2016-02-09T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST call to create an index dynamically?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284773#M54396</link>
      <description>&lt;P&gt;I haven't seen an option like that. The cluster master does have some REST endpoints for reading index data, but they are all GET methods.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Findexes.2F.7Bname.7D"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Findexes.2F.7Bname.7D&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can individually create the index on each indexer via an API call, but that's probably risky given that the index configurations between all of servers need to match exactly.  I've also had limited success creating the index on a host via API without having to restart the indexer.  &lt;/P&gt;

&lt;P&gt;You're probably stuck with managing an indexes.conf file on your cluster master and building your automation around that.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284773#M54396</guid>
      <dc:creator>Jeremiah</dc:creator>
      <dc:date>2016-02-09T19:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST call to create an index dynamically?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284774#M54397</link>
      <description>&lt;P&gt;This would work to create an index in a cluster?  Would you have to push the change to each peer or is there an endpoint here that lets you push a change to the cluster master that is then distributed to the indexers?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284774#M54397</guid>
      <dc:creator>Jeremiah</dc:creator>
      <dc:date>2016-02-09T19:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST call to create an index dynamically?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284775#M54398</link>
      <description>&lt;P&gt;I'm not sure if there is a way to do that directly on the master node, but you could probably use it to update the indexes.conf file on the master node (will likely be under $SPLUNK_HOME/etc/system/local/indexes.conf), then have a CRON job on the master node that periodically copies that indexes.conf file that you created through the REST API to &lt;CODE&gt;$SPLUNK_HOME/etc/master-apps/_cluster/local/indexes.conf&lt;/CODE&gt;. Take a look at: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Indexer/Updatepeerconfigurations" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Indexer/Updatepeerconfigurations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284775#M54398</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2020-09-29T08:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a REST call to create an index dynamically?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284776#M54399</link>
      <description>&lt;P&gt;I'm not sure POST is supported, but I'd guess &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Findexes"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Findexes&lt;/A&gt; for updating the master nodes index config.&lt;/P&gt;

&lt;P&gt;If not, then maybe you can just use &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTconf&lt;/A&gt; to do the same for generic config updates.&lt;/P&gt;

&lt;P&gt;Then there might be an endpoint for pushing out the updated config. Not sure if this is it: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Fgeneration"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/RESTREF/RESTcluster#cluster.2Fmaster.2Fgeneration&lt;/A&gt;&lt;BR /&gt;
If not, then the cron approach might work.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:38:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-REST-call-to-create-an-index-dynamically/m-p/284776#M54399</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-02-12T22:38:11Z</dc:date>
    </item>
  </channel>
</rss>

