syslog-ng log collector with size cap and read-only SSH access (lnav, ripgrep) for ADS-TEC IRF3000
128
Sample container by ADS-TEC Industrial IT: syslog-ng 4.8 (Alpine) as central syslog collector in the rootless Docker of the IRF3000 industrial firewalls, with a size-capped log archive and read-only log access over SSH.
logs with lnav, ripgrep and sftp - read-only, no root login, no forwardingdocker run -d --name syslog --hostname syslog --restart unless-stopped \
--network host -v syslog-data:/var/log/remote \
-e LOG_MAX_SIZE=1G -e LOG_RETENTION_DAYS=90 -e TZ=Europe/Berlin \
adstec/irf-syslog
docker exec syslog cat /var/log/remote/.sshd/password
ssh -p 2222 logs@<irf-address>
No --privileged, no additional capabilities.
| Variable | Default | Meaning |
|---|---|---|
LOG_MAX_SIZE | 1G | Total size cap of the log volume |
LOG_RETENTION_DAYS | 90 | Files older than this are deleted |
TZ | UTC | Time zone for RFC 3164 messages and file names |
TLS | yes | Syslog over TLS on TCP 6514 |
SSH | yes | SSH log access |
SSH_PORT | 2222 | SSH port |
SSH_PASSWORD | random, printed once | Password of user logs |
SSH_AUTHORIZED_KEYS | empty | Public key(s); with a key and no password, password login is disabled |
Setup, port forwarding and sending the IRF's own event and audit log to the collector are described in the Docker Application Note of ADS-TEC Industrial IT.
linux/arm64 (IRF3000), linux/arm/v7. syslog-ng is licensed under LGPL/GPL.
Content type
Image
Digest
sha256:2b5846384…
Size
19.9 MB
Last updated
26 days ago
docker pull adstec/irf-syslog