tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Senulis, Joseph A" <Joseph.Senulis@dnr.state.wi.us>
Subject: audit log file maintenance
Date: Mon, 27 Jan 2003 09:47:59 -0600	[thread overview]
Message-ID: <E90EEF51A894D411963F0006298F2BF707C6B40E@PRODMLIN04> (raw)

Hi,
     What is the recommended method for maintaining the logs in /var/audit.
I didn't see anything in the archives and the documentation is less than
helpful.

     When the audit system is configured, a cron job runs
/usr/lbin/auditlogtrim, every other month in our case.  However, it doesn't
seem to do much except roll over the log file, use up a lot of CPU and
generate extra files.  On some systems, it may run for a couple of days.
Additionally, I have files that are more than two months old that never get
deleted.  (Aside: auditlogtrim contains code to delete old files, but the
loop that supposedly removes files, which starts:

AUDIT_TOOL="/usr/sbin/audit_tool"
. . . . .
FILES_TO_RM=$($AUDIT_TOOL -j $LAST_KEPT_EVENT_DATE $LOG_FILE) 2>>/dev/null

don't seem to do anything.  I do note that a man audit_tool does not list -j
as being a valid option.)

     Rather than continue to trace the code, I was wondering if there was a
better way to do things.  My current thinking is to just roll over the log
file periodically, perhaps weekly or monthly, and then just delete files
older than a reasonable number of months.  It would mean that I would have
to work with multiple audit files when reviewing them, but that seems to be
the case anyway.

     Any suggestions?  I will summarize, although it may be a bit while I
try out the suggestions.  Thanks.
--Joe


                 reply	other threads:[~2003-01-27 15:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox