A Python logging handler that sends your logs to Splunk over HTTP event collector
Project description
* 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.
```
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for splunk_http_handler-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65fb7b8cd20cc47dba5d2cb10faf5dff316166db27c87730bfcd3ba934ddce44 |
|
MD5 | e884fded3f4dbab30ecd64e0dceeec5a |
|
BLAKE2b-256 | e9cf6fbc53643bcf908da437c9819d5a41fab762d6fd99fb6985c06b49c87b25 |