UFW is not logging how do I troubleshoot?
I have set logging to high.
I am not seeing any log messages.
I do see the empty ufw.log file.
No messages in dmesg
The log files are in:
/var/log/
To get a list of UFW related logs run the following at the command line:
ls /var/log/ufw*
Your results should appear like this:
~$ ls /var/log/ufw*
/var/log/ufw.log /var/log/ufw.log.2.gz /var/log/ufw.log.4.gz
/var/log/ufw.log.1 /var/log/ufw.log.3.gz
If you do not have logs there you may want to double check the status and settings for UFW.
sudo ufw status verbose
You should get a result like this:
~$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip
If logging is off then you need to turn it on by running the following command:
sudo ufw logging low
If you do not have any log files then you can check to see if rsyslogd is running by typing:
sudo service rsyslog status
You should get a result as follows:
~$ sudo service rsyslog status
rsyslog start/running, process 991
If it does not show that it is running you can try to start the service:
sudo service rsyslog restart
last time i checked the log file for ufw it was in the
/var/log/ufw.log
folder, with a lot of other files