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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...