From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Realtime parsing with Auparse Date: Tue, 18 Nov 2014 11:38:59 -0500 Message-ID: <1560546.DyxyecMC89@x2> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Tuesday, November 18, 2014 02:37:38 PM Wouter van Verre wrote: > Hi all, > > I am looking to do some real time parsing with audit. After some testing I > figured it would be easier to the parsing in a plugin on the local machine > and then send the parsed data to a remote machine for storage. > > After reading the audit-parse.txt document I am not quite sure how to > proceed. Given that the plugin will receive data on stdin, how would I go > about setting the auparse library up (for example, what ausource_t should I > specify to initialise the auparse_state_t object) to enable real time > parsing? There is an example plugin in the source distribution. You can see it here: https://fedorahosted.org/audit/browser/trunk/contrib/plugin The plugin provides a code skeleton and demonstration of how to move around the events / records / fields. Other examples would be the prelude-plugin and aulast utility. -Steve