public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* Advice on enriching logs with user and group names before moving them to a central log repository
@ 2012-08-02 10:54 Burn Alting
  2012-08-02 13:54 ` John Dennis
  0 siblings, 1 reply; 9+ messages in thread
From: Burn Alting @ 2012-08-02 10:54 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 1412 bytes --]

Hi,

I have a scenario of a mixed collection of Linux systems, some that have
users authenticate via a central ldap, others have local (/etc/passwd)
authentication.
This means I cannot 100% depend that the user name say, fred, with uid
1000, has the same uid on every machine he has an account on.  Thus
before I send my logs to
a central server, I want to enrich them with user and group names I
validate at the local machine. That is, I want to change an event's ids
from

        .... uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=43
        sgid=43 fsgid=43 ....

to

        .... uid=1000(fred) gid=1000(prog) euid=1000(fred)
        suid=1000(fred) fsuid=1000(fred) egid=43(utmp) sgid=43(utmp)
        fsgid=43(utmp) ....


I BELIEVE my best approach is use the event multiplexor (audispd) to
convert raw logs via a child program, say based on the sample code,
audisp-example  (i.e. using the auparse library)
and send the output  of this audisp-example variant  to syslog to get
the event to a central repository.

Is this the best approach? 

Are there parameters I should consider for audisp.conf (e.g. q_depth =
99999)? Does such a configuration option in audisp.conf suggest I make
the buffer size set in audit.rules to something higher?

Is there any consideration to having auditd have a option to directly
generate user and group names in addition to uid and gids?

Thanks in advance

Burn

[-- Attachment #1.2: Type: text/html, Size: 1759 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-08-18 13:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-02 10:54 Advice on enriching logs with user and group names before moving them to a central log repository Burn Alting
2012-08-02 13:54 ` John Dennis
2012-08-02 16:26   ` Guillaume Destuynder
2012-08-02 21:12     ` Miloslav Trmac
2012-08-02 21:19       ` John Dennis
2012-08-06 17:51   ` Steve Grubb
2012-08-10  9:51     ` Burn Alting
2012-08-10 16:57       ` Michael Mather
2012-08-18 13:17       ` Steve Grubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox