'Log File Viewer' keeping too many logs - how to configure?
Hi all,
I'm asking for someone else whose computer has slowed down with hundreds of files in 'Log File Viewer'.
I'm not sure how to help clear up the excessive number of logs, nor on how to configure it, so it doesn't save everything. My own 'Log File Viewer' doesn't have this problem, but I can't explain why the difference.
Hope my question makes sense, I am a bit at loss even on how to ask for help with this.
As usual, many thanks for any help.
There is guide to log files https://forums.debian.net/viewtopic.php?t=160774
Thank you for the link, grosbidepoilu!
I was hoping for a user friendly gui alternative, so I could also help non-tech users to help themselves.
I'm looking into it -- would the option of archiving, as well as restricting to 1GB, be a good way to go? I feel responsible, but am a non-tech user either.
Debian Administrator said "I restrict journal logs to 200M as I've never found the need for journal logs past the previous boot."
SystemMaxUse=200M
https://forums.debian.net/viewtopic.php?p=809670#p809670
Yes, I saw that and made me think.
Just in case, 1GB could be very helpful, as sometimes the previous couple of days can become important.
Very interesting to learn about it, thank you again for adding that link!
Reading what is repeated in the log is a good idea. It may be be a problem worth solving (not only to have the logs take less space).
Yes, I agree Magic Banana! Any suggestion to simplify the process (as in 1,2,3 :) would be greatly appreciated
Just skim the (recent) log and see if some lines are repeated over and over. It is probably the case. If you do not understand them, you can copy them in reply to this post.
Oh, I see what you mean. I understand, but that is not the problem.
The problem is the amount of days, weeks, even months of logs that have added up to a point that it takes a looooooong while for Log File Viewer to load.
It's very unusual, at least in my experience. In my computer, Log File Viewer opens instantly, as it has few days of files being loaded.
OK. To only keep the last GB of log, execute in a terminal:
$ sudo journalctl --vacuum-size=1G
Instead of a size, you can specify a time with --vacuum-time.