Apache HTTPd - rotatelogs not working
Posted
by
Mike C
on Server Fault
See other posts from Server Fault
or by Mike C
Published on 2014-05-30T13:36:06Z
Indexed on
2014/05/30
15:32 UTC
Read the original article
Hit count: 486
I've edited my conf.d/ssl.conf file and changed the TransferLog directive from:
TransferLog logs/ssl_access_log
to
TransferLog "|/usr/sbin/rotatelogs logs/ssl_access_log.%Y-%m-%d.log 60"
(I am using 60 seconds for testing)
Since that change and an httpd restart my original ssl_access_log is not updating and a new log was not generated. What am I missing?
in my error log, I am receiving this message
Could not open log file 'logs/ssl_access_log.2014-05-30.log' (No such file or directory)
piped log program '/usr/sbin/rotatelogs logs/ssl_access_log.%Y-%m-%d.log 60' failed unexpectedly
© Server Fault or respective owner