From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bond Masuda Subject: audit log still getting rotated even with max_log_file_action = ignore? Date: Mon, 2 Nov 2015 13:40:17 -0800 Message-ID: <5637D841.3090501@jlbond.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tA2LeK4k027660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 2 Nov 2015 16:40:20 -0500 Received: from mail.jlbond.com (mail2.jlbond.com [68.15.28.130]) by mx1.redhat.com (Postfix) with ESMTP id C4BA98C1AA for ; Mon, 2 Nov 2015 21:40:19 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.jlbond.com (Postfix) with ESMTP id D34E979768 for ; Mon, 2 Nov 2015 13:40:18 -0800 (PST) Received: from mail.jlbond.com ([127.0.0.1]) by localhost (mail.jlbond.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DNVtfvlSkLL1 for ; Mon, 2 Nov 2015 13:40:18 -0800 (PST) Received: from taipei.bbky.org (firewall.bbky.org [192.168.0.1]) by mail.jlbond.com (Postfix) with ESMTP id EBDA678F93 for ; Mon, 2 Nov 2015 13:40:17 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com I'm seeing my /var/log/audit/audit.log getting rotated (I find a audit.1 or audit.2, etc. file) even though I have max_log_file_action=ignore. Here's the full auditd.conf: log_file = /var/log/audit/audit.log log_format = RAW log_group = root priority_boost = 4 flush = INCREMENTAL freq = 20 num_logs = 5 disp_qos = lossy dispatcher = /sbin/audispd name_format = hostname max_log_file = 6 max_log_file_action = ignore space_left = 75 space_left_action = email action_mail_acct = root admin_space_left = 50 admin_space_left_action = exec /usr/local/bin/remove_oldest_audit_log disk_full_action = exec /usr/local/bin/remove_oldest_audit_log disk_error_action = SUSPEND tcp_listen_queue = 5 tcp_max_per_addr = 1 tcp_client_max_idle = 0 enable_krb5 = no krb5_principal = auditd what am I missing? I have a cron job in /etc/cron.daily/auditd that I use to rotate + compress the audit logs, but this is not what is causing the audit log rotation. Is there another setting I must set in order for it to not automatically rotate the audit log? How do I achieve the desired effect, where the audit log is only rotated when my cron script runs? Thanks, Bond