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

    Export All Logs

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 516 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.
    • P
      pfnewb2016
      last edited by

      I need to do a one time export of all logs, as far back as they exist. I have setup a SysLog server but so far it appears that I'm only receiving new logs.

      I can ssh in but I don't know how to copy the logs after that. I am looking for a step by step "how to copy logs for dummies".

      v2.4.4-p2

      Thank you.

      W 1 Reply Last reply Reply Quote 0
      • W
        WN1X @pfnewb2016
        last edited by

        @pfnewb2016 Use "scp" to copy the logs to another system.

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Yup connect with SCP (e.g. WinSCP) and copy everything from /var/log.

          1 Reply Last reply Reply Quote 0
          • P
            pfnewb2016
            last edited by

            WinSCP worked great, thank you both.

            I copied all of the logs from /var/log, however filter.log contains 3312 lines, less than 1 full day.

            Checking the log settings:

            • Log Size: Bytes (default). "Disk space currently used by log files is: 9.6M Remaining disk space for log files: 5.4G"

            • Local Logging: "Disable writing log files to the local disk" is not checked.

            • Uptime is 84 days.

            • Model: SG-1100, running v2.4.4-release-p2. It says it's on the latest version, which is a separate problem.

            Is this a settings issue, bug, old firmware issue or ?

            Thank you.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Back in 2.4.4 the default settings would have been to use circular logs with a size of 512k. Depending on how busy your firewall is that may only be 1 day.

              You can increase the log size for the firewall log. Or for all logs.

              P 1 Reply Last reply Reply Quote 0
              • P
                pfnewb2016 @stephenw10
                last edited by

                I understand, thank you for the details and fast reply.

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