SPLUNK REST  API call to Splunk to create and index?

NAMEWITHELD12
NAMEWITHELD12 used Ask the Experts™
on
SPLUNK: does anyone know how exactly to right a SPLUNK API call to run and create an index in splunk based on the hostname?

thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Looking at http://dev.splunk.com/restapi, Splunk provides a REST API. So you can use any language (i.e. java/c/php/.net etc) that supports REST and write a program to call the specific api.

Nowadays, almost all the languages are having support for REST, so choice is yours.

Author

Commented:
thankiws

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial