From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: Consolidate Audit's msgs
Date: Wed, 11 Jan 2012 14:03:21 -0500 [thread overview]
Message-ID: <201201111403.21596.sgrubb@redhat.com> (raw)
In-Reply-To: <4F0CEE5F.3080509@tzib.net>
On Tuesday, January 10, 2012 09:05:19 PM dump@tzib.net wrote:
> I was wondering if there had already been an effort or solution to
> consolidate msgs from auditd into a single line.
No. There was something in the FAQ page about how to do it
http://people.redhat.com/sgrubb/audit/audit-faq.txt
Item #1
> I'm talking about buffering the messages until EOE (or timing out/empty
> buffer if EOE doesn't come on errors), and concatenating messages with
> the same ID into a single message. Potentially also transforming the
> message syntax while at it.
>
> I'm asking because some loggers will only accept specific message formats.
>
> I looked at the plugins, but, from what I gather, the kernel sends the
> messages as raw strings and I'm not sure of the performance/memory
> impact when auditd cranks out a lot of messages.
This is a tricky problem. The basic gist is that any manipulation, formating,
correlation, or sequencing of events is a user space problem from the kernel's
point of view. There is nothing in the kernel to serialize events. Its not
uncommon for events to get interlaced with other events. So, ausearch has a
linked list of linked lists to store events until its certain it has it all.
Anything doing reformatting would need to do someting like this, too.
> An alternative could be to send all the msgs as text to a remote auditd
> host using audispd-remote, and processing the log file on that host.
> It means even more messages to process however and I'm not sure the text
> file interface will be fast enough/might have too much disk activity and
> break often, etc. if auditd again, cranks out a lot of messages from
> many hosts (like several thousand per second).
Well, I guess you can try things like cgroups and priority boosting to make sure
the audit daemon and plugins stays ahead of anything generating events.
-Steve
prev parent reply other threads:[~2012-01-11 19:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-11 2:05 Consolidate Audit's msgs dump
2012-01-11 19:03 ` Steve Grubb [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201201111403.21596.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox