rsyslog/rsyslog-minimal

A lean Ubuntu-based image containing the rsyslog core and a tiny configuration that writes logs to standard output. It serves as the foundation for the other rsyslog images and is suitable when you want to add your own modules or configuration.

Runtime Notes

The packaged default configuration uses /var/spool/rsyslog as the work directory and writes to standard output via omstdout.

The image also includes an empty native regex lookup table at /etc/rsyslog/noise-drop.lkp_tbl. Replace or mount this file to drop known noisy events before packaged outputs process them. The shipped filter matches against $rawmsg because it preserves the full received event and is usually the most robust property for source-side filtering. If a regex table entry matches and returns any non-empty tag, rsyslog calls stop for that event. To match another property, such as $msg, replace the shipped /etc/rsyslog.d/02-noise-drop.conf snippet with custom rsyslog configuration.

The lookup table uses the standard rsyslog lookup-table JSON format and POSIX extended regular expressions. The first matching entry wins:

{
  "version": 1,
  "nomatch": "",
  "type": "regex",
  "table": [
    { "regex": "healthcheck succeeded", "tag": "drop" }
  ]
}

The image runs as syslog:adm by default. That fits simple container deployments that use unprivileged ports and do not depend on privileged inputs such as host log sockets or other root-only resources.

Environment Variables

The entrypoint script recognizes the following variables:

RSYSLOG_HOSTNAME

Hostname used inside rsyslog. Defaults to the value of /etc/hostname when unset.

PERMIT_UNCLEAN_START

Skip configuration validation when set. By default rsyslogd -N1 validates the configuration.

RSYSLOG_ROLE

Role name consumed by the entrypoint. Defaults to minimal and normally does not need to be changed.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.