no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Next revision
fuss:apparmor [2018/06/18 22:56] – created office
Line 1: Line 1:
 +====== Sending Messages to File ======
 +
 +Add an ''rsyslog'' configuration file at ''/etc/rsyslog.d/apparmor.conf'' containing the following:
 +<code>
 +# Log kernel generated apparmor log messages to file
 +:msg,contains,"apparmor" /var/log/apparmor.log
 +
 +# Uncomment the following to stop logging anything that matches the last rule.
 +# Doing this will stop logging kernel generated apparmor log messages to the file
 +# normally containing kern.* messages (eg, /var/log/kern.log)
 +& ~
 +</code>
 +
 +and then restart ''rsyslog''. The configuration will redirect all messages that match ''apparmor'' and send them to ''/var/log/apparmor.log''.
 +
 +Next, create a file at ''/etc/logrotate.d/apparmor'' with the following contents:
 +<code>
 +/var/log/apparmor.log {
 +    rotate 4
 +    weekly
 +    compress
 +    missingok
 +}
 +
 +</code>
 +
 +in order to make sure that ''/var/log/apparmor.log'' does not get too large and gets rotated weekly.
 +
  

fuss/apparmor.txt · Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.