syslog-server/lib
Adam Moussa 47f857a5b4 fix(syslog-server): rotate /var/log/remote so the disk can't fill (INFRA-11)
The collector's remote-syslog spool had no rotation, so each gateway's
/var/log/remote/<host>/<host>.log grew unbounded. Low risk at the old
~109 events/day, but the gateways now forward ~60k/day. CloudWatch (90d)
is the system of record; the local files are only a CW-agent spool, so
keep a short 7-day compressed window. copytruncate keeps rsyslog's open
dynaFile handles valid (truncate in place).

Applied live already; this codifies it so an instance replacement keeps it
(mirrors the existing netflow-retention timer). Deploying this user-data
change forces an instance replacement (userDataCausesReplacement) — the EIP
re-associates and the forwarding target is unchanged, so do it in a window.
2026-06-10 12:59:36 -04:00
..
syslog-server-stack.ts fix(syslog-server): rotate /var/log/remote so the disk can't fill (INFRA-11) 2026-06-10 12:59:36 -04:00