Getting Data In

How to create indexes in Splunk cloud using rest API?

pimco_rgoyal
Observer

I need to automate a new deployment at our end and for Splunk monitoring to be automated need to make a rest call to create index in Cloud on the fly. Is that doable?

0 Karma
1 Solution

mayurr98
Super Champion

If you are looking for How to create index using REST API in a clustered environment?
Then have a look at this answer
https://answers.splunk.com/answers/387133/how-to-create-index-using-rest-api-in-a-clustered.html

let me know if this helps!

View solution in original post

0 Karma

mayurr98
Super Champion

If you are looking for How to create index using REST API in a clustered environment?
Then have a look at this answer
https://answers.splunk.com/answers/387133/how-to-create-index-using-rest-api-in-a-clustered.html

let me know if this helps!

0 Karma

tiagofbmm
Influencer

Hey yes just follow this doc to create indexes via REST API

http://docs.splunk.com/Documentation/Splunk/7.0.2/Indexer/Setupmultipleindexes

curl -k -u admin:pass https://localhost:8089/services/data/indexes  \
    -d name=mymetricsindex                                          \
    -d datatype=metric
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...