From owner-freebsd-questions Sat Feb 23 7:12:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ulixes.esc.ac.at (ulixes.esc.ac.at [193.170.216.34]) by hub.freebsd.org (Postfix) with ESMTP id 64ED037B404 for ; Sat, 23 Feb 2002 07:12:42 -0800 (PST) Received: from ulixes.esc.ac.at (localhost.esc.ac.at [127.0.0.1]) by ulixes.esc.ac.at (8.12.2/8.12.2) with ESMTP id g1NFCcHr012924; Sat, 23 Feb 2002 16:12:38 +0100 (CET) (envelope-from flo@ulixes.esc.ac.at) Received: (from flo@localhost) by ulixes.esc.ac.at (8.12.2/8.12.2/Submit) id g1NFCcq1012923; Sat, 23 Feb 2002 16:12:38 +0100 (CET) (envelope-from flo) Date: Sat, 23 Feb 2002 16:12:38 +0100 From: Florian Nigsch To: alexus , freebsd-questions@freebsd.org Subject: Re: logs (rotation) Message-ID: <20020223161238.A12878@nigsch.com> References: <003701c1bc7b$0e9fd680$faa0b542@noc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <003701c1bc7b$0e9fd680$faa0b542@noc>; from ml@db.nexgen.com on Sat, Feb 23, 2002 at 10:02:05AM -0500 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 On Sat, Feb 23, 2002 at 10:02:05AM -0500, alexus wrote: > 1. when I use TransferLog inside my apache's configuration I get common type > of log, how can I switch it to combined? make sure you have a line reading LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined in your httpd.conf file and for the logging add a line CustomLog /var/log/httpd-access.log combined for each vhost you want to log separately > 2. how can I rotate error_log? by adding the files you want to rotate to newsyslog.conf or by creating a script yourself and running it on a periodic basis out of cron. > 3. can I limit amount of logs? newsyslog provides this capability, you could add it to your script. > 4. those numbers.. what do they mean? is there any sequence in them? > transfer_log.1014249600 transfer_log.1014336000 transfer_log.1014422400 No idea on this. Is there something already rotating your logs? flo -- --- Florian Nigsch http://flo.nigsch.com/ PGP key: http://flo.nigsch.com/fnigsch.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message