Nick Townsend
Dabbler
- Joined
- May 14, 2015
- Messages
- 17
I have been searching the web for ways to get persistent logging on my FreeNAS server. By default, the system logs are located under /etc/var/log which is in RAM.
I need persistent logging because my FreeNAS server is rebooting randomly at least once a week. Since the default logging is stored in RAM, there are no log files to view after the reboot.
I have tried the persistent-logging-script.sh, but it would crash my server every time I ran it. I also have read from the FreeNAS documentation guide that if you create a dataset under a zfs pool named "syslog" then reboot, then FreeNAS will create a log directory in that dataset that will hold all log files for persistent logging.
I tried this, but there was no directory created after reboot. Someone please tell me how I can get persistent logging so I can troubleshoot these random reboots.
I need persistent logging because my FreeNAS server is rebooting randomly at least once a week. Since the default logging is stored in RAM, there are no log files to view after the reboot.
I have tried the persistent-logging-script.sh, but it would crash my server every time I ran it. I also have read from the FreeNAS documentation guide that if you create a dataset under a zfs pool named "syslog" then reboot, then FreeNAS will create a log directory in that dataset that will hold all log files for persistent logging.
I tried this, but there was no directory created after reboot. Someone please tell me how I can get persistent logging so I can troubleshoot these random reboots.