今天在Windows平台上面升级IHS,由6.0.2.23升级到6.0.2.43。升级过后日志的error log不断报错,日志如下:

piped log program ‘”C:/IBM/HTTPSE~1/bin/rotatelogs.exe” -l “D:/ihslog/access.log.%Y.%m.%d.log” 86400 480 ‘ failed unexpectedly
piped log program ‘”C:/IBM/HTTPSE~1/bin/rotatelogs.exe” -l “D:/ihslog/access.log.%Y.%m.%d.log” 86400 480 ‘ failed unexpectedly

经查证,原理是rotatelogs.exe配置的语法变了。
旧的语法:

#CustomLog “|\”C:/IBM/HTTPSE~1/bin/rotatelogs.exe\” -l \”D:/ihslog/access.log.%Y.%m.%d.log\” 86400 480 ” common env=!image

新的语法:

CustomLog “|bin/rotatelogs.exe D:/ihslog/access.log.%Y.%m.%d.log 86400 480” common env=!image