-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomRequestLog is missing HTTP version format option #6330
Comments
@joakime I think |
@lachlan-roberts I think you are correct. Perhaps even documentation on the |
I don't think its possible to reproduce |
Couldn't you use |
You could almost do it with |
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
Improved javadocs for %H. Signed-off-by: Simone Bordet <[email protected]>
…#6361) Improved javadocs for %H. Signed-off-by: Simone Bordet <[email protected]>
Simplified javadoc. Signed-off-by: Simone Bordet <[email protected]>
…#6362) Simplified javadoc. Signed-off-by: Simone Bordet <[email protected]>
Jetty version
9.4.x
Description
If someone wants to move away from CustomRequestLog NCSA format to one that is slightly tweaked but still includes HTTP version (as seen in the NCSA format), then they have to drop the HTTP version portion.
To explain, this started with the stackoverflow question at https://stackoverflow.com/questions/67635098/request-param-is-logged-in-access-log-with-embedded-jetty-server-of-spring-boot
They were using the old-school extended NCSA requestlog and format.
Which outputted the first line in the request
POST /myAPI/v2/customer/message?myID=123&messageText=hello HTTP/1.0
, but they wanted to strip away the query string.The default format for Extended NCSA in CustomRequestLog is
%{client}a - %u %t "%r" %s %O "%{Referer}i" "%{User-Agent}i"
, of which the"%r"
portion logs the first line of the request, if they wanted to simulate the Extended NCSA format, but without the query string, they cannot, as HTTP Version is not an available format option, the best they can do is"%m %U"
without the HTTP Version portion.The text was updated successfully, but these errors were encountered: