any way to escape logged bytes?
Maxim Dounin
mdounin at mdounin.ru
Thu Jul 30 12:05:52 UTC 2020
Hello!
On Tue, Jul 28, 2020 at 01:08:32PM +0800, Jeffrey 'jf' Lim wrote:
> I am discovering that nginx is logging the bytes sent by a client - in
> raw form - in my error.log for the following error:
>
> client sent invalid method while reading client request line, client:
> NN.N.N.N, server: NAME, request: ",'�Cookie: mstshash=eltons"
>
> Is there a way to get nginx to escape the bytes, as per what happens
> with access_log / log_format
> (https://nginx.org/en/docs/http/ngx_http_log_module.html#log_format)?
No, currently error logs are written as is and not escaped.
Relevant ticket is here:
https://trac.nginx.org/nginx/ticket/191
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list