rsyslog
Cheat sheet · https://pcornel.dk/topic.php?topic=2820
Answer
rsyslog is the common syslog daemon: it receives messages (from journald, /dev/log, network), filters them by facility and severity, writes them to files and forwards them over UDP/TCP/TLS.
Remember
Rules are in /etc/rsyslog.conf and /etc/rsyslog.d/*.conf. Check syntax with rsyslogd -N1. Use TCP (@@host:514) or TLS for reliable forwarding; @host is UDP. A queue (action.resumeRetryCount, disk-assisted queue) avoids loss when the server is down.
First checks
rsyslogd -N1— syntax checkjournalctl -b -p warning— warnings and errors since bootjournalctl -u <unit> -f— follow one unit's logls -lh /var/log— log files and sizeslogger -p user.info test— send a test message
Verify in this order
message received → rules match facility/severity → written to file and/or queued → forwarded to the server
Where it usually breaks
First mismatch in persistent unit/config/generator → dependency/order graph → systemd state → process/cgroup → socket/resource dependency → journal → consumer check; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2820