Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 297 Bytes

README.md

File metadata and controls

11 lines (10 loc) · 297 Bytes
  • Example of usage
from splunk_http_handler import SplunkHttpHandler
import logging

log = logging.getLogger('')
log.addHandler(SplunkHttpHandler(host, port, token, host_name_override, source))
log.setLevel('INFO')
log.info("Testing")

You should see the log message in your Splunk search.