public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] logrotate not working
@ 2007-09-25 10:06 Arnau Bria
  2007-09-25 11:36 ` Neil Bothwick
  0 siblings, 1 reply; 3+ messages in thread
From: Arnau Bria @ 2007-09-25 10:06 UTC (permalink / raw
  To: gentoo-user

Hi,

I have this in my logroate.d/apache
# Apache2 logrotate snipet for Gentoo Linux
# Contributes by Chuck Short
#
/var/log/apache2/*log {
 daily
  missingok
  notifempty
  size 5M
  sharedscripts
  postrotate
  /etc/init.d/apache2 reload > /dev/null 2>&1 || true
  endscript
}

And my logs are:

# ls -lsah blog_log_access_common
 20M -rw-r--r-- 1 root   root    20M sep 25 12:04 blog_log_access_common
196K -rw-r--r-- 1 apache apache 190K feb 18  2007 blog_log_access_common.10.gz
152K -rw-r--r-- 1 apache apache 147K feb 16  2007 blog_log_access_common.11.gz
128K -rw-r--r-- 1 apache apache 122K feb 13  2007 blog_log_access_common.12.gz
236K -rw-r--r-- 1 apache apache 232K feb 10  2007 blog_log_access_common.13.gz
208K -rw-r--r-- 1 apache apache 203K feb  3  2007 blog_log_access_common.14.gz
188K -rw-r--r-- 1 apache apache 182K ene 30  2007 blog_log_access_common.15.gz
168K -rw-r--r-- 1 apache apache 163K mar 11  2007 blog_log_access_common.1.gz
196K -rw-r--r-- 1 apache apache 190K mar  9  2007 blog_log_access_common.2.gz
160K -rw-r--r-- 1 apache apache 156K mar  7  2007 blog_log_access_common.3.gz
164K -rw-r--r-- 1 apache apache 159K mar  5  2007 blog_log_access_common.4.gz
252K -rw-r--r-- 1 apache apache 245K mar  3  2007 blog_log_access_common.5.gz
152K -rw-r--r-- 1 apache apache 148K mar  1  2007 blog_log_access_common.6.gz
172K -rw-r--r-- 1 apache apache 166K feb 26  2007 blog_log_access_common.7.gz
168K -rw-r--r-- 1 apache apache 162K feb 23  2007 blog_log_access_common.8.gz
208K -rw-r--r-- 1 apache apache 201K feb 21  2007 blog_log_access_common.9.gz


I run it:

afrodita apache2 #  /usr/sbin/logrotate /etc/logrotate.conf
afrodita apache2 # 

And again:
 20M -rw-r--r-- 1 root   root    20M sep 25 12:04 blog_log_access_common
196K -rw-r--r-- 1 apache apache 190K feb 18  2007 blog_log_access_common.10.gz
152K -rw-r--r-- 1 apache apache 147K feb 16  2007 blog_log_access_common.11.gz
128K -rw-r--r-- 1 apache apache 122K feb 13  2007 blog_log_access_common.12.gz
236K -rw-r--r-- 1 apache apache 232K feb 10  2007 blog_log_access_common.13.gz
208K -rw-r--r-- 1 apache apache 203K feb  3  2007 blog_log_access_common.14.gz
188K -rw-r--r-- 1 apache apache 182K ene 30  2007 blog_log_access_common.15.gz
168K -rw-r--r-- 1 apache apache 163K mar 11  2007 blog_log_access_common.1.gz
196K -rw-r--r-- 1 apache apache 190K mar  9  2007 blog_log_access_common.2.gz
160K -rw-r--r-- 1 apache apache 156K mar  7  2007 blog_log_access_common.3.gz
164K -rw-r--r-- 1 apache apache 159K mar  5  2007 blog_log_access_common.4.gz
252K -rw-r--r-- 1 apache apache 245K mar  3  2007 blog_log_access_common.5.gz
152K -rw-r--r-- 1 apache apache 148K mar  1  2007 blog_log_access_common.6.gz
172K -rw-r--r-- 1 apache apache 166K feb 26  2007 blog_log_access_common.7.gz
168K -rw-r--r-- 1 apache apache 162K feb 23  2007 blog_log_access_common.8.gz
208K -rw-r--r-- 1 apache apache 201K feb 21  2007 blog_log_access_common.9.gz

And logroate.conf:
 # cat /etc/logrotate.conf |grep .|grep -v "^#"
weekly
rotate 4
create
compress
include /etc/logrotate.d
notifempty
nomail
noolddir
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

# eix -c logrotate
[I] app-admin/logrotate (3.7.2@12/03/07): Rotates, compresses, and mails system logs

Any clue on what's happening?¿
TIA

-- 
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] logrotate not working
  2007-09-25 10:06 [gentoo-user] logrotate not working Arnau Bria
@ 2007-09-25 11:36 ` Neil Bothwick
  2007-09-25 14:15   ` Arnau Bria
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Bothwick @ 2007-09-25 11:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

On Tue, 25 Sep 2007 12:06:09 +0200, Arnau Bria wrote:

> I have this in my logroate.d/apache
> # Apache2 logrotate snipet for Gentoo Linux
> # Contributes by Chuck Short
> #
> /var/log/apache2/*log {
>  daily
>   missingok
>   notifempty
>   size 5M
>   sharedscripts
>   postrotate
>   /etc/init.d/apache2 reload > /dev/null 2>&1 || true
>   endscript
> }
> 
> And my logs are:
> 
> # ls -lsah blog_log_access_common
>  20M -rw-r--r-- 1 root   root    20M sep 25 12:04 blog_log_access_common

blog_log_access_common does not match the *log pattern in the config file.


-- 
Neil Bothwick

... ebius tagline. This is a moebius tagline. This is a mo ...

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] logrotate not working
  2007-09-25 11:36 ` Neil Bothwick
@ 2007-09-25 14:15   ` Arnau Bria
  0 siblings, 0 replies; 3+ messages in thread
From: Arnau Bria @ 2007-09-25 14:15 UTC (permalink / raw
  To: gentoo-user

On Tue, 25 Sep 2007 12:36:57 +0100
Neil Bothwick wrote:

> On Tue, 25 Sep 2007 12:06:09 +0200, Arnau Bria wrote:
> 
[...]
> blog_log_access_common does not match the *log pattern in the config
> file.
You're completely right...

apache2/access_fotos.emergetux.net_log       apache2/blog_log_access_common              apache2/ssl_access_log
apache2/access_log                           apache2/error_fotos.emergetux.net_log       apache2/ssl_error_log
apache2/access_phpmyadmin.emergetux.net_log  apache2/error_log                           apache2/ssl_request_log
apache2/blog_error_log                       apache2/error_phpmyadmin.emergetux.net_log

that's just the only log not ended in log...

Thanks and sorry for spamming!

-- 
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-25 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-25 10:06 [gentoo-user] logrotate not working Arnau Bria
2007-09-25 11:36 ` Neil Bothwick
2007-09-25 14:15   ` Arnau Bria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox