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

    How do I export logs from CLI?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 541 Views 2 Watching
    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.
    • S Offline
      spookymonkey
      last edited by

      I understand that you can manually set the number of log records that show up in the GUI, but I set it to 2000 and it hangs my browser for a bit which is annoying. I want to just dump the entire log so that I can run queries locally.

      I SSH'ed into the pfsense box using an admin user I setup from the GUI interface (made sure the user is added to the admin group) and the tried to view the logs with:

      vi /var/log/system.log

      but it returned permission denied. I noticed if I tried doing su command is returns 'su: sorry' , also sudo command does not exist.

      So how can I get permission to view/copy the /var/log/system.log file from CLI?

      Thanks!

      V 1 Reply Last reply Reply Quote 0
      • V Offline
        viragomann @spookymonkey
        last edited by

        @spookymonkey
        Use root and the password you have set for admin.
        You can also download the logs using SCP.

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          spookymonkey @viragomann
          last edited by

          @viragomann Ah, okay got it. I thought I could do it with the admin user I setup through the GUI but I had to SSH into the machine using root@192... all good now, thanks!

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