Is there a way I can easily redirect the entries for UFW to their own log file at /var/log/ufw instead of filling up /var/log/syslog as it's becoming tricky to find solutions to problems with all this UFW stuff flying past me?
|
In Ubuntu 15.10 and Debian Jessie there is a file /etc/rsyslog.d/20-ufw.conf. It contains at the bottom |
|||||||||
|
|
I'm running Ubuntu 14.04 as well. In my
What I've done is delete that file, and at the top of
Restart rsyslog with |
|||||||||
|
|
ufw uses rsyslog for logging to To change the log file, edit
This will log all data that contains "UFW" to |
|||||||||||||||||||||
|
|
On 16.04 just comment out the last line in this file so that it reads
and restart rsyslog
from now on, ufw logs will be in /var/log/ufw.log and not anymore in /var/log/syslog |
|||
|
|