any way to escape logged bytes?

Jeffrey 'jf' Lim jfs.world at gmail.com
Tue Jul 28 05:08:32 UTC 2020


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)?

thanks,
-jf

--
He who settles on the idea of the intelligent man as a static entity
only shows himself to be a fool.


More information about the nginx mailing list