tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* audit log file maintenance
@ 2003-01-27 15:47 Senulis, Joseph A
  0 siblings, 0 replies; only message in thread
From: Senulis, Joseph A @ 2003-01-27 15:47 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-27 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-27 15:47 audit log file maintenance Senulis, Joseph A

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