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?
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