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

    Exporting logs to file

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 7.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.
    • D Offline
      detox
      last edited by

      I am reading that the only way to view logs is with clog command due to architecture of log file.
      Can anyone tell me if there is  a way to export to txt or another readable file?  I'd like to send them to myself via email for review, or just copy them to external drive for reviewing later.

      Thanks for any input

      1 Reply Last reply Reply Quote 0
      • K Offline
        kpa
        last edited by

        Set up key based authentication for SSH so you don't have to type passwords all the time. Then you can simply do this on a client machine:

        
        ssh root@pfsense.mylan clog /var/log/system.log >firewall-system.log.txt
        
        
        1 Reply Last reply Reply Quote 0
        • D Offline
          detox
          last edited by

          kpa -

          Thanks so much!

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