Skip to main content

Python library to easily send CEF formatted messages to syslog server

Project description

syslogcef

Python library to easily send CEF formatted messages to syslog server.

It uses cefevent to format message payloads and rfc5424-logging-handler to send syslogs.

Install:

pip install syslogcef

Usage:

from syslogcef import SyslogCEFSender

syslog = SyslogCEFSender('10.1.2.3', '514', 'TCP', deviceProduct='MyProgram', deviceVersion='1.0.2')
syslog.register_event('100', 'CPU temp is OK', 0)
syslog.register_event('101', 'CPU temp is rising', 5)
syslog.register_event('102', 'CPU temp is too high', 9, reason="Exceeds 70 degres celsius")

syslog.send('102', message="The CPU temp is 88 degres celsius.", sourceHostName="mydevice.mydomain.com", sourceMacAddress="00:00:ee:00:52:bb")

See cefevent for complete list of fields.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syslogcef-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

syslogcef-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file syslogcef-0.1.1.tar.gz.

File metadata

  • Download URL: syslogcef-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for syslogcef-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e0384c56ba862a5ba4e07958925c82d1f3a0da6860725de00c52dcc36fa4c6cf
MD5 4ef75b561fcfbc00af031768d1ae1c2c
BLAKE2b-256 2ddd236166b42cfa09c6a1b5605476b63c1e655cddad0d3e280cdbdc03b71e42

See more details on using hashes here.

File details

Details for the file syslogcef-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: syslogcef-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for syslogcef-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 618ded57a7d75272db9a0b19c96afacb69089f016dcac938c4f3c368475e57ad
MD5 a9b89812ff48865f9c99fb110a491bee
BLAKE2b-256 c59c93990d162c05ab68e3c03a33f0acb7b97a7341b207be2afcfa1f894349cd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page