So that is my question. I googled it but nothing came. I see that the logs I have only covers 24 hours (if the time is not wrong, because it resets on every boot)
Asked
Active
Viewed 5,223 times
4
-
In Ubuntu it's usually 30 days, not sure about "Linux systems" in general. Other distros may have different preferences. – mikewhatever Apr 30 '17 at 18:45
1 Answers
4
Logs are controlled by logrotate
. It keeps a configurable number of *.log.1
, *.log.2.gz
, ... files (compressing old ones).
See man logrotate
, /etc/cron.daily/logrotate
and /etc/logrotate.conf
.
Reading logs can most easily be done with journalctl
- see man journalctl
, and this article

waltinator
- 36,399