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 rotation is not configured or is misconfigured, allowing logs to accumulate indefinitely.
This issue becomes more pronounced in environments where multiple servers forward their audit logs to a single node, thereby accelerating disk space exhaustion. When the "/var" directory reaches full capacity, it can significantly affect the functioning of applications that rely on it, including Splunk UBA.
In a Splunk UBA deployment, the /var directory houses critical subdirectories such as "/var/vcap" and "/var/vcap2", both essential for normal UBA operations.
If the /var Directory fills up the Health monitor in the UBA UI throws an error

To confirm and understand the audit log disk space issue, followed below given steps:
Used df -h to check disk usage on the affected node.
Observed that the /var or /var/log partition was critically low on free space.
Identified that "/var/log/audit/audit.log" was consuming a significant portion of the disk.
Executed ls -l audit.log to confirm the size and growth rate of audit log files.
Noted that the primary audit.log file was growing continuously, with minimal or no older rotated logs present.

Checked the auditd.conf to check value for max_log_file_action
cat /etc/audit/auditd.conf | grep "max_log_file_action"
Identified the following parameter was misconfigured:
max_log_file_action = ignore
This setting prevents log rotation, allowing audit logs to grow indefinitely.

Confirmed that:
The file continued to grow.
No rotation or archival of logs occurred.
Disk usage increased consistently.

To resolve the issue of audit logs consuming excessive disk space due to disabled log rotation, follow the steps below to reconfigure the auditd settings and enable proper rotation.
Step 1: Verify the Current Auditd Configuration
Open a terminal on the affected Linux node
Run the following command to check the current setting:
grep max_log_file_action /etc/audit/auditd.conf
If the output shows:
max_log_file_action = IGNORE
then log rotation is disabled and must be corrected.
Step 2: Update the Configuration File
Edit the auditd configuration file:
sudo vi /etc/audit/auditd.conf
Locate the line:
max_log_file_action = IGNORE
Change it to:
max_log_file_action = ROTATE

Step 3: Restart the Auditd Service
sudo systemctl restart auditd
sudo systemctl status auditd.service

Step 4: Check Audit directory
/var/log/audit directory as root user and list the audit.log files
ll /var/log/audit

The Log rotation for the audit logs are working as intended.
Reference - Understanding Auditd logs.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |