From owner-freebsd-questions Sun Mar 3 15:56:15 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 6F9B337B404 for ; Sun, 3 Mar 2002 15:56:12 -0800 (PST) Received: (qmail 5473 invoked from network); 3 Mar 2002 23:57:53 -0000 Received: from localhost.nexgen.com (HELO noc) (root@127.0.0.1) by localhost.nexgen.com with SMTP; 3 Mar 2002 23:57:53 -0000 Message-ID: <001301c1c30e$d4006a40$faa0b542@noc> From: "alexus" To: Subject: newsyslog/rotatelog Date: Sun, 3 Mar 2002 18:54:58 -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 sorry for previose post, clicked send email before finished writing... so as i was saying... --- hi i'm trying to find best way to rotate my apache's logs i found small utility that comes with apache c# /usr/local/apache/bin/rotatelogs Usage: /usr/local/apache/bin/rotatelogs [offset minutes from UTC] Add this: TransferLog "|/usr/local/apache/bin/rotatelogs /some/where 86400" to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the system time at which the log nominally starts (N.B. this time will always be a multiple of the rotation time, so you can synchronize cron scripts with it). At the end of each rotation time a new log is started. c# the only problem with this software is it creates some weird file names log.64645645 and god knows what those numbers means.. i mean we do know it's system time.. but it's first inconvient to explain to my users what this is and how to convert them to more understanble numbers for them and in additon to that it doesn't compress them which was main point of rotating so you can compress them ... plus this rotation stuff will start coutning from the time you start apache.. i can't do it like too, i need it like every monday or somethin or every 1st of the month .. another problem that i bump into .. is webazlier (thats what i use for statistics) i can't explain to webazlier to pick up file name log_* so it picks first file, there for i can't really put it in crontab .. i need original file to keep file name and the one it rotate (old log) rename it and compress it and keep for let's say either 7 days period or month or something like that.. i was thinkin to use newsyslog for that.. is it good idea? or there are some other tools for that? can i put "include /etc/apache-log-rotate.conf" into newsyslog.conf so i dont have to edit it every time? can someone suggest/recommend some thing here? thanks in advance alexus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message