Re: httpd access_log

Iain McLaren (iain@myrica.com)
Thu, 24 Sep 1998 08:43:21 +0000


Hi,

> I have in here a PC redhat 5.1 with Apache web server. My problem is that
> the httpd creates other files than my transferlog file "access_log" in
> the same directory.
>
> Like:
> access_log
> access_log.1
> access_log.2
> access_log.3
>

The log files are rotated periodically by logrotate. access_log
becomes access_log.1 (etc) and a new access_log is opened.

Have a look at the logrotate man pages and /etc/logrotate.conf and
/etc/logrotate.d/apache for info on configuring to your requirements.

Personally, if you're extracting some kind of information from the
log files, I'd setup a cron job to do it nightly. This way your log
files don't become huge.

Regards,

Iain
Iain F. McLaren
Systems Software Engineer
Myrica (UK) Ltd
Dunfermline
Tel. 01383 627309
Email: imclaren@myrica.com
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu