From owner-freebsd-questions Mon Mar 4 12:52:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from db.nexgen.com (db.nexgen.com [66.92.98.149]) by hub.freebsd.org (Postfix) with SMTP id AE7F437B405 for ; Mon, 4 Mar 2002 12:52:35 -0800 (PST) Received: (qmail 91857 invoked from network); 4 Mar 2002 20:54:20 -0000 Received: from oxyetb.com (HELO alexus) (@66.92.98.145) by secure.nexgen.com with SMTP; 4 Mar 2002 20:54:20 -0000 Message-ID: <002101c1c3be$80a42c50$0d00a8c0@alexus> From: "alexus" To: "Michel Weenink" Cc: 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> Subject: Re: Re[2]: newsyslog/rotatelog Date: Mon, 4 Mar 2002 15:52:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" To: "alexus" Cc: 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" > a> To: "alexus" > a> Cc: > 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