sentry-syslog
Send Syslog RFC 5424 Messages to Senty as Events
The sentry-syslog command-line script sends RFC 5424 IETF Syslog Protocol message to Sentry as events as follows:
Initializes Sentry’s Python logging integration
Accepts one message per-line
Converts each message into a Python logging message
Logs the Python message to be handled by the Sentry’s Python logging integration
Installation
Install using any tool for installing standard Python 3 distributions such as pip:
$ sudo pip3 install sentry-syslog
Usage
See the command-line help for details on options and arguments:
$ sentry-syslog --help
usage: sentry-syslog [-h] [--input-file INPUT_FILE]
[--event-level EVENT_LEVEL]
sentry_dsn
Send syslog messages to Sentry as events.
positional arguments:
sentry_dsn The DSN for your sentry DSN or client key.
optional arguments:
-h, --help show this help message and exit
--input-file INPUT_FILE, -i INPUT_FILE
Take the syslog messages from this file, one per-line.
(default: stdin)
--event-level EVENT_LEVEL, -e EVENT_LEVEL
Capture log messages of this level and above as Sentry
events. All other events are captured as Sentry
breadcrumbs. (default: ERROR)
The script expects all the syslog lines it receives to be already filtered down to those that should be captured in Sentry. The level setting only determines which lines are captured as breadcrumbs or events.
The correct invocation can then be used, for example, with Rsyslog’s omprog output module as the binary to selectively forward a system’s syslog messages to Sentry as events. See the example omprog configuration which might be installed as follows (will require adapting to the system):
$ sudo curl https://raw.githubusercontent.com/rpatterson/sentry-syslog/master/src/sentry_syslog/etc/rsyslog.d/99-sentry.conf >/etc/rsyslog.d/99-sentry.conf $ sudo editor /etc/rsyslog.d/99-sentry.conf $ sudo systemctl restart rsyslog.service
Metadata
Release files for sentry-syslog 0.1.5
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 |
|---|---|---|---|---|
| sentry-syslog-0.1.5.tar.gz | 10.0 kB | Without provenance | Details for sentry-syslog-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sentry_syslog-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for sentry_syslog-0.1.5-py3-none-any.whl |
Total release size: 19.7 kB
Release files / sentry-syslog-0.1.5.tar.gz
| Download URL | sentry-syslog-0.1.5.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ccbdff6893405df7daec2f10ded66c31488afa6f6668e1762619ea75cc5a21d
|
|
BLAKE2b-256 checksum How to use checksums |
cf266ce1a7108d6210e221fd0faf3a6515d97ed2cfe9447ac36b435e36378446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / sentry_syslog-0.1.5-py3-none-any.whl
| Download URL | sentry_syslog-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34a186650ff932d7fac8c40a35f3be85f7641f5ec23439c74e26ab34b2425969
|
|
BLAKE2b-256 checksum How to use checksums |
04ad6e32420fd1112958a93032905aa790d81f6d96cc419a0d6cc3cc93599bd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Security for sentry-syslog 0.1.5
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.