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

    Odd logging problem

    General pfSense Questions
    2
    4
    1.2k
    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.
    • D
      damucksta
      last edited by

      Hi

      Sorry if this is a donut question: following a restart, logging appears to have stopped completely. Some logs seem to end with pages of '^@' characters, and other logs are just silent. I've tried deleting and recreating the log files, restarting the box, but nothing. Obviously, no logging makes finding a problem difficult.

      Any ideas? Thanks.

      (using 2.0.3)

      1 Reply Last reply Reply Quote 0
      • D
        damucksta
        last edited by

        Still trawling without success, but noticed 'clog exited on signal 11 (core dumped)' appears sporadically on console on local monitor on pfsense box.

        Not sure if this is of any help

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

          How did you "recreate" log logs?

          They are supposed to have lots of null characters, they are binary circular log files, the are not plain text logs.

          They are read with the clog command, such as "clog /var/log/system.log"

          Usually that clog crash means that the logs were not created with a clog format.

          Use the "clear log" button on a log tab to clean and re-create the log file properly.

          Click Save on the Log Settings tab to restart the syslog process which usually will get logs going again.

          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 0
          • D
            damucksta
            last edited by

            @jimp:

            How did you "recreate" log logs?

            They are supposed to have lots of null characters, they are binary circular log files, the are not plain text logs.

            They are read with the clog command, such as "clog /var/log/system.log"

            Usually that clog crash means that the logs were not created with a clog format.

            Use the "clear log" button on a log tab to clean and re-create the log file properly.

            Click Save on the Log Settings tab to restart the syslog process which usually will get logs going again.

            Thanks very much. I'd actually worked this out at stupid o clock this morning - i.e. that i was being an idiot and assuming the logs were plain text, not binary. On the upside, I now know about clog and a lot more about pfsense, so 10 hours of banging my head against a brick wall wasn't entirely wasted!

            Thanks again - the key point to other users if they are stupid like me, is to not manually kill and recreate the log file to clear it! Use the pfsense gui and manually check it's logging using 'clog [filename]' rather than vi.

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