Guest User

Untitled

a guest
Oct 25th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import splunklib.client as client
  2. import splunklib.results as result
  3. HOST = 'Localhost'
  4. PORT = '8000
  5. USERNAME = "username"
  6. PASSWORD = "password"
  7.  
  8. service = client.connect(
  9. host=HOST,
  10. port=PORT,
  11. username=USERNAME,
  12. password=PASSWORD)
  13. rr = results.ResultsReader(service.jobs.export("query")
Add Comment
Please, Sign In to add comment