Monitor firewall log in real time with ssh (SOLVED)
-
Hello Everyone.
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.
Thanks -
Try clog rather than tail.
-
Thanks NogBadTheBad
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.
Thank you -
@whitekalu said in Monitor firewall log in real time with ssh:
Too much kiddy question hope somebody will reply.
Thank youWhat about the manual https://docs.netgate.com/pfsense/en/latest/monitoring/working-with-binary-circular-logs-clog.html ? ;)
-
Thanks Gertjan.
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
-
Thankyou jimp
That was very good to eyes and much more friendlier.