Skip to content

Instantly share code, notes, and snippets.

@parhamfh
Created August 31, 2012 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parhamfh/32fc0f9060fb2c8dd0a7 to your computer and use it in GitHub Desktop.
Save parhamfh/32fc0f9060fb2c8dd0a7 to your computer and use it in GitHub Desktop.
Displaying all stanzas in props.conf
#!/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