-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx error logs not masked #42
Comments
For Anonip to work, the format of the log file needs to have the IP address at a predictable location. Unfortunately with nginx it's not possible to configure the format of the error-log AFAIK. In your seconds example ( |
This commit implements regex based IP detection. This is intended to use for logfiles where column based detection doesn't work. See RFC (DigitaleGesellschaft#44) for more information. Closes DigitaleGesellschaft#42, closes DigitaleGesellschaft#44
This commit implements regex based IP detection. This is intended to use for logfiles where column based detection doesn't work. See RFC (DigitaleGesellschaft#44) for more information. Closes DigitaleGesellschaft#42, closes DigitaleGesellschaft#44
I have trouble getting anonip to mask IPs in my nginx error.log file.
When I execute anonip as root, I receive the following error message:
With XXX.XXX.XXX.XXX being some IP address (not masked) and address.tld the domain of the server.
I already tried the --delimiter and --column options:
Somehow I would need to tell anonip to look behind "client:", but that's not possible.
I thought anonip would work with error logs out of the box. Or have there been some recent changes in the way nginx is formating the error logs?
I am using nginx version nginx/1.14.0 (Ubuntu) and anonip 1.0.0 (installed through pip3).
The text was updated successfully, but these errors were encountered: