How to implement an audit log retention policy with compression based on time using rsyslog

Solution Verified - Updated -

Issue

  • How to rotate audit logs on a per day basis?
  • What is the supported method for daily audit log rotation and compression?
  • I need to set up a X days retention policy for audit logs.

Environment

  • Red Hat Enterprise Linux (All versions)
  • auditd
  • rsyslog

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content