From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Sawhill Subject: Re: auditd.cron Date: Thu, 23 Mar 2017 10:45:25 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3550899975358437665==" Return-path: Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 845D77D67A for ; Thu, 23 Mar 2017 14:45:48 +0000 (UTC) Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DC852804E5 for ; Thu, 23 Mar 2017 14:45:47 +0000 (UTC) Received: by mail-oi0-f71.google.com with SMTP id x203so133474300oig.2 for ; Thu, 23 Mar 2017 07:45:46 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: "warron.french" Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com --===============3550899975358437665== Content-Type: multipart/alternative; boundary=001a11406d5aa5056f054b66ee8e --001a11406d5aa5056f054b66ee8e Content-Type: text/plain; charset=UTF-8 On Wed, Mar 22, 2017 at 5:19 PM, warron.french wrote: > So, I needed a feature over 8 months ago, nobody could provide one for the > following: > Rolling log files either when they hit a certain size or the day > changed over at midnight. > > I know that I could have rolled the files at a specific size, by using the > *max_log_file* attribute as identified in the */etc/audit/auditd.conf*, > but there was no "builtin" for managing auto rotation at the start of a new > day (0000 hrs). > > It looks like there is a file called */usr/share/doc/auditd-<**version>* > */auditd.cron* > > *.* > To me*, *this file is new; considering I needed it 8 months ago. > > *Anyway, how is this file implemented? * Simply move it to a directory > with permissions to execute; ensure it is executable and then simply set up > a cronjob to execute it at whatever time of day that I wish? > > *Finally, if I have '-e 2' as the last control in the audit.rules file; > will the auditd.cron which executes as service auditd rotate still function > properly?* > Steve covered the important parts, but for more hand-holding: How to implement audit log rotation with compression based on time instead of size --001a11406d5aa5056f054b66ee8e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Steve covered the important parts, but for more = hand-holding:

How to implement audit log rotation with compression based on time instead= of size
--001a11406d5aa5056f054b66ee8e-- --===============3550899975358437665== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3550899975358437665==--