Mailing List Archive

[Bug 68946] New: Apache error logs of module "proxy_ajp" is not converting to JSON format
https://bz.apache.org/bugzilla/show_bug.cgi?id=68946

Bug ID: 68946
Summary: Apache error logs of module "proxy_ajp" is not
converting to JSON format
Product: Apache httpd-2
Version: 2.4.57
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy_ajp
Assignee: bugs@httpd.apache.org
Reporter: shahpriyanshi16@gmail.com
Target Milestone: ---

We have converted our Apache error logs to JSON format by defining the format
in httpd.conf file

ErrorLogFormat "{"timestamp":"%{u}t", "ApacheModule": "%m", "level":"%l",
"ApacheProcessId": "%P", "ApacheThreadId": "%T", "ApacheSourceFile":"%7F",
"ErrorKind":"%E", "ClientIp":"%a", "ErrorMessage" : "%M"}"

After defining above format all the logs are printed in JSON format despite one
proxy_ajp module error

[Tue Apr 16 06:06:20.902697 2024] [proxy_ajp:error] [pid 11056:tid 38644] (OS
10054)An existing connection was forcibly closed by the remote host. : AH01030:
ajp_ilink_receive() can't receive header

Other logs of the proxy_ajp module are also successfully converted to JSON.

We have changed the format and just kept ErrorLogFormat %M . still above
mentioned log is not converting to any format

I believe this particular log has no effect of ErrorLogFormat defined in
httpd.conf file

Please help me to convert this log to JSON

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org