Hello,
I've just wrote a simple sed script for conversion of audit.log to html counterpart, because the audit.log file over web is really hard to read without highlighting by "avc: denied" substring and corresponding timestamp group.
http://people.redhat.com/jkubin/selinux/audit2html
$ audit2html < /var/log/audit/audit.log > audit.log.html
http://people.redhat.com/jkubin/selinux/audit.log.html
Suggestions and comments are welcomed, thank you for your feedback.
Regards, Josef Kubin
That could be really useful in command line.
Josef Kubin wrote:
Hello,
I've just wrote a simple sed script for conversion of audit.log to html counterpart, because the audit.log file over web is really hard to read without highlighting by "avc: denied" substring and corresponding timestamp group.
http://people.redhat.com/jkubin/selinux/audit2html
$ audit2html < /var/log/audit/audit.log > audit.log.html
http://people.redhat.com/jkubin/selinux/audit.log.html
Suggestions and comments are welcomed, thank you for your feedback.
Regards, Josef Kubin
-- fedora-selinux-list mailing list fedora-selinux-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-selinux-list
Josef Kubin wrote:
Hello,
I've just wrote a simple sed script for conversion of audit.log to html counterpart, because the audit.log file over web is really hard to read without highlighting by "avc: denied" substring and corresponding timestamp group.
http://people.redhat.com/jkubin/selinux/audit2html
$ audit2html < /var/log/audit/audit.log > audit.log.html
http://people.redhat.com/jkubin/selinux/audit.log.html
Suggestions and comments are welcomed, thank you for your feedback.
Thank you for sharing this Josef, this looks interesting and useful, but I have a couple of questions, at least based on the example you provided. The grouping appears to be wrong. Some items in a group share a common timestamp, others do not and are a mix of other audit events. Events must share a common second, millisecond, and serial number (and host when present). I looked at the sed script to see how this was happening but complex sed syntax is too cryptic to be readable :-( Also, have you considered using the audit parsing library (auparse) for this task? It is designed to make parsing audit data easy and robust (and I dare say more readable and maintainable than sed :-)
selinux@lists.fedoraproject.org