The officially official Devuan Forum!

You are not logged in.

#1 2023-06-25 15:21:27

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

Logrotate on Daedalus

Got Daedalus installed on my main workstation in November last year. netinstall, encrypted, efi mode, openrc, Cinnamon as desktop.

Since then the syslog file has increased to about 60MByte. When opening the logviewer, I see all info from the time of installation being present. logrotate is installed, I see a script called rsyslog in /etc/logrotate.d that asks for a weekly rotation.

/var/log/syslog
/var/log/mail.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/cron.log
{
	rotate 4
	weekly
	missingok
	notifempty
	compress
	delaycompress
	sharedscripts
	postrotate
		/usr/lib/rsyslog/rsyslog-rotate
	endscript
}

In /var/log the boot and the dmesg are moved once a day. auth.log and user.log also aren't being rotated. What may be wrong here?

Edith: anacron isn't installed.

Last edited by rolfie (2023-06-25 17:07:11)

Offline

#2 2023-06-27 14:21:48

User479
Member
From: Central USA
Registered: 2021-11-07
Posts: 24  

Re: Logrotate on Daedalus

Do you at least have cron installed?  Do you have /etc/cron.daily/logrotate?

Offline

#3 2023-06-27 17:40:52

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

Re: Logrotate on Daedalus

Yes, cron is installed and working. I am using it for startup cron job @reboot. There is the logrotate entry in /etc/cron.daily.

Offline

#4 2023-06-27 18:58:34

Marjorie
Member
From: Teignmouth, UK
Registered: 2019-06-09
Posts: 219  

Re: Logrotate on Daedalus

There are some changes to how logging works in Bookworm mentioned in the release notes, see sections 5.17-5.19.

It's not clear how these changes propagate through to Daedalus when it's either a new install (as I surmise yours was originally) or if you upgrade from Chimaera.

https://www.debian.org/releases/bookwor … em-logging

Offline

#5 2023-06-27 20:13:28

User479
Member
From: Central USA
Registered: 2021-11-07
Posts: 24  

Re: Logrotate on Daedalus

You could try "logrotate -dv /etc/logrotate.conf" to see what it says about syslog.  I rotate that group monthly so my output is

rotating pattern: /var/log/syslog
/var/log/mail.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/cron.log
 monthly (12 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/syslog
  Now: 2023-06-27 15:08
  Last rotated at 2023-06-01 03:13
  log does not need rotating (log has been rotated at 2023-06-01 03:13, which is less than a month ago)
. . .

Offline

#6 2023-06-30 18:45:43

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

Re: Logrotate on Daedalus

Thanks, that did the job. Did run the command on Tuesday, can't remember what the output was (may be none?), too many things going on here. When checking today I saw that all logs referenced in the conf have new date stamps and are much smaller now.

Maybe I will add that to my cron jobs to be run on each first day of the month.

Offline

Board footer