Safe to Delete

SELinux Audit Log Files (/var/log/audit/audit.log)

Quick Answer: SELinux security daemon writes security access denial logs to /var/log/audit/audit.log. Learn how to safely rotate SELinux audit logs.

Bottom Line: It is safe to rotate and prune old SELinux audit logs. SELinux logs permission denials (AVC messages) into /var/log/audit/audit.log.


Why Do SELinux Audit Logs Exist?

Security-Enhanced Linux (SELinux) enforces mandatory access control policies on RHEL, CentOS, AlmaLinux, and Fedora servers. When an application attempts an unpermitted syscall or port bind, SELinux logs an AVC (Access Vector Cache) audit record.

  • Primary Purpose: Logging security policy denials and system call security events.
  • Storage Growth: Misconfigured services or mislabeled files can trigger continuous denial logging, growing logs to 2 GB to 30 GB+.

What Happens If You Delete SELinux Audit Logs?

  • System Safety:Safe to Rotate. Active SELinux security enforcement policy remains 100% active.
  • Logrotate Management: Using logrotate compresses old audit.log files cleanly.
  • Reclaimed Storage: Frees 2 GB to 30 GB+ of server disk space.

How to Rotate SELinux Audit Logs

# Force auditd log rotation
sudo service auditd rotate

Frequently Asked Questions (FAQ)

Why is my audit.log filling up the root partition?

If a background service (e.g. custom Nginx build) accesses restricted ports, SELinux logs AVC denials continuously. Use sealert -a /var/log/audit/audit.log to generate fix rules.

Discussion

Loading authentication...

Related in linux

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

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.

Safe to Delete

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
Back to all files