Welcome! Log In Create A New Profile

Advanced

Re: Anonymize IP logging

Martin Loy
May 03, 2012 01:58AM
Hello

I'm not sure if its performance wise, but you can always define your own
log format http://wiki.nginx.org/HttpLogModule#log_format with a custom
variable instead of $remote_addr which can be almost anything, try using
for example http://wiki.nginx.org/HttpLuaModule ngx.md5 or any lua code ;)

Regards

M


On Thu, May 3, 2012 at 1:55 AM, Dieter Knopf <dieterknopf@googlemail.com>wrote:

> Hello,
>
> i'm searching for an way to anonymize the ip address in the logfiles
> of nginx. I already changed the ip to "127.0.0.1", but then i can't
> check for unique visitors.
> There is a mond_anonstats modul available for apache, the same ip hash
> would be really nice for nginx.
>
> Thanks
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
*Nunca hubo un amigo que hiciese un favor a un enano, ni un enemigo que le
hiciese un mal, que no se viese recompensado por entero.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Anonymize IP logging

Veerle May 03, 2012 01:42AM

Re: Anonymize IP logging

Martin Loy May 03, 2012 01:58AM

Re: Anonymize IP logging

Alexandr Gomoliako May 03, 2012 06:50AM

Re: Anonymize IP logging

Veerle May 04, 2012 12:30AM

Re: Anonymize IP logging

masonicboom March 31, 2018 07:07PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
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