Change log location



  • 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


  • LAYER 8 Netgate

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



  • @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?


  • LAYER 8 Global Moderator

    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 ;)


Log in to reply