Splunk Dev

Python script to get splunk status

VijaySrrie
Builder

Hi,

I need a python script to get the splunk status. Already we have a shell script for this one, but now I need python script for knowledge purpose.

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@vijaysri
then call shell command OR script from python script.. refer below link.

http://cmdlinetips.com/2014/03/how-to-run-a-shell-command-from-python-and-get-the-output/

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...