Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114121 - logrotate only rotates selective
Summary: logrotate only rotates selective
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 02:47 UTC by qeldroma
Modified: 2005-12-01 03:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qeldroma 2005-12-01 02:47:05 UTC
It's very strange:

When logrotate runs, it rotates some, but not all logs under /var/log.
Running it with "--debug" reveals no errors?!

Kind regards, Qeldroma

Reproducible: Always
Steps to Reproduce:
1.Run "logrotate -d /etc/logrotate.conf"




================ logrotate.conf ===================================
# cat /etc/logrotate.conf
# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/files/logrotate.conf,v
1.2 2004/07/18 01:58:24 dragonheart Exp $
#
# Logrotate default configuration file for Gentoo Linux
#
# See "man logrotate" for details

# rotate log files weekly
#weekly
daily

# keep 4 weeks worth of backlogs
rotate 13

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages can drop log rotation information into this directory
include /etc/logrotate.d

notifempty
nomail
noolddir

# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.

================ emerge info ===================================

# emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-hardened-r14 i686)
=================================================================
System uname: 2.6.11-hardened-r14 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 28 2005, 16:30:53)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://mirror.switch.ch/mirror/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG=""
LC_ALL="de_DE"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="authdaemond berkdb bzip2 crypt gpm hardened mailwrapper mysql ncurses nls
pam pam-mysql pcre perl python readline sasl skey ssl ucs2 unicode userlocales
x86 linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-01 02:55:59 UTC
So add entries for things you need to rotate to /etc/logrotate.d
Comment 2 qeldroma 2005-12-01 03:04:04 UTC
(In reply to comment #1)
> So add entries for things you need to rotate to /etc/logrotate.d
> 

Well, and where do i know that from?
In every other distro, the rotating is done simply on everything in /var/log, OR
it is intelligent enough to read out the loggers configurations...

So take it as suggestion then. Perhaps add a kind of fallback-script in future
to /etc/logrotate.d?

And where is the docu for that?

Kind regards, Florian
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-12-01 03:25:51 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > So add entries for things you need to rotate to /etc/logrotate.d

> Well, and where do i know that from?
> In every other distro, the rotating is done simply on everything in /var/log, OR
> it is intelligent enough to read out the loggers configurations...

man logrotate

> Perhaps add a kind of fallback-script in future
> to /etc/logrotate.d?
> 
> And where is the docu for that?

man logrotate
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=9#doc_chap2
http://www.gentoo.org/doc/en/security/security-handbook.xml?part=1&chap=3

Not possible to add a fallback script, various applications creating logs
require different approach for log rotation - see some files in /etc/logrotate.d
that we install for various apps. 

Feel free to file a new bug if you think that a particular ebuild that creates
logs should install logrotate script by default, this bug is however invalid.