set up syslog-ng for nginx access log

This sets up the infrastructure for moving from storing nginx access
logs in journald to plain text files written by syslog-ng and rotated by
logrotate. This works around the poor performance, poor space efficiency
and lack of archived log compression for journald. Unlike writing access
logs directly with nginx, this continues avoiding blocking writes in the
event loop and sticks to asynchronous sends through a socket.

Since nginx only supports syslog via the RFC 3164 protocol rather than
the more modern RFC 5424 protocol, this leaves formatting timestamps up
to nginx rather than using the ones provided via the syslog protocol.
This commit is contained in:
Daniel Micay 2025-11-01 21:09:05 -04:00
parent 97d55a130e
commit 2caa67529a
31 changed files with 81 additions and 1 deletions

View file

@ -43,6 +43,7 @@ python-swiftclient
rsync
strace
stress
syslog-ng
sysstat
tinyxxd
tree