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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...