On Linux systems, users may encounter excessive disk space consumption due to the continuous growth of audit logs located at "/var/log/audit/audit.log". This typically occurs when audit log is configured to log Splunk‑related filesystem or process activities. Then it will trigger more Splunk writes when ingesting "/var/log/audit/audit.log" allowing logs to accumulate rapidly. This issue becomes more pronounced in environments where Splunk_TA_nix add-on is installed.
sudo ausearch -f /opt/splunk
# or
sudo ausearch -f /var/log/audit/audit.log
If you see lots of PATH events under /opt/splunk/var/run/splunk/dispatch or index directories, Splunk is the major contributor to the audit.log events;[monitor:///var/log/audit/audit.log]
disabled = false[script://./bin/rlog.sh]
disabled = false
# Exclude Splunk directories from auditd
-w /opt/splunk/ -p wa -k splunk_exclude
-a exclude,always -F dir=/opt/splunk/
Reload and restart auditd:
sudo auditctl -R /etc/audit/audit.rules
sudo systemctl restart auditd
This will stop audit.log being flooded by Splunk internal filesystem events, mostly in /opt/splunk/var directory;[script://./bin/rlog.sh]
disabled = true[monitor:///var/log/audit/audit.log]
disabled = true
Restart Splunk after changing inputs;
Audit Logs Consuming Disk Space due to misconfiguration of auditd.conf in Linux
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |