AnsweredAssumed Answered

Linux auditd log parser

Question asked by akK9JNBsR9GgjAuGPlN6hHzzwqL4VSJksLHcVvRlXPk= on Aug 8, 2015

Hi folks,


Does anyone have already succeeded to write a parser for linux auditd log files ?






2015-08-08T13:13:04.556656+02:00 myserver audispd: node=myserver.domain.intra type=SYSCALL msg=audit(1364481363.243:24287): arch=c000003e syscall=2 success=no exit=-13 a0=7fffd19c5592 a1=0 a2=7fffd19c4b50 a3=a items=1 ppid=2686 pid=3538 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts0 ses=1 comm="cat" exe="/bin/cat" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key="sshd_config"

2015-08-08T13:13:04.556657+02:00 myserver audispd: node=myserver.domain.intra type=CWD msg=audit(1364481363.243:24287): cwd="/home/shadowman"

2015-08-08T13:13:04.556658+02:00 myserver audispd: node=myserver.domain.intra type=PATH msg=audit(1364481363.243:24287): item=0 name="/etc/ssh/sshd_config" inode=409248 dev=fd:00 mode=0100600 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:etc_t:s0


The official rhlinux parser puts everything in the meta event.desc while such information are a gold mine!


Such a parser requires taking into account multiple lines, convert some of the value from hex to ascii, and ideally will convert some stuff in human readable values.