Configure Log Rotation

Carolin Ganahl
2025-03-03T18:06:13Z

Currently, the logging files are saved in /tmp. Thus, in the case of no error,they accumulate over time and fill up the Pi's storage. In the case of a system crash of the pi, when they are important for debugging, they are deleted. Thus, /var/log shall be used instead and the daemon (rsyslogd) configured to only keep the last logs.