cron "CMD" log lines missing at remote syslog (only 25-60 % arrive) since 26.7.9
Important notices
- [x] I have read the contributing guidelines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
- [x] AI tools were used to create at least part of the text submitted herewith.
If AI was used, please disclose:
- Model used: Claude (Anthropic), session configured as claude-sonnet-5-5
- Extent of AI involvement: log analysis and measurements (queries against VictoriaLogs) and the text of this report. Commands on the firewall were run by me; the numbers below were checked by me.
Describe the bug
Since the update to 26.7.9, only about 25–60 % of cron's CMD log lines (app_name:/usr/sbin/cron) arrive at a remote syslog target. The jobs themselves run (the corresponding configd lines are complete); only cron's own log lines are missing. Before the update (days 4–10 Nov) the lines were complete.
Last known working version: 26.7.8_2. opnsense-revert was not tested.
Even a trivial root job in /usr/local/etc/cron.d (* * * * * root /usr/bin/true test-cron-marker) loses most of its lines, so the job content, the user and configctl are irrelevant.
To Reproduce
- On 26.7.9, enable a remote syslog destination (TCP, RFC 5424, level info and above, no program filter).
- Create
/usr/local/etc/cron.d/testwith* * * * * root /usr/bin/true test-cron-marker(picked up without restarting cron). - After some minutes count
CMD ... test-cron-markerlines at the receiver. Expected: one per minute.
Expected behavior
Every cron job execution produces one CMD line at the remote target, as before 26.7.9.
Describe alternatives you considered
Tests without effect (CMD quota stays at 25–60 %):
- cron restart, full VM reboot
sysctl net.local.dgram.recvspace16384 -> 262144 with a real syslog-ng restart- syslog-ng config: no filter on program or facility for the remote destination,
dropped=0in syslog-ng stats, receiver ingest equalswritten
Relevant log files
Receiver-side counts per job over 14 h (12 Nov 19:00Z to 13 Nov 09:00Z, 840 minutes, one run per minute expected):
| job | lines received | quota |
|---|---|---|
| test-cron-marker | 213 | 25 % |
| send_telemetry | 235 | 28 % |
| update_tables | 312 | 37 % |
| updaterrd | 336 | 40 % |
| cronscripts curl (2 jobs, 1680 expected) | 718 | 43 % |
| atrun | 499 | 59 % |
Daily count of updaterrd CMD lines (1440 expected): 1432–1440 on 4–10 Nov, 1170 on 11 Nov (update day), 442 until 18:00Z on 12 Nov (about 41 %).
truss observations (3-minute windows):
truss -fon cron: 18 of 18 CMD lines arrive.trusson syslog-ng only: syslog-ng receives 4 (recvmsg), forwards 4, receiver has 4, about 18 expected.trusson both: cron sends 19, syslog-ng receives 19, forwards 17, receiver has 17.
So when cron and syslog-ng run unhindered, the lines are lost before syslog-ng's recvmsg, and the loss vanishes when cron is slowed by truss (looks timing related). I have not identified the cause. Local logs cannot be used for a comparison, because info-level cron lines are not written to local files by the generated config.
Environment
OPNsense 26.7.9 (amd64), syslog-ng 4.12.0, virtual machine on Proxmox.