On Sunday 05 Apr 2015 06:39:31 Alexander Kapshuk wrote: > On Sun, Apr 5, 2015 at 1:18 AM, Mick <michaelkintz...@gmail.com> wrote: > > On Saturday 04 Apr 2015 20:35:31 Alexander Kapshuk wrote: > > > My portage summary logs don't seem to be rotated any more. > > > > > > ls -lt `pwd`/summary.log* > > > -rw-rw-r-- 1 portage portage 96581 Apr 3 19:47 > > > /var/log/portage/elog/summary.log > > > -rw-rw-r-- 1 portage portage 5927 Jan 10 07:50 > > > /var/log/portage/elog/summary.log-20150112 > > > -rw-rw-r-- 1 portage portage 2281 Jan 4 21:14 > > > /var/log/portage/elog/summary.log-20150104.gz > > > -rw-rw-r-- 1 portage portage 565 Dec 26 20:53 > > > /var/log/portage/elog/summary.log-20141228.gz > > > -rw-rw-r-- 1 portage portage 1842 Dec 22 17:52 > > > /var/log/portage/elog/summary.log-20141222.gz > > > > > > grep Messages summary.log | sed '1h;$!d;x;G;q' > > > > > > >>> Messages generated by process 3399 on 2015-01-13 17:47:47 EET for > > > > > > package dev-python/reportlab-3.1.8-r2: > > > >>> Messages generated by process 4080 on 2015-04-03 19:47:54 EEST for > > > > > > package net-print/hplip-3.14.1: > > > > > > grep Messages summary.log-20150112 | sed '1h;$!d;x;G;q' > > > > > > >>> Messages generated by process 2637 on 2015-01-04 22:02:00 EET for > > > > > > package app-office/libreoffice-4.2.8.2: > > > >>> Messages generated by process 3483 on 2015-01-10 07:50:04 EET for > > > > > > package dev-libs/openssl-1.0.1k: > > > > > > cat /etc/logrotate.d/elog-save-summary > > > # Copyright 1999-2011 Gentoo Foundation > > > # Distributed under the terms of the GNU General Public License v2 > > > # Rotate the log created by the save_summary elog module. > > > > > > /var/log/portage/elog/summary.log { > > > > > > su portage portage > > > missingok > > > nocreate > > > delaycompress > > > > > > } > > > > > > /etc/logrotate.conf:6,8 > > > # rotate log files weekly. > > > weekly > > > #daily > > > > > > What could be wrong here? Or am I misreading something? > > > > > > Thanks. > > > > Is your logrotate running regularly as expected? What do you get when > > > > from: > > grep logrotate /var/log/cron.log > > > > -- > > Regards, > > Mick > > Thanks for your response. > > I'm afraid I don't have the cron logging set up. I should probably go ahead > and do it, shouldn't I? > > grep logrotate /var/log/cron.log > grep: /var/log/cron.log: No such file or directory > > The cron daemon is running though. > > ps auxwww|grep '[c]ron' > root 2418 0.0 0.1 5464 1868 ? Ss 08:33 0:00 > /usr/sbin/crond > > Thanks.
Ah! I must have set this up myself. In /etc/syslog-ng/syslog-ng.conf I have among other settings: destination cron { file("/var/log/cron.log"); }; filter f_cron { facility(cron); }; log { source(src); filter(f_cron); destination(cron); }; This is not necessary though. You can search /var/log/messages for logrotate. -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.