LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 05-28-2009, 07:48 PM   #1
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 175

Rep: Reputation: 15
audit log rotation


Since auditd handles it's own log file rotation, I'm unclear on how to tell it to keep one year's worth of logs. /etc/audit/auditd.conf seems to be all about the size of files. man page doesn't help either.
 
Old 05-29-2009, 12:05 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Are you sure its not handled by logrotate?
 
Old 06-01-2009, 12:11 PM   #3
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 175

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
Are you sure its not handled by logrotate?
Quite sure.

Anyone know about audit log rotation?
 
Old 06-01-2009, 12:43 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,675
Blog Entries: 54

Rep: Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954
Auditd handles log rotation on log size or with the USR1 signal.

In 'man auditd.conf', at "max_log_file_action", doesn't "keep_logs" provide what you want?
 
Old 06-02-2009, 12:08 PM   #5
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 175

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
Auditd handles log rotation on log size or with the USR1 signal.

In 'man auditd.conf', at "max_log_file_action", doesn't "keep_logs" provide what you want?
If the lack of a mention of a time facility means that there simply is no way to rotate audit logs by time, then yeah, I guess it does :-P I was hoping someone knew of a cute fix.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 03:27 AM
Log Rotation for snort log does not seem to be working CentOS4.5 JasonKretzer Linux - Security 3 06-25-2007 01:25 PM
Log Rotation using Logrotate keysorsoze Linux - General 4 04-13-2007 03:51 PM
Webalizer With Log Rotation dmedici Linux - Software 0 08-17-2004 10:06 AM
manual log rotation will103 Linux - Newbie 2 04-20-2004 03:20 AM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration