PaulDotCom mailing list archives

Sudo Report


From: chris.bentley at sky.com (Chris Bentley)
Date: Wed, 17 Jun 2009 15:52:00 +0100

Hi All,
I need a script to check a weeks work of sudo logs in /var/adm/syslog.dated
via a loop, this directory contains directories by date i.e Day-Month-Time
Example
10-Jun-10:00
11-Jun-10:00
12-Jun-10:00
13-Jun-10:00
14-Jun-10:00
15-Jun-10:00
16-Jun-10:00


At the moment I'm individually going into each directory and checking the
logs and pulling out the following

awk '{print$4,",",$6,","$14}' sudo.log | sort | uniq
If anyone can direct me on who to recursively run through the directories
and pull out the data.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pauldotcom.com/pipermail/pauldotcom/attachments/20090617/ffd1b03d/attachment.htm 


Current thread: