splunkhecwriter
Library for sending log events to Splunk
Example Code block 1
from splunkhecwriter import SplunkHECWriter
hec_token = '<HEC-TOKEN-HERE>'
splunk_server = '127.0.0.1'
hec_writer = SplunkHECWriter(splunk_host=splunk_server, splunk_hec_token=hec_token)
msg = { 'foo': 'bar' }
hec_writer.send_msg(msg=msg)
Example Code block 2
from splunkhecwriter import SplunkHECWriter
hec_token = '<HEC-TOKEN-HERE>'
splunk_server = '127.0.0.1'
hec_writer = SplunkHECWriter(splunk_host=splunk_server, splunk_hec_token=hec_token)
msgs = []
msgs.append({ 'foo': 'bar' })
msgs.append({ 'bar': 'foo'})
hec_writer.send_msgs(msgs=msgs)
Example Code block 3
from splunkhecwriter import SplunkHECWriter
hec_token = '<HEC-TOKEN-HERE>'
splunk_server = '127.0.0.1'
sourcetype= 'foobar:json'
source = 'hec'
host = 'foobar'
hec_writer = SplunkHECWriter(
splunk_host=splunk_server,
splunk_hec_token=hec_token,
sourcetype=sourcetype,
source=source,
host=host)
msg = { 'foo': 'bar' }
hec_writer.send_msg(msg=msg)
License
This project is licensed under the Apache License - see the LICENSE.md file for details
Disclaimer
This custom component is neither affiliated with nor endorsed by Splunk.
Metadata
Release files for splunkhecwriter 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| splunkhecwriter-0.4.tar.gz | 3.1 kB | Without provenance | Details for splunkhecwriter-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| splunkhecwriter-0.4-py3-none-any.whl | Python 3 | none | any | Details for splunkhecwriter-0.4-py3-none-any.whl |
Total release size: 10.5 kB
Release files / splunkhecwriter-0.4.tar.gz
| Download URL | splunkhecwriter-0.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14ae17db493f085924ba92c604cc8a4cb996374c8e731675a7cca0c0ad0f76d6
|
|
BLAKE2b-256 checksum How to use checksums |
fc07df5159a135d5f4c0ede3193fa3cff90bcfbe1641541457858cba86cd0189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / splunkhecwriter-0.4-py3-none-any.whl
| Download URL | splunkhecwriter-0.4-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40abd7efc23c40e96e89eab4f12971b10c3940b0d3ab00546b448ad3d89917c2
|
|
BLAKE2b-256 checksum How to use checksums |
6438d151c2936bc7d558bbcdfc7456d0ffe3c4a735eeaefac421e86e0e4610ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Security for splunkhecwriter 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.