Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for rotated auditd log file with timestamp and compression #400

Closed
SHWETHABHAT1 opened this issue Sep 23, 2024 · 1 comment
Closed

Comments

@SHWETHABHAT1
Copy link

NOTE: Please refer to the Reporting Bug and Requesting Features wiki page before creating any new GitHub issues.

Currently the audit.log files are rotated based on the max_log_file and num_logs. The current audit log file is named audit.log and the rotated logs are audit.log.1, audit.log.2, so on.

  1. Is there any support available or is it possible to have audit.log with timestamp embedded to the log file name. I tried using the log_file parameter to somehow support this, but wasnt working.
    i.e., instead of audit.log.1 ==> audit.log.23092024

  2. Is there any support available to compress the rotated audit.log ?

Any help would be appreciated.

@stevegrubb

@Cropi
Copy link
Contributor

Cropi commented Sep 24, 2024

Hello,

NOTE: Please refer to the Reporting Bug and Requesting Features wiki page before creating any new GitHub issues.

Currently the audit.log files are rotated based on the max_log_file and num_logs. The current audit log file is named audit.log and the rotated logs are audit.log.1, audit.log.2, so on.

1. Is there any support available or is it possible to have audit.log with timestamp embedded to the log file name. I tried using the log_file parameter to somehow support this, but wasnt working.
   i.e., instead of audit.log.1 ==> audit.log.23092024

In the audit roadmap, there are no plans for this, see #297 . There are some workarounds though.

2. Is there any support available to compress the rotated audit.log ?

There is no support, see #299 .

Any help would be appreciated.

@stevegrubb

Hope it helps.

@Cropi Cropi closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants