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 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...