You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by siegfried <si...@heintze.com> on 2006/08/16 19:56:17 UTC

[users@httpd] Wanted: help understanding doc for rotate log

I've been studying http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
and feel quite confused.

I'm running windows server XP 2003.

(1) Is rotate logs exclusively for httpd or can I use it for my
cygwin/cron/perl jobs that run nightly and generate large log files?

(2) In the documentation they say "CustomLog" and "ErrorLog". Are these
commands I type in at the cygwin/bash command prompt? I get errors when I
do. I don't see any such programs in /program files/apache
group/apache2/bin.

(3) Assuming the answer to #1 is that I can use it for my perl/cron jobs:
how would I rotate my log files every 48 hours? Would I create a cron job to
run once a day to run rotatelogs?

Thanks,
Siegfried


---------------------------------------------------------------------
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] Wanted: help understanding doc for rotate log

Posted by Tim Wood <tw...@gmail.com>.
On 8/16/06, siegfried <si...@heintze.com> wrote:
[...]
>
> (2) In the documentation they say "CustomLog" and "ErrorLog". Are these
> commands I type in at the cygwin/bash command prompt? I get errors when I
> do. I don't see any such programs in /program files/apache
> group/apache2/bin.
[...]

The CustomLog and ErrorLog commands are entries that you would place
in your apache2.conf file, not applications that you run from the
command line.  See: http://httpd.apache.org/docs/2.0/logs.html

Sorry, I don't know about 1 or 3.

---------------------------------------------------------------------
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] Wanted: help understanding doc for rotate log

Posted by Joshua Slive <jo...@slive.ca>.
On 8/16/06, siegfried <si...@heintze.com> wrote:
> I've been studying http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
> and feel quite confused.
>
> I'm running windows server XP 2003.
>
> (1) Is rotate logs exclusively for httpd or can I use it for my
> cygwin/cron/perl jobs that run nightly and generate large log files?
>
> (2) In the documentation they say "CustomLog" and "ErrorLog". Are these
> commands I type in at the cygwin/bash command prompt? I get errors when I
> do. I don't see any such programs in /program files/apache
> group/apache2/bin.
>
> (3) Assuming the answer to #1 is that I can use it for my perl/cron jobs:
> how would I rotate my log files every 48 hours? Would I create a cron job to
> run once a day to run rotatelogs?

2 has been answered.

The answer to 1 is that rotatelogs is httpd-specific.  It is used only
as a piped-logging program that accepts log entries on standard input.
 It is not called from the command line.  It could be used for other
programs that have the capability of logging through a pipe to a
program, but I don't believe that is common.

Joshua.

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