Solved

How do you sort through specific Event IDs in audit logs?

Posted on 2006-11-29
4
514 Views
Last Modified: 2008-01-09
I know the answer is to use ausearch from a command line.  According to the ausearch man entry, the Event ID comes after the ":" in the msg=audit line entry.  As an example, msg=audit(1116360555.329:2401771) would mean that "2401771" is the Event ID.  But in looking though the audit.logs, it seems as if that number is simply a sequential marker.  Also, I've searched the Internet to try and find something more about Linux audit.log files but everything seems to be geared towards Windows Event IDs.

For instance, we would like to be able to see if a user has tried to access a file they are not authorized to open.  What Event ID would that be and how would we use ausearch to look for such events?

Is there a listing somewhere which gives the definitions of each individual Event ID and how to interpret them so that we can sort on specific events rather than having to cull though each 8M audit.log file?
0
Comment
Question by:L3MS
4 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 63 total points
ID: 18068680
Linux/Unix audit logs do not contain Event IDs in the same sense as Windows logs. That makes them a bit more difficult to parse though, but it also allows them to be more flexible in handling corner cases that the log system designers didn't think about ahead of time.

I haven't worked with Linux kernel audit logs so I can't give any specifics, but typically your best bet will be to write a Perl script that parses through the logs and pulls out the info you're interested in.
0
 
LVL 11

Assisted Solution

by:kblack05
kblack05 earned 62 total points
ID: 18159792
Perhaps you should consider a logging interface such as Splunk, which can help you make MUCH more sense of your log files: http://www.splunk.com/
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question