Getting Data In

How to "create" an app through the RESTAPI?

grijhwani
Motivator

I like to keep my index configurations for indexers modular, keeping groups of indexes for a set purpose under their own app. I am trying to add a new index for a new group using the restapi, but unsurprisingly it is complaining that the app does not exist.

curl -k -u admin:changeme https://127.0.0.1:8089/servicesNS/admin/linux_indexes_blah/data/indexes -d name=linux_appservers_blah
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <messages>
    <msg type="ERROR">Application does not exist: linux_appservers_amelco</msg>
  </messages>
</response>

Expecting the answer "no", but is there a quick way to initialise a skeletal app configuration?

Tags (2)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You can create an app through the Web UI, so you can also create it through the REST API: http://docs.splunk.com/Documentation/Splunk/6.1.3/RESTAPI/RESTapps#POST_apps.2Flocal

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...