rainerjung commented on PR #814: URL: https://github.com/apache/tomcat/pull/814#issuecomment-2663481464
Concerning analogies in Apache httpd land: ErrorLogFormat has ``` %{c}L Log ID of the connection %{C}L Log ID of the connection if used in connection scope, empty otherwise ``` and explains them as `The log ID format %L produces a unique id for a connection or request. This can be used to correlate which log lines belong to the same connection or request, which request happens on which connection. A %L format string is also available in [mod_log_config](https://httpd.apache.org/docs/2.4/en/mod/mod_log_config.html) to allow to correlate access log entries with error log lines. If [mod_unique_id](https://httpd.apache.org/docs/2.4/en/mod/mod_unique_id.html) is loaded, its unique id will be used as log ID for requests.` See: https://httpd.apache.org/docs/2.4/en/mod/core.html#errorlogformat And as mentioned here, mod_log_config documents: ` %L The request log ID from the error log (or '-' if nothing has been logged to the error log for this request). Look for the matching error log line to see what request caused what error.` I haven't checked what the connection id in Tomcat land is and how well this analogy applies. Furthermore mod_https provides some IDs via httpd env vars (%{...}e): ``` Variable Name: Value Type: Description: HTTP2 flag HTTP/2 is being used. H2PUSH flag HTTP/2 Server Push is enabled for this connection and also supported by the client. H2_PUSH flag alternate name for H2PUSH H2_PUSHED string empty or PUSHED for a request being pushed by the server. H2_PUSHED_ON number HTTP/2 stream number that triggered the push of this request. H2_STREAM_ID number HTTP/2 stream number of this request. H2_STREAM_TAG string HTTP/2 process unique stream identifier, consisting of connection id and stream id separated by ```-. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org