Where can the pfsense log files be located and viewed?
I have searched the documentation and it doesn't indicate the log files location for the various components of pfsense.
Where can the pfsense log files be located and viewed?
I have searched the documentation and it doesn't indicate the log files location for the various components of pfsense.
In the nanobsd 2.0.3 release at least, they are found by going to:
cd /var/log
(not plural logs ;)clog system.log | less
system.log
with name of any log in the directory.| less
pipes the output to less so that you can scroll up and down through the logs using page up/down keys. Pressq
to exit.exit
at the command prompt.pfSense stores its log files in the
/var/log
directory.The logs are not stored in the standard text-based format. Instead they are stored in a 'circular logging' format. Use the
clog
tool to view the logs. You can use it similarly to thetail
command. i.e.clog -f /var/log/system.log
will display the entire log and then continue to 'follow' it.Simpler way of looking at logs - log into the pfsense web console and Select 'Edit File' within 'Diagnostics'. Here you can browse the directory
/var/log/system.log
.Example:
As of pfSense 2.5+, logging has changed. There is no longer a
clog
utility; they're all just plain-text files., though they're still all located at/var/log
. It appears that all existing/prior logs are deleted during the upgrade; at least I couldn't find the old logs after the upgrade (and this behavior doesn't seem to be referenced in the ticket).