Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] portage summary logs not rotated any more
Date: Sun, 05 Apr 2015 05:39:47
Message-Id: CAJ1xhMX2F99rKcKWB0BQERmfxiN62c2onc0iNXHyetd8Hn_W2Q@mail.gmail.com
In Reply to: Re: [gentoo-user] portage summary logs not rotated any more by Mick
1 On Sun, Apr 5, 2015 at 1:18 AM, Mick <michaelkintzios@×××××.com> wrote:
2
3 > On Saturday 04 Apr 2015 20:35:31 Alexander Kapshuk wrote:
4 > > My portage summary logs don't seem to be rotated any more.
5 > >
6 > > ls -lt `pwd`/summary.log*
7 > > -rw-rw-r-- 1 portage portage 96581 Apr 3 19:47
8 > > /var/log/portage/elog/summary.log
9 > > -rw-rw-r-- 1 portage portage 5927 Jan 10 07:50
10 > > /var/log/portage/elog/summary.log-20150112
11 > > -rw-rw-r-- 1 portage portage 2281 Jan 4 21:14
12 > > /var/log/portage/elog/summary.log-20150104.gz
13 > > -rw-rw-r-- 1 portage portage 565 Dec 26 20:53
14 > > /var/log/portage/elog/summary.log-20141228.gz
15 > > -rw-rw-r-- 1 portage portage 1842 Dec 22 17:52
16 > > /var/log/portage/elog/summary.log-20141222.gz
17 > >
18 > > grep Messages summary.log | sed '1h;$!d;x;G;q'
19 > >
20 > > >>> Messages generated by process 3399 on 2015-01-13 17:47:47 EET for
21 > >
22 > > package dev-python/reportlab-3.1.8-r2:
23 > > >>> Messages generated by process 4080 on 2015-04-03 19:47:54 EEST for
24 > >
25 > > package net-print/hplip-3.14.1:
26 > >
27 > > grep Messages summary.log-20150112 | sed '1h;$!d;x;G;q'
28 > >
29 > > >>> Messages generated by process 2637 on 2015-01-04 22:02:00 EET for
30 > >
31 > > package app-office/libreoffice-4.2.8.2:
32 > > >>> Messages generated by process 3483 on 2015-01-10 07:50:04 EET for
33 > >
34 > > package dev-libs/openssl-1.0.1k:
35 > >
36 > > cat /etc/logrotate.d/elog-save-summary
37 > > # Copyright 1999-2011 Gentoo Foundation
38 > > # Distributed under the terms of the GNU General Public License v2
39 > > # Rotate the log created by the save_summary elog module.
40 > >
41 > > /var/log/portage/elog/summary.log {
42 > > su portage portage
43 > > missingok
44 > > nocreate
45 > > delaycompress
46 > > }
47 > >
48 > > /etc/logrotate.conf:6,8
49 > > # rotate log files weekly.
50 > > weekly
51 > > #daily
52 > >
53 > > What could be wrong here? Or am I misreading something?
54 > >
55 > > Thanks.
56 >
57 > Is your logrotate running regularly as expected? What do you get when
58 > from:
59 >
60 > grep logrotate /var/log/cron.log
61 >
62 > --
63 > Regards,
64 > Mick
65 >
66
67 Thanks for your response.
68
69 I'm afraid I don't have the cron logging set up. I should probably go ahead
70 and do it, shouldn't I?
71
72 grep logrotate /var/log/cron.log
73 grep: /var/log/cron.log: No such file or directory
74
75 The cron daemon is running though.
76
77 ps auxwww|grep '[c]ron'
78 root 2418 0.0 0.1 5464 1868 ? Ss 08:33 0:00
79 /usr/sbin/crond
80
81 Thanks.

Replies

Subject Author
Re: [gentoo-user] portage summary logs not rotated any more Mick <michaelkintzios@×××××.com>