LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2011, 09:59 AM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
Logrotate - what is rotating /var/log/audit/audit.log?


/var/log/audit/audit.log seems to be getting rotated, but I'm not sure what's causing it because there doesn't seem to be configuration for it in any logrotate config files.

I'd like to create my own logrotate rules to rotate it when it hits a certain size (because the files are too large for my liking), but I don't know where to change it... I could ADD a logrotate configuration for audit.log but I don't know how it would interfere with the existing log rotation rule for this log, wherever it is.
 
Old 11-03-2011, 02:18 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
/etc/audit/auditd.conf has the rotation rules for this log. The rotation is size based rather than time based by default.

Typing "man auditd.conf" will give you details on how to configure the rules.
 
Old 11-03-2011, 07:36 PM   #3
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
I'd like logrotate to manage the rotation, so I'm setting max_log_file_action to IGNORE instead of ROTATE, and adding a rule in logrotate for audit.log. I hope that does it.
 
Old 11-03-2011, 07:53 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by veeruk101 View Post
I'd like to create my own logrotate rules to rotate it when it hits a certain size (because the files are too large for my liking)
Using logrotate only due to file size may not address the actual cause. Depending on what logging is produced versus what is required I suggest tweaking your current rule set before settling for a panacea.
 
  


Reply



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
[SOLVED] Audit Log k_balaa Linux - Newbie 4 04-29-2011 11:02 PM
[Linux Audit]: Which groups should be allowed to read audit log files? quanba Linux - Security 1 11-15-2010 10:09 AM
kernel audit - var/log/messages timinator Linux - Security 1 11-13-2007 03:02 PM
/var/log/messages - kernel: audit(1107868785.573:0): avc: denied { getattr } lothario Linux - Security 2 02-10-2005 04:24 AM
Audit Log in AIX? DriveMeCrazy AIX 5 05-16-2004 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 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
Open Source Consulting | Domain Registration