Mailinglist Archive: opensuse (946 mails)

< Previous Next >
Re: [opensuse] logrotate
On 13/09/17 22:14, Greg Freemyer wrote:
On Wed, Sep 13, 2017 at 9:48 AM, Peter Suetterlin
<P.Suetterlin@xxxxxxxxxxxx> wrote:

Hi list,

looking through my disk usage I realized /var/log uses 2GB :o
and what do I see?

woodstock:/var/log # ls -lh zypper.log
-rw-r----- 1 root root 1.6G Sep 13 14:23 zypper.log

why isn't it rotated/compressed? Ah: this is now handled by systemd instead
of cron, and disabled by default :(

woodstock:/var/log # systemctl status logrotate
● logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static; vendor
preset: disabled)

Not sure if that is a sane choice for a TW system that typically has several
'zypper dup' per week. The 1.6GB is the logs from just one year...

I don't think its by design. Various bugs reported about it.

Here's mine from my 13.1 to 13.2 upgrade:

https://bugzilla.novell.com/show_bug.cgi?id=913421

I didn't look to see if there is a bug against Tumbleweed or not.

Greg


I'm confused. I have a fresh 42.2 installation which has systemd 228. If this was supposed to be enabled on an upgrade from 13.1 to 13.2, shouldn't all this be enabled by default on 42.2? I get the following:

systemctl list-timers
NEXT LEFT LAST PASSED Fri 2017-09-15 08:35:50 CEST 18h left Wed 2017-09-13 12:42:59 CEST 1 day 1h ago
Mon 2017-09-18 00:00:00 CEST 3 days left Mon 2017-09-11 00:00:01 CEST 3 days ago
2 timers listed.
Pass --all to see loaded but inactive timers, too.

systemctl enable logrotate.timer
Failed to execute operation: No such file or directory

systemctl status logrotate.service
● logrotate.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

I notice /var/log/journal/{string}/ has nearly 1GB of logs in it, going back as far as installation time.

gumb

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >