Bug 68118 - Feature Request: ErrorLogFormat does not log Request_URI/QueryString or Request_Method
Summary: Feature Request: ErrorLogFormat does not log Request_URI/QueryString or Reque...
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.57
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-09 17:22 UTC by Richard Yeo
Modified: 2023-11-10 08:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yeo 2023-11-09 17:22:23 UTC
ErrorLogFormat by default does not log the http verb/request method or URI/QueryString. It doesn't appear to have optional parameters either.

Being able to log these would greatly help with monitoring / debugging.
Comment 1 Ruediger Pluem 2023-11-10 07:20:19 UTC
Have a look at %L in https://httpd.apache.org/docs/2.4/mod/core.html#errorlogformat and https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats. This allows you to tag access log entries and error messages with a common unique id and correlate them.
Comment 2 Richard Yeo 2023-11-10 08:43:58 UTC
Thanks for the suggestion.
The L approach is far from ideal for us and probably others.
1. We are upgrading system and will have old and new running in parallel across server farm.
2. We have existing code which takes apache access logs and parses.
So we would have to modify old and new code to handle L parameter in access logs and also handle the L parameter not being there.
When investigating issues constantly having to lookup IDs in another file is not ideal.