1 |
On Sunday 05 Apr 2015 06:39:31 Alexander Kapshuk wrote: |
2 |
> On Sun, Apr 5, 2015 at 1:18 AM, Mick <michaelkintzios@×××××.com> wrote: |
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 |
> > > |
43 |
> > > su portage portage |
44 |
> > > missingok |
45 |
> > > nocreate |
46 |
> > > delaycompress |
47 |
> > > |
48 |
> > > } |
49 |
> > > |
50 |
> > > /etc/logrotate.conf:6,8 |
51 |
> > > # rotate log files weekly. |
52 |
> > > weekly |
53 |
> > > #daily |
54 |
> > > |
55 |
> > > What could be wrong here? Or am I misreading something? |
56 |
> > > |
57 |
> > > Thanks. |
58 |
> > |
59 |
> > Is your logrotate running regularly as expected? What do you get when |
60 |
> > |
61 |
> > from: |
62 |
> > grep logrotate /var/log/cron.log |
63 |
> > |
64 |
> > -- |
65 |
> > Regards, |
66 |
> > Mick |
67 |
> |
68 |
> Thanks for your response. |
69 |
> |
70 |
> I'm afraid I don't have the cron logging set up. I should probably go ahead |
71 |
> and do it, shouldn't I? |
72 |
> |
73 |
> grep logrotate /var/log/cron.log |
74 |
> grep: /var/log/cron.log: No such file or directory |
75 |
> |
76 |
> The cron daemon is running though. |
77 |
> |
78 |
> ps auxwww|grep '[c]ron' |
79 |
> root 2418 0.0 0.1 5464 1868 ? Ss 08:33 0:00 |
80 |
> /usr/sbin/crond |
81 |
> |
82 |
> Thanks. |
83 |
|
84 |
Ah! I must have set this up myself. In /etc/syslog-ng/syslog-ng.conf I have |
85 |
among other settings: |
86 |
|
87 |
destination cron { file("/var/log/cron.log"); }; |
88 |
filter f_cron { facility(cron); }; |
89 |
log { source(src); filter(f_cron); destination(cron); }; |
90 |
|
91 |
This is not necessary though. You can search /var/log/messages for logrotate. |
92 |
|
93 |
-- |
94 |
Regards, |
95 |
Mick |