Safe to Delete

Linux Audit Framework Log Directory (/var/log/audit)

Quick Answer: The Linux auditd service records security events, file access traces, and user commands in /var/log/audit. Learn how to clean auditd log files safely.

Bottom Line: It is safe to prune old rotated audit log files (audit.log.1, audit.log.2). The Linux auditd framework logs system calls, file permissions changes, and user authentication events.


Why Do Auditd Logs Exist?

Enterprise Linux security policies require tracking user authentication, file access modifications (/etc/passwd, /etc/shadow), and execution of setuid binaries.

  • Primary Purpose: Compliance auditing (PCI-DSS, HIPAA, CIS Benchmarks) and post-incident security forensics.
  • Storage Growth: High-activity enterprise servers write gigabytes of audit events, consuming 3 GB to 40 GB+.

What Happens If You Delete Old Auditd Logs?

  • System Safety:Safe to Prune. Modern active audit logging is not interrupted.
  • Compliance Note: Ensure logs are archived to a remote SIEM server before local deletion if subject to compliance audits.
  • Reclaimed Storage: Frees 3 GB to 40 GB+ of server disk space.

How to Clean Auditd Logs

# Delete rotated audit log archives
sudo rm -f /var/log/audit/audit.log.[1-9]*

Frequently Asked Questions (FAQ)

How do I limit auditd disk usage in auditd.conf?

Edit /etc/audit/auditd.conf and set max_log_file = 50 (MB) and max_log_file_action = ROTATE.

Discussion

Loading authentication...

Related in linux

Fail2ban Ban History Database (/var/lib/fail2ban/fail2ban.sqlite3)

Fail2ban intrusion prevention daemon logs banned IP addresses and SSH brute-force attempts in fail2ban.sqlite3. Clearing Fail2ban database is safe.

Safe to Delete

GNOME Desktop File Indexer Database (~/.local/share/tracker/data)

GNOME Tracker caches desktop search index databases. Resetting the tracker database is safe.

Safe to Delete

KDE Plasma Desktop Service Configuration Cache (~/.cache/ksycoca5)

ksycoca caches KDE Plasma application menu services and mime type databases. Rebuilding ksycoca is safe.

Safe to Delete
Back to all files