RsyslogPseudonymizer
RsyslogPseudonymizer is a plug-in module for Rsyslog based on Python which replaces personal identifiers in log messages by pseudonyms before they are written to log files. The pseudonym-mapping is only kept in RAM.
Test and build
Run the following commands:
virtualenv -p "$(which python3)" ./venv
source ./venv/bin/activate
pip install -r dev_requirements.txt
tox
hatch clean
hatch build
Installation
In the absence of OS packages, some more steps are required.
See the provided install.sh or run it as root (tested on Debian).
You should then configure your applications/services so that the logs are written only to Rsyslog.
If you use Systemd, you could configure it to forward received logs to Rsyslog. Then it would in general only be necessary to configure applications to only log to stdout/stderr so that Systemd handles the output. Configuration example:
/etc/systemd/journald.conf.d/forward_to_syslog.conf
[Journal]
# Keep log data only in memory, but forward journal log to (r)syslog
Storage=volatile
ForwardToSyslog=yes
# Reduce amount of logs stored in RAM somehow
MaxFileSec=1h
MaxRetentionSec=2days
Then: systemctl restart systemd-journald.service
Metadata
Release files for rsyslog-pseudonymizer 1.0.2
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 |
|---|---|---|---|---|
| rsyslog_pseudonymizer-1.0.2.tar.gz | 8.9 kB | Without provenance | Details for rsyslog_pseudonymizer-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rsyslog_pseudonymizer-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for rsyslog_pseudonymizer-1.0.2-py3-none-any.whl |
Total release size: 27.3 kB
Release files / rsyslog_pseudonymizer-1.0.2.tar.gz
| Download URL | rsyslog_pseudonymizer-1.0.2.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8f655588e313648c928f8c38499666705b0e20aaccc46d70e7e9c5be9f22258
|
|
BLAKE2b-256 checksum How to use checksums |
61717fa71e24b1c4943e5178ad24791330bc12084651aa7759c27702bc34a36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / rsyslog_pseudonymizer-1.0.2-py3-none-any.whl
| Download URL | rsyslog_pseudonymizer-1.0.2-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b82781ab9c57214c93fcf7f5919473ee2fef2c25153938b41b3d4186141c53f7
|
|
BLAKE2b-256 checksum How to use checksums |
376b6d93b0950f7f1b43cb3f9dba731e65ec9f65b9fd2a0fb1d0d274ac2f9a3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Security for rsyslog-pseudonymizer 1.0.2
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.