httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joost de Heer" <sang...@xs4all.nl>
Subject [users@httpd] Re: Naming access logs
Date Tue, 10 Oct 2006 05:30:03 GMT
sniedermeyer@cob.org wrote:
> I know how to specify the name of the access log.  However, I've been
> unable to uncover how to specify a file name with a variable.  For
> example,
> I'm using log rotate and would like to have the file name include the
> date.
> Does anyone know how to accomplish this?

CustomLog "|/path/to/apache/bin/rotatelogs /path/to/access_%Y%m%d.log
interval"

See man strftime which parameters you can use (%Y is year, %m is month, %d
is day, in case you didn't guess)


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message