Skip to content
Discussion options

You must be logged in to vote

You can indeed just create a symlink to have the actual directory outside of the tmpfs /var/log. The cleanup script does not follow symlinks. This is how the file list for the cleanup script is obtained:

find /var/log -type f

*.db* files are skipped as well.

If /var/log/syslog and /var/log/user.log exist but are not needed, uninstall the syslog daemon you use, like probably rsyslog?

sudo apt autopurge rsyslog

If some other package depends on that package, maybe it does not require the service to run instead:

sudo systemctl disable --now rsyslog

systemd by default logs to systemd-journald => journalctl which is kept in RAM. It splits and sends logs additionally to other installed syslog da…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@MichaIng
Comment options

Answer selected by jwgn
@jwgn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants