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: audit log file maintenance Date: Mon, 27 Jan 2003 09:47:59 -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 1043682535 7693 80.91.224.249 (27 Jan 2003 15:48:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 15:48:55 +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 18dBV6-0001yx-00 for ; Mon, 27 Jan 2003 16:48:45 +0100 Original-Received: (qmail 15342 invoked by uid 5); 27 Jan 2003 15:50:14 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 15333 invoked by uid 49493); 27 Jan 2003 15:50:13 -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(-1.2/5.0):. Processed in 1.782873 secs); 27 Jan 2003 15:50:13 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 27 Jan 2003 15:50:11 -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 <0H9D002CAQNC3B@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 27 Jan 2003 10:50:10 -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 <0H9D00ICHQN0LZ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 27 Jan 2003 10:49:49 -0500 (EST) Original-Received: by prodmlin01.dnr.state.wi.us with Internet Mail Service (5.5.2656.59) id ; Mon, 27 Jan 2003 09:49:22 -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:3078 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3078 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