You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nigel Peck - MIS Web Design <ni...@miswebdesign.com> on 2003/07/15 15:55:18 UTC
[users@httpd] Log Rotation
I want to rotate combined access logs every day and be sure that there are no entries in the wrong day's file.
I'm currently using cronolog for this and it's great. However it also has a constant memory footprint as it is always running. Memory is currently an issue for the server and as the number of sites increases I don't think cronolog is an ideal solution so....
Is this correct or with a daily cron job to rotate the file would it simply move the memory used by cronolog to being used by the logging routines within Apache (I doubt it).
Is there a better solution? I'm using logrotate for the error logs but will logrotate still be totally accurate for correct entires in the correct files?
Is there something better which will check the entries (as cronolog does as it runs) but run as a one off daily job? Or do I need to write it?
Cheers,
Nigel
---------------------------------------------------------------------
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] Log Rotation
Posted by Florian Yanez <fd...@helzberg.com>.
cronolog also comes with a program called cronosplit that can break up a log
file by date.
Hope this helps.
Florian Yanez
Manager of Technical Systems
Helzberg Diamond Shops, Inc.
fdyanez@helzberg.com
816-627-1253
-----Original Message-----
From: Nigel Peck - MIS Web Design [mailto:nigel@miswebdesign.com]
Sent: Tuesday, July 15, 2003 9:28 AM
To: users@httpd.apache.org; koen.vingerhoets@ubench.com
Subject: RE: [users@httpd] Log Rotation
Thanks for the offer but it's all linux and Perl here so they wouldn't be
any use.
If anyone's interested in the scripts I do I'll post a url once they're
done.
Cheers,
Nigel
> -----Original Message-----
> From: Koen Vingerhoets [mailto:koen.vingerhoets@ubench.com]
> Sent: 15 July 2003 15:15
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Log Rotation
>
>
> Hi,
>
> I use some vbs scripts to mail me the logs.
> I owe this list a lot for creating them, so I will sent them if
> you need it.
> Needs Windows, WSH and task scheduler.
>
> Greetings,
>
> Koen
>
> -----Original Message-----
> From: Nigel Peck - MIS Web Design [mailto:nigel@miswebdesign.com]
> Sent: Tuesday, July 15, 2003 3:55 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Log Rotation
>
>
> I want to rotate combined access logs every day and be sure that there are
> no entries in the wrong day's file.
>
> I'm currently using cronolog for this and it's great. However it
> also has a
> constant memory footprint as it is always running. Memory is currently an
> issue for the server and as the number of sites increases I don't think
> cronolog is an ideal solution so....
>
> Is this correct or with a daily cron job to rotate the file would
> it simply
> move the memory used by cronolog to being used by the logging routines
> within Apache (I doubt it).
>
> Is there a better solution? I'm using logrotate for the error
> logs but will
> logrotate still be totally accurate for correct entires in the correct
> files?
>
> Is there something better which will check the entries (as
> cronolog does as
> it runs) but run as a one off daily job? Or do I need to write it?
>
> Cheers,
> Nigel
>
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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
RE: [users@httpd] Log Rotation
Posted by Nigel Peck - MIS Web Design <ni...@miswebdesign.com>.
Thanks for the offer but it's all linux and Perl here so they wouldn't be any use.
If anyone's interested in the scripts I do I'll post a url once they're done.
Cheers,
Nigel
> -----Original Message-----
> From: Koen Vingerhoets [mailto:koen.vingerhoets@ubench.com]
> Sent: 15 July 2003 15:15
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Log Rotation
>
>
> Hi,
>
> I use some vbs scripts to mail me the logs.
> I owe this list a lot for creating them, so I will sent them if
> you need it.
> Needs Windows, WSH and task scheduler.
>
> Greetings,
>
> Koen
>
> -----Original Message-----
> From: Nigel Peck - MIS Web Design [mailto:nigel@miswebdesign.com]
> Sent: Tuesday, July 15, 2003 3:55 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Log Rotation
>
>
> I want to rotate combined access logs every day and be sure that there are
> no entries in the wrong day's file.
>
> I'm currently using cronolog for this and it's great. However it
> also has a
> constant memory footprint as it is always running. Memory is currently an
> issue for the server and as the number of sites increases I don't think
> cronolog is an ideal solution so....
>
> Is this correct or with a daily cron job to rotate the file would
> it simply
> move the memory used by cronolog to being used by the logging routines
> within Apache (I doubt it).
>
> Is there a better solution? I'm using logrotate for the error
> logs but will
> logrotate still be totally accurate for correct entires in the correct
> files?
>
> Is there something better which will check the entries (as
> cronolog does as
> it runs) but run as a one off daily job? Or do I need to write it?
>
> Cheers,
> Nigel
>
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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] Log Rotation
Posted by Koen Vingerhoets <ko...@ubench.com>.
Hi,
I use some vbs scripts to mail me the logs.
I owe this list a lot for creating them, so I will sent them if you need it.
Needs Windows, WSH and task scheduler.
Greetings,
Koen
-----Original Message-----
From: Nigel Peck - MIS Web Design [mailto:nigel@miswebdesign.com]
Sent: Tuesday, July 15, 2003 3:55 PM
To: users@httpd.apache.org
Subject: [users@httpd] Log Rotation
I want to rotate combined access logs every day and be sure that there are
no entries in the wrong day's file.
I'm currently using cronolog for this and it's great. However it also has a
constant memory footprint as it is always running. Memory is currently an
issue for the server and as the number of sites increases I don't think
cronolog is an ideal solution so....
Is this correct or with a daily cron job to rotate the file would it simply
move the memory used by cronolog to being used by the logging routines
within Apache (I doubt it).
Is there a better solution? I'm using logrotate for the error logs but will
logrotate still be totally accurate for correct entires in the correct
files?
Is there something better which will check the entries (as cronolog does as
it runs) but run as a one off daily job? Or do I need to write it?
Cheers,
Nigel
---------------------------------------------------------------------
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