Metadata-Version: 2.1
Name: splunkhecwriter
Version: 0.4
Summary: Library for sending events to Splunk HEC
Home-page: https://github.com/hellqvio86/splunkhecwriter
Author: Olof Hellqvist
Author-email: olof.hellqvist@gmail.com
License: MIT
Download-URL: https://github.com/hellqvio86/splunkhecwriter/archive/v_01.tar.gz
Description: ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/splunkhecwriter) ![PyPI](https://img.shields.io/pypi/v/splunkhecwriter) ![GitHub](https://img.shields.io/github/license/hellqvio86/splunkhecwriter) ![GitHub issues](https://img.shields.io/github/issues-raw/hellqvio86/splunkhecwriter) ![GitHub last commit](https://img.shields.io/github/last-commit/hellqvio86/splunkhecwriter) ![PyPI - Downloads](https://img.shields.io/pypi/dm/splunkhecwriter) 
        
        # splunkhecwriter
        Library for sending log events to Splunk
        
        ## Example Code block 1
        ```python
        
          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
        ```python
        
          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
        ```python
        
          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](LICENSE.md) file for details
        
        ## Disclaimer
        This custom component is neither affiliated with nor endorsed by Splunk.
        
Keywords: splunk,hec
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.6
Description-Content-Type: text/markdown
