Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2002 15:52:31 -0500
From:      "alexus" <ml@db.nexgen.com>
To:        "Michel Weenink" <Michel@Weenink.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Re[2]: newsyslog/rotatelog
Message-ID:  <002101c1c3be$80a42c50$0d00a8c0@alexus>
References:  <000701c1c30d$b50ec600$faa0b542@noc> <3C832FD4.D7B631A1@cs.umu.se> <001101c1c3b2$0782eb60$0d00a8c0@alexus> <3C83CD26.F36026B2@cs.umu.se> <000901c1c3b6$f1011a10$0d00a8c0@alexus> <8834995732.20020304211718@Weenink.com>

next in thread | previous in thread | raw e-mail | index | archive | help
logs are too big.. can't allow apache to be down while taring logs
that's why rotatelog/cronolog is good choice, i already figure out how to
make cronolog to have symlink to current file (apparantly cronolog can do
that:) so the only one thing i'm missin is compression..

----- Original Message -----
From: "Michel Weenink" <Michel@Weenink.com>
To: "alexus" <ml@db.nexgen.com>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Monday, March 04, 2002 3:17 PM
Subject: Re[2]: newsyslog/rotatelog


> Hello alexus,
>
> What if you use some sort of monthly cron job that runs a shellscript
> a little better than:
>
>   apachectl stop
>   tar -zcvf /backup/accesslog`date`.tgz /path/to/httpd-access.log
>   cp dev/null /path/to/httpd-access.log
>   apachectl start
>
>   Would that help?
>
>   Kind regards,
>
>   Michel
>
>
> Monday, March 04, 2002, 8:58:23 PM, you wrote:
>
> a> hell no, i'm not going back to rotatelog:)) i'll stick with cronolog, i
> a> think it can make same file i just can't figure out how to compress old
> a> logs.. other then that i'm good to go..
>
> a> ----- Original Message -----
> a> From: "Paul Everlund" <tdv94ped@cs.umu.se>
> a> To: "alexus" <ml@db.nexgen.com>
> a> Cc: <freebsd-questions@FreeBSD.ORG>
> a> Sent: Monday, March 04, 2002 2:38 PM
> a> Subject: Re: newsyslog/rotatelog
>
>
> >> alexus wrote:
> >> >
> >> > can it compress old logs? and keep same file name of logs? so i
> >> > can put webalizer in crontab and point in one directory? and same
> >> > file which will never change? just like newsyslog does, old files
> >> > renames and compresses and new file still there under same file-
> >> > name.
> >>
> >> I guess it can't. Cronolog just organizes the log-files in a neat
> >> way, with human readable dates. I guess you have read the web-page
> >> and so you know it can't do all the things you are asking for. :-)
> >> The only other thing I can come up with is to use rotatelogs and
> >> write your own script for handling the compression, renaming and
> >> so on, and then put that into crontab. :-)
> >>
> >> Best regards,
> >> Paul
> >>
>
>
> a> To Unsubscribe: send mail to majordomo@FreeBSD.org
> a> with "unsubscribe freebsd-questions" in the body of the message
>
>
> --
> Michel Weenink - Phone: +31 24 3607 665 - ICQ: 21018820
> E-mail : Michel@Weenink.com - WWW: www.weenink.com
>
> I drink therefore I am twice
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002101c1c3be$80a42c50$0d00a8c0>