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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...