Deprecation warning: This post is deprecated. Please find our new documentation at: https://dietpi.com/docs/software/log_system/
Log System Choices:
Various logging method choices from lightweight to full.
If you don't require log files, get a performance boost. If you need full system logging features, DietPi can do that too.

- logsystems.png (27.86 KiB) Viewed 137866 times
Log System choices can be changed at any time by running dietpi-software and selecting "Log System" from the menu.
DietPi-Ramlog #1 (default):
Ideal for users who do not require log files.
+ Mounts
/var/log to
RAM.
+ Increases overall system performance.
+ Increases the life of your SDcard by reducing filesystem IO (read/writes).
+ DietPi will automatically clear log files in
/var/log every hour (to free memory used by DietPi-Ramlog).
─ Log files are NOT saved to disk.
─ Rsyslog is not installed to save on resources. This may prevent some programs logging that rely on rsyslog. If required, it can be manually installed with
apt-get install rsyslog
DietPi-Ramlog #2:
Ideal for users who require the ability to keep log files, with the benefit of improved performance.
+ Mounts
/var/log to
RAM.
+ Increases overall system performance.
+ DietPi will automatically save/update log file data to disk every hour
/root/logfile_storage.
+ DietPi will then clear log files in
/var/log (to free memory used by DietPi-Ramlog).
─ Potential of losing upto 1 hour of log file data if power is interrupted.
─ Will increase SD write cycles on an hour basis, to save logs (however, significantly less so than a constant log writing system, eg: Full logging mode):
https://www.raspberrypi.org/forums/view ... 58#p123670
─ Rsyslog is not installed to save on resources. This may prevent some programs logging that rely on rsyslog. If required, it can be manually installed with
apt-get install rsyslog
Full (Rsyslog & Logrotate):
For users who require the maximum logging possible, with no interference from DietPi.
─ Mounts
/var/log to
DISK.
─ Decreases overall system performance
─ Reduces the life of your SDcard due to increased filesystem IO (read/write).
+ Comes with both
rsyslog and
logrotate installed as standard.
+ The "standard" of Linux logging systems, essential if your log file data is critical to system operation and/or maintenance.
>>
Return to DietPi-Software List