Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to use rotatelogs with CustomLog?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am running Apache_1.3.12(only version compatible with another platform we use) and have three VirtualHosts. Each Virtual Host needs a different access_log file so I have set up a CustomLog directive within each VirtualHost container.
I also want the logs to rotate every 24 hours so I set up the directive thus:
CustomLog "|rotatelogs /usr/local/apache/logs/access_log combined 86400"
This wouldn't run though - the error was that rotatelogs had too many arguments. Does anyone know of a way that this can work? I have to use the Combined log file format.

Thanks very much
Jasmine
 
Perhaps setup cron to execute your rotatelog script. Leave Apache to simply do the writing.

Good luck,

brendanc@icehouse.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top