Troubleshoot Lost Linux Audit Events and Backlog Pressure
Before you begin
- Applies to:Linux hosts running systemd with Linux Audit tools installed.
- Where to start:Start with read-only checks on the affected host. Compare results with a healthy host that uses a similar audit policy.
- What you need:Have approved sudo access on the host and read access to the audit log destination.
Guide tools
Procedure
Bracket the suspected loss
Start hereRecord the host, UTC interval, expected event type, and where it is missing. Identify the local audit log path from auditd.conf and the forwarding destination. Check effective access before treating a search failure as missing data.
Read kernel audit status
Capture two snapshots under comparable workload. Compare lost, backlog, backlog_limit, pid, and enabled. A growing lost count indicates dropped kernel audit records. A lone historical count cannot identify the interval, and a current zero backlog is just one observation.
date -usudo auditctl -sCheck auditd and storage pressure
Read auditd service state and bounded journal output. Substitute the configured log location when checking storage. Check available blocks and inodes, and inspect auditd.conf for its disk-space and rotation actions. Avoid deleting logs to make room.
systemctl status auditd --no-pagersudo journalctl -u auditd --since '30 minutes ago' --no-pagerdf -h -- /var/log/auditdf -i -- /var/log/auditCompare active rules with the baseline
Read the active rules with sudo auditctl -l and compare to the approved rule set. Identify recent changes and unexpected scope growth. If the configuration is immutable, use the approved maintenance path. A quiet log can also mean the expected rule never matched.
Trace one known event to the destination
Choose a benign, already audited activity. Use a narrow ausearch query and correlate members of the event by their audit timestamp and serial. Compare with the same host and activity at the collector. If the local event exists but the collector lacks it, inspect the forwarder, filters, and pipeline backlog.
Verify the correction through a workload peak
VerifyAfter a single approved remediation, repeat comparable status snapshots and follow a known event to the destination. Document any already lost interval. If a tuning change causes latency or higher loss, restore the previous approved setting during the maintenance window and remeasure.
Interpret the Results
| Finding | Next action |
|---|---|
| Lost increases between samples | Investigate audit rule volume, daemon throughput, and storage pressure. |
| Local audit event missing but lost is stable | Check rule coverage, rotation, and log path before concluding. |
| Local event exists but SIEM misses it | Investigate forwarding and parser behavior. |
References
Your feedback keeps these production procedures accurate and battle-tested.