Welcome! Log In Create A New Profile

Advanced

Re: any way to escape logged bytes?

Jeffrey 'jf' Lim
July 30, 2020 08:50AM
On Thu, Jul 30, 2020 at 8:06 PM Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> 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
>

gotcha. Thank you! Will you accept a patch which would make error_log
escape the same way as per log_format's default escaping? That's if I
even manage to get it figured out.

-jf
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

any way to escape logged bytes?

Jeffrey 'jf' Lim July 28, 2020 01:10AM

Re: any way to escape logged bytes?

Maxim Dounin July 30, 2020 08:06AM

Re: any way to escape logged bytes?

Jeffrey 'jf' Lim July 30, 2020 08:50AM

Re: any way to escape logged bytes?

Maxim Dounin July 30, 2020 10:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 100
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready