Skip to main content

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)

Source distribution for rsyslog-pseudonymizer 1.0.2
File Size Uploaded
rsyslog_pseudonymizer-1.0.2.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rsyslog-pseudonymizer 1.0.2
File Interpreter ABI Platform
rsyslog_pseudonymizer-1.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page