How can I redirect audit messages from dmesg?

0
5
Asked By CuriousCat42 On

I'm looking for a way to get only the 'audit' messages from dmesg since it's become pretty lengthy. I'd love to keep my logs more organized and would prefer any simple commands to achieve this. I'd appreciate straightforward advice without any mockery, please!

2 Answers

Answered By TechSavvyGal88 On

I tried that, and it worked for me! Just a heads up—Firefox might still be generating log entries even if you've excluded user processes from your audit rules. But as long as it doesn’t clutter your system messages, I think you’ll be fine!

Answered By UserFriendly197 On

You should be able to log audit messages automatically to `/var/log/audit/audit.log`. Check out `auditd.conf(5)` for options on changing that path if needed. That way, you can separate your audit logs from the dmesg output.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.