Differences

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

Link to this comparison view

fuss:apparmor [2018/06/18 23:56] (current)
office created
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: 2018/06/18 23:56 by office

Access website using Tor Access website using i2p


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