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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...