Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Monitor firewall log in real time with ssh (SOLVED)

    Scheduled Pinned Locked Moved Firewalling
    7 Posts 4 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      whitekalu
      last edited by whitekalu

      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

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by

        Try clog rather than tail.

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 1
        • W
          whitekalu
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by Gertjan

            @whitekalu said in Monitor firewall log in real time with ssh:

            Too much kiddy question hope somebody will reply.
            Thank you

            What about the manual https://docs.netgate.com/pfsense/en/latest/monitoring/working-with-binary-circular-logs-clog.html ? ;)

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • W
              whitekalu
              last edited by

              Thanks Gertjan.
              I think the -f option is now working may be because we're dealing with binary circular logs.
              clog is working fine.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                If you want a friendlier (less detailed) view, you can also use this:

                clog -f /var/log/filter.log | filterparser.php

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 2
                • W
                  whitekalu
                  last edited by

                  Thankyou jimp
                  That was very good to eyes and much more friendlier.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.