Reproduce: <Valve className="org.apache.catalina.valves.ExtendedAccessLogValve" directory="logs" prefix="extended" suffix=".log" pattern="date time cs(test)" /> Access a page with the request header test: 'alpha Actual result: 2015-03-07 18:49:11 ''"lpha' Expected Result: According to my understanding of http://www.w3.org/TR/WD-logfile.html , the result should be: 2015-03-07 18:49:11 "'alpha" -The missing a should obviously be included -Only double Quotes should be used -Quotation should be done with a double quoting char Additional: "The dash character must not be used as an abbreviation for an empty string." Currently empty Strings are turned into a dash
Thanks for the report. This has been fixed for trunk, 8.0.x (for 8.0.21 onwards), 7.0.x (for 7.0.60 onwards) and proposed for 6.0.x.
Fixed in 6.0.x for 6.0.44 onwards.