Monitor firewall log in real time with ssh (SOLVED)
I was trying to monitor firewall in real time using ssh.
tail -f /var/log/filter.log
but it's not moving.
Did i miss-typed the command or i'm looking at the wrong file.
Try clog rather than tail.
clog -f /var/log/filter.log worked great.
tail -f is not working, is it because pfsense is based on freeBSD.
If so why tail /var/log/filter.log works without the -f option ? is tail customized for freeBSD ? Too much kiddy question hope somebody will reply.
Gertjan last edited by Gertjan
Too much kiddy question hope somebody will reply.
What about the manual https://docs.netgate.com/pfsense/en/latest/monitoring/working-with-binary-circular-logs-clog.html ? ;)
I think the -f option is now working may be because we're dealing with binary circular logs.
clog is working fine.
If you want a friendlier (less detailed) view, you can also use this:
clog -f /var/log/filter.log | filterparser.php
That was very good to eyes and much more friendlier.