Date: Sat, 23 Feb 2002 16:12:38 +0100 From: Florian Nigsch <flo@nigsch.com> To: alexus <ml@db.nexgen.com>, freebsd-questions@freebsd.org Subject: Re: logs (rotation) Message-ID: <20020223161238.A12878@nigsch.com> In-Reply-To: <003701c1bc7b$0e9fd680$faa0b542@noc>; from ml@db.nexgen.com on Sat, Feb 23, 2002 at 10:02:05AM -0500 References: <003701c1bc7b$0e9fd680$faa0b542@noc>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <flo@nigsch.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020223161238.A12878>