Welcome! Log In Create A New Profile

Advanced

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Maxim Dounin
April 24, 2014 02:28PM
Hello!

On Thu, Apr 24, 2014 at 11:06:29AM -0700, Quanah Gibson-Mount wrote:

>
>
> --On April 24, 2014 at 9:56:48 PM +0400 Maxim Dounin <mdounin@mdounin.ru>
> wrote:
>
> >>$remote_port in the log format section only covers errors logged to the
> >>access log, it does not cover errors in the error log. The submitted
> >>patch handles the error log.
> >
> >I understand the difference, thank you.
> >
> >The ticket in question only talked about error_log in context of
> >mail module, where is no separate access logging to meet the
> >alleged regulations.
>
> Yes, that is true, but why only implement a partial solution? With CGN,
> only logging the IP is fairly useless in all cases. To truly get useful
> information going forward, the IP + PORT of the client should logged in all
> cases.

Access log certainly can be configured to provide enough
enformation to match any given error log message to a port if
needed. There is no need to implement anything, solution is
already here.

And, by asking about "why implement a partical solution" you are
overlooking the fact that proposed solution is partial as well -
it doesn't change c->addr_text to ensure proper logging in all
places (this would be a bad idea for other reasons, but it's
another question), but rather tries to hack on the http error
logging code to introduce remote port logging. This is far from
being a complete solution.

--
Maxim Dounin
http://nginx.org/

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

[PATCH 0 of 2] TRAC 531 - Add source port logging for HTTP(S) error logging and all proxied email client connections

Quanah Gibson-Mount 1467 April 24, 2014 01:22PM

[PATCH 2 of 2] MAIL: Always log the source port of the client

Quanah Gibson-Mount 467 April 24, 2014 01:22PM

Re: [PATCH 2 of 2] MAIL: Always log the source port of the client

Maxim Dounin 439 April 24, 2014 01:48PM

Re: [PATCH 2 of 2] MAIL: Always log the source port of the client

Quanah Gibson-Mount 441 April 24, 2014 07:40PM

[PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Quanah Gibson-Mount 524 April 24, 2014 01:22PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Maxim Dounin 468 April 24, 2014 01:38PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Quanah Gibson-Mount 462 April 24, 2014 01:42PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Quanah Gibson-Mount 465 April 24, 2014 01:46PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Maxim Dounin 478 April 24, 2014 01:58PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Quanah Gibson-Mount 449 April 24, 2014 02:08PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Maxim Dounin 438 April 24, 2014 02:28PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Quanah Gibson-Mount 547 April 24, 2014 07:38PM

Re: [PATCH 1 of 2] HTTP: Add client source port to any error that is logged

Maxim Dounin 483 April 25, 2014 07:50AM

Re: [PATCH 0 of 2] TRAC 531 - Add source port logging for HTTP(S) error logging and all proxied email client connections

itpp2012 810 May 23, 2014 02:56PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready