When SELinux logs an event to the audit log on my CentOS 6 system, it's logging it in epoch time which makes for a real hassle when trying to troubleshoot. Is there any way to make it log these events using human readable date formats? I've looked through the conf files and googled around but can't seem to find anything on it.
I don't think there are any configuration options, but I found a script that will prepend human readable times:
Source: http://blog.commandlinekungfu.com/2010/08/episode-106-epoch-fail.html
You can use
ausearch
with-i
option to interpret results to be human readable:Perl code:
You can use sed and date commands to convert datetime then to format it.
the same using perl: