On 2024-12-15 09:44, Viktor Dukhovni via Postfix-users wrote: > > With systemd logging, logs are by default lossy (rate-limits too tight > and many users don't notice until it is too late). Also logging is
System-wide "defaults to 10000 messages in 30s" and "is applied per- service", so this can be easily resolved by providing postfix.service with: LogRateLimitIntervalSec=0 > stream rather than datagram based (separate stream per-process), and so > gets the logs out of order when logs are sent in close succession by > multiple processes. Proper ordering is supposed to be one of the journald promises - are you talking about stdout/stderr capture (I guess no), or /dev/log handling? If /dev/log - what's the fault of journald here? Choosing SOCK_STREAM over SOCK_DGRAM? I don't think that proper ordering depending on that is it's fault - a quick glance show that various syslogds have been switching between them: https://support.oneidentity.com/technical-documents/syslog-ng-open-source-edition/3.20/administration-guide/28 and actually the oldest system I got (which is really ancient postfix 2.3.12) also uses unix-stream() in syslog-ng 2.x. OTOH unix-dgram() reliability was discussed just 3 months ago: https://github.com/syslog-ng/syslog-ng/issues/3828 https://github.com/syslog-ng/syslog-ng.github.io/issues/130 I have no idea what systems and versions have reliable SOCK_DGRAMs, so if you write from multiple processes, you should ensure proper ordering on your own. If that's what postlogd does, it could entirely skip /dev/log and use sd-journal directly. Which would enable structured- logging as well. Oh, but hey... it is DGRAM: # lrwxrwxrwx 1 root root 28 2024-08-16 16:43 /dev/log -> /run/systemd/journal/dev-log= # netstat | grep -i /run/systemd/journal/dev-log unix 33 [ ] DGRAM CONNECTED 11273 1/systemd /run/systemd/journal/dev-log unix 21 [ ] DGRAM CONNECTED 75774 10183/systemd /run/systemd/journal/dev-log unix 9 [ ] DGRAM CONNECTED 12493106 70694/systemd /run/systemd/journal/dev-log unix 8 [ ] DGRAM CONNECTED 39839386 68856/systemd /run/systemd/journal/dev-log unix 8 [ ] DGRAM CONNECTED 18876125 14229/systemd /run/systemd/journal/dev-log _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org