From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Auditing network traffic Date: Thu, 21 Jan 2016 17:09:38 -0500 Message-ID: <1829640.VkkpYLsIEc@x2> References: <13584577.zLtyaCJgkZ@x2> <56A14461.2020109@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <56A14461.2020109@gmail.com> 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 On Thursday, January 21, 2016 10:49:37 PM Lev Stipakov wrote: > Sorry, I probably was not clear here. I am able to catch packets by > adding iptables rules like ones you've mentioned and process events > (with record type AUDIT_NETFILTER_PKT) by code inside my plugin. > > The problem is, I would prefer them not to be written to logfiles. My > business logic does not require that (everything is handled by plugin > code), and I noticed that logs are rotated quite fast (I capture all > incoming/outgoing packets). So, is there any way to disable logging and > make audit deliver those events to plugin only? In /etc/audit/auditd.conf make log_firmat like this: log_format = NOLOG and auditd will not log anything to disk. -Steve