You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Eimantas Vaiciunas <ei...@sc.vu.lt> on 2004/08/24 13:25:36 UTC

Re: [users@httpd] apache logs - one per day

On Tuesday 24 August 2004 15:07, Ziv Rozenfeld wrote:
> im using apache 2.0.50 on win2k
> i want the apache to create a new access.log file per day.
> what changes should i make in the httpd.conf file at the CustomLog and the
> Logformat?
>
>
> I've tried adding the next line with no success:
> CustomLog "|bin/rotatelogs /logs/access.log 86400" common
This directives overwrites access.log every day, but doesn't create a new one.
-----
Eimis


---------------------------------------------------------------------
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


RE: [users@httpd] apache logs - one per day

Posted by Jeroen van Meeuwen <ka...@pczone-clan.nl>.
You could try and batch bin/rotatelogs into a copy/replace kind of
sequence...

copy access.log access.log.%date%

Kind regards,

kanarip
> -----Original Message-----
> From: Eimantas Vaiciunas [mailto:eimantas.vaiciunas@sc.vu.lt] 
> Sent: dinsdag 24 augustus 2004 13:26
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] apache logs - one per day
> 
> On Tuesday 24 August 2004 15:07, Ziv Rozenfeld wrote:
> > im using apache 2.0.50 on win2k
> > i want the apache to create a new access.log file per day.
> > what changes should i make in the httpd.conf file at the 
> CustomLog and 
> > the Logformat?
> >
> >
> > I've tried adding the next line with no success:
> > CustomLog "|bin/rotatelogs /logs/access.log 86400" common
> This directives overwrites access.log every day, but doesn't 
> create a new one.
> -----
> Eimis
> 
> 
> ---------------------------------------------------------------------
> 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
> 


---------------------------------------------------------------------
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