-
-
Save parhamfh/32fc0f9060fb2c8dd0a7 to your computer and use it in GitHub Desktop.
Displaying all stanzas in props.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
from splunklib.client import Service | |
ser = Service(**{'username':'admin','password':'changeme'}) | |
ser.login() | |
for stanza in ser.confs['props'].list(): | |
print stanza.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment