ik wil mijn apache (welke onder windows 2003 draait) een logrotate kunnen laten uitvoeren
kan iemand mij vertellen of ik dit goed doe? (voordat ik me hele server om zeep help of zo
![]()
mijn huidige log entries in httpd.conf:
quote:
CustomLog c:/Logs/apache/access.log common
CustomLog c:/Logs/apache/referer.log referer
CustomLog c:/Logs/apache/agent.log agent
uitleg van rotatelogs.exe
quote:
Usage: rotatelogs.exe <logfile> <rotation time in seconds> [offset minutes from
UTC]
Add this:
"|rotatelogs.exe /some/where 86400"
to httpd.conf. The generated name will be /some/where.nnnn where nnnn is the
system time at which the log nominally starts (N.B. this time will always be a
multiple of the rotation time, so you can synchronize cron scripts with it).
At the end of each rotation time a new log is started.
dus ik denk dat dit wel werkt:
quote:
TransferLog |D:/apache/bin/rotatelogs.exe c:/Logs/apache/access.log common 86400
klopt dat of doe ik iets fundamenteels fout?
![]()
en er is zeker geen ander proggie dat de logfile kan rotaten wanneer hij x MB groot is?