Re: Apache logs
On Wed, 18 Sep 2002 at 11:08:55 +0200, Edward Tjin Liep Shie wrote:
> I was wondering if i can use Apache rotatelogs to rotate logfile from
/usr/local/apache/logs/error_log to /log
> In the man pages i can't find anny thing how to rotat to an other dir.
> Is there anny one who is using apache rotatelogs and is moving them ?
Probably you can use logrotate instead of rotatelogs. From the man:
Logs are moved into directory for rotation. The
directory must be on the same physical device as
the log file being rotated. When this option is
used all old versions of the log end up in direcĄ
tory. This option may be overridden by the nooldĄ
But, to be exact, you not always can move logs to another dir. It
depends on whether your /log is on the same physical device as
/usr/local/apache/logs (usually not).
Tomasz Papszun SysAdm @ TP S.A. Lodz, Poland | And it's only
email@example.com http://www.lodz.tpsa.pl/ | ones and zeros.
- Apache logs
- From: Edward Tjin Liep Shie <Edward.TLS@Tiscali.NL>