From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Senulis, Joseph A" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: audit log file maintenance Date: Fri, 31 Jan 2003 15:17:56 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1044047811 23940 80.91.224.249 (31 Jan 2003 21:16:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2003 21:16:51 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18eiWm-0006Dj-00 for ; Fri, 31 Jan 2003 22:16:49 +0100 Original-Received: (qmail 22061 invoked by uid 5); 31 Jan 2003 21:18:28 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22052 invoked by uid 49493); 31 Jan 2003 21:18:27 -0000 Original-Received: from Joseph.Senulis@dnr.state.wi.us by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-4.7/5.0):. Processed in 0.39762 secs); 31 Jan 2003 21:18:27 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 31 Jan 2003 21:18:26 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9L00I64KIGG0@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 31 Jan 2003 16:18:26 -0500 (EST) Original-Received: from prodmlin01.dnr.state.wi.us (prodmlin01.dnr.state.wi.us [168.236.3.245]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9L002MGKI6HU@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 31 Jan 2003 16:18:07 -0500 (EST) Original-Received: by prodmlin01.dnr.state.wi.us with Internet Mail Service (5.5.2656.59) id ; Fri, 31 Jan 2003 15:17:34 -0600 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2656.59) Xref: main.gmane.org gmane.os.tru64.managers:3177 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3177 Hi, I only got one response on this, from Spider.Boardman. Although he was addressing a slightly different issue, his code suggested some clarifications in my thinking. In any event, we will not use auditlogtrim. Instead, we will be rolling over the audit log file weekly and deleting logs older than several weeks, relying on our backups to restore those older logs when needed. --Joe > -----Original Message----- > From: Senulis, Joseph A > Sent: Monday, January 27, 2003 9:48 AM > To: 'tru64-unix-managers@ornl.gov' > Subject: audit log file maintenance > > 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