-
Notifications
You must be signed in to change notification settings - Fork 9
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
Issue with source value "-" for IPv4 strategy? #3
Comments
So if the field is empty or not a valid address this exception raises. |
Both inherit from But either way it really needs handling in the filter. |
If the filter get any invalid input for the anonymize_ipv4_network mode, it will crash the whole Logstash pipeline because of an unhandled ArgumentError thrown by the IPAddr class. Furthermore, the causing event got lost during the crash, so post-mortem analysis were not possible. Now, ArgumentError is catched and an error message is logged. The value to be anonymized is kept in the event in the identified form and the event gets processed further as usual. Fixes logstash-plugins#3.
In #8 there is a possible solution by catching the I'm not completely sure if this is the best solution, but we need exactly this now as our Logstash instances crash often because of this error and we are not even able to find the causing log events because they are eaten by the crash. |
If the filter get any invalid input for the anonymize_ipv4_network mode, it will crash the whole Logstash pipeline because of an unhandled ArgumentError thrown by the IPAddr class. Furthermore, the causing event got lost during the crash, so post-mortem analysis were not possible. Now, ArgumentError is catched and an error message is logged. The value to be anonymized is kept in the event in the identified form and the event gets processed further as usual. Fixes logstash-plugins#3.
Hi,
I've found an issue the filter looks to "crash" internally when a field value has an "invalid" value. I'm new in Logstash (config setup) and not yet Ruby aware -- so perhaps I've missed something.
Given a sample config
my LS daemon (1.5 RC2) was "hanging" after some time. No more logs, no output, no new messages in process. And forwarders (i.e. logstash-forwarder) are noticed this as well and were stucked.
I had spend some time to figure out in some circumstances some of my nginx access logs will produce
-
as a proxyip value (a local request w/o a proxy). I can fix this with either an additional condition ([proxy] != "-") or even better removing the field matching this condition.But the question is: Is this behavior as expected? If I'm not missing something, the current specs do not cover any negative tests?
The text was updated successfully, but these errors were encountered: