Log Files

Are the log files still under /var/log?

Everytime I check them they are always 0KB and have the current date as last modified.

I had a crash and was hoping to see what happened.

What type of log system do you have enabled?
By default DietPi logs into RAM, deletes it every hour and on reboot.

For more information, look here: https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/21

Good question… Guess I did not know that dietpi was set up like that by default. How can I change this so any major system issues or crashes it would save to /var/log?

I have a Pi 2 set up with plex and randomly it crashes and I can’t ssh or connect to plex through the browser. Since I can’t connect to the pi through SSH it must be something related to the system, maybe network… I’m not really sure.

Edit: Saw the link you posted. Thanks.

I noticed my memory shows I’ve used up almost the whole gig… but top doesn’t show that any programs that are taking up that much space. What would be taking up that much memory? Is it the logs?



As https://dietpi.com/forum/t/dietpi-software-details-for-all-installation-options/22/21 states, you can configure to save logs to /var/log the normal way.
Could you take a screenshot of ‘htop’? Thanks.

About the crashing part, it could also be your power supply. Could you try an other power supply?

Most of your RAM memory is cached. This doesn’t mean your low on memory. Cached memory will be cleared to make room for programs that require active memory.

Try running this before top to clear your memory cache:

free && sync && echo 3 > /proc/sys/vm/drop_caches && free

Also DietPi-Ramlog has a 20MB RAM limit:

df -h | grep '/var/log'

Also, disable any overclocking.