Mailing List Archive

Apache error logs of module "proxy_ajp" is not converting to JSON format
Hi,

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
Re: Apache error logs of module "proxy_ajp" is not converting to JSON format [ In reply to ]
On Sun, Apr 21, 2024 at 7:57?AM Priyanshi Shah
<shahpriyanshi16@gmail.com> wrote:
>
> Hi,
>
> 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"}"

Is it defined globally or in a virtual host?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache error logs of module "proxy_ajp" is not converting to JSON format [ In reply to ]
Hi,

We have defined this pattern in httpd.conf file globally. And all other
access logs and error logs are converting properly with the defined format.
Only below log is not converting to JSON

*[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*

Thanks,
Priyanshi Pancholi

On Sun, Apr 21, 2024 at 5:42?PM Eric Covener <covener@gmail.com> wrote:

> On Sun, Apr 21, 2024 at 7:57?AM Priyanshi Shah
> <shahpriyanshi16@gmail.com> wrote:
> >
> > Hi,
> >
> > 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"}"
>
> Is it defined globally or in a virtual host?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--
Thanks,
Priyanshi Shah