Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] portage summary logs not rotated any more
Date: Sat, 04 Apr 2015 22:18:55
Message-Id: 201504042318.42865.michaelkintzios@gmail.com
In Reply to: [gentoo-user] portage summary logs not rotated any more by Alexander Kapshuk
1 On Saturday 04 Apr 2015 20:35:31 Alexander Kapshuk wrote:
2 > My portage summary logs don't seem to be rotated any more.
3 >
4 > ls -lt `pwd`/summary.log*
5 > -rw-rw-r-- 1 portage portage 96581 Apr 3 19:47
6 > /var/log/portage/elog/summary.log
7 > -rw-rw-r-- 1 portage portage 5927 Jan 10 07:50
8 > /var/log/portage/elog/summary.log-20150112
9 > -rw-rw-r-- 1 portage portage 2281 Jan 4 21:14
10 > /var/log/portage/elog/summary.log-20150104.gz
11 > -rw-rw-r-- 1 portage portage 565 Dec 26 20:53
12 > /var/log/portage/elog/summary.log-20141228.gz
13 > -rw-rw-r-- 1 portage portage 1842 Dec 22 17:52
14 > /var/log/portage/elog/summary.log-20141222.gz
15 >
16 > grep Messages summary.log | sed '1h;$!d;x;G;q'
17 >
18 > >>> Messages generated by process 3399 on 2015-01-13 17:47:47 EET for
19 >
20 > package dev-python/reportlab-3.1.8-r2:
21 > >>> Messages generated by process 4080 on 2015-04-03 19:47:54 EEST for
22 >
23 > package net-print/hplip-3.14.1:
24 >
25 > grep Messages summary.log-20150112 | sed '1h;$!d;x;G;q'
26 >
27 > >>> Messages generated by process 2637 on 2015-01-04 22:02:00 EET for
28 >
29 > package app-office/libreoffice-4.2.8.2:
30 > >>> Messages generated by process 3483 on 2015-01-10 07:50:04 EET for
31 >
32 > package dev-libs/openssl-1.0.1k:
33 >
34 > cat /etc/logrotate.d/elog-save-summary
35 > # Copyright 1999-2011 Gentoo Foundation
36 > # Distributed under the terms of the GNU General Public License v2
37 > # Rotate the log created by the save_summary elog module.
38 >
39 > /var/log/portage/elog/summary.log {
40 > su portage portage
41 > missingok
42 > nocreate
43 > delaycompress
44 > }
45 >
46 > /etc/logrotate.conf:6,8
47 > # rotate log files weekly.
48 > weekly
49 > #daily
50 >
51 > What could be wrong here? Or am I misreading something?
52 >
53 > Thanks.
54
55 Is your logrotate running regularly as expected? What do you get when from:
56
57 grep logrotate /var/log/cron.log
58
59 --
60 Regards,
61 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] portage summary logs not rotated any more Alexander Kapshuk <alexander.kapshuk@×××××.com>