rotatelogs.exe does not accept custom LogFormat for TransferLog in EWS/JWS
Issue
- We have ews 2.1 with EAP 6.4.5. In
ssl.confwe have configured ews as follows to usesbin/rotatelogs.exeto have a log rotation in place.
LogFormat "%h %l %u %t \"{JSESSIONID}C\" \"%r\" %>s %b %{us}T" customformat
TransferLog "|C:/jboss-ews-2.1/sbin/rotatelogs.exe -l C:/jboss-ews-2.1/var/log/httpd/ssl_access_log.%Y.%m.%d.log 86400" customformat
When this customformat suffix is given, apache does not start. It gives an error - Incorrect Function (see below from evenetviewer).
The Apache service reported following error
transferlog takes one argument the filename of the access log
- How can we enable custom format for TransferLog in EWS/JWS apache when log rotation is enabled?
Environment
- Red Hat JBoss Web Server (JWS)
- 2.1.x
- 3.0.x
- Apache httpd 2.2.26
- Apache httpd 2.4.6
- Microsoft Windows Server 2008 R2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.