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

    Change log location

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 679 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.
    • A
      alexssi
      last edited by

      Hi everybody  :)

      I would like to change the default location of logs (/var/log) to an SSD (I need place to save more entries) for which I have created a auto-mount point. I tried to edit the file syslog.conf but It is reset each time I restart the hardware.

      Have you ever done this before?

      Thx

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        The recommended practice would be to put that SSD into a log server and ship the logs to it over the network.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • A
          alexssi
          last edited by

          @Derelict:

          The recommended practice would be to put that SSD into a log server and ship the logs to it over the network.

          There's no other way?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Use of syslog has been long standing best practice when you need long term storage of logs from pretty much any sort of device..

            What good is the logs in your SSD, that is in the device when the device shits the bed or the disk shits the bed and you loose your logs..  If the logs are so important that you want them and lots of them then send them to your syslog server, or multiples of them.  All of which are more likely to have redundancy and backup of the logs, etc.

            So yes the correct solution to the question - I need lots of LOGS.. Well then send them to your syslog server(s) that have lots of space ;)

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

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