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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...