[SOLVED] Nginx log deleted automatically

By default DietPi uses RAMlog, to reduce too much writes to a SD card. So /var/log is cleared every hour.
If you want persistent logs you can change the logging behaviour with dietpi-software
https://dietpi.com/docs/software/log_system/#dietpi-ramlog
Or you change the location of your nginx logs to another then /var/log.

3 Likes