-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Support for IPv6 address with scope ID #22400
Comments
Would you please be more specific about the context and what you're expecting? |
Here is error from log : ... "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse [ip]", "caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"'xxxx::xxxx:xxxx:xxxx:xxxx%12' is not an IP string literal."}}}}} It is valid IPv6 address since %12 is scope ID of IPv6 address. |
It looks like that not a scope ID but a zone index, which is used only for routing outgoing traffic via link local. None of the Address Formats use the zone index, so I very much doubt we'll be supporting it. |
Elasticsearch should automatically just ignore that part of IPv6 address. |
I have tons (about 1,5GB/day) of errors like that :
coming from IIS logs could anyone help me make appropriate logstash mutate/filter removing from field "clientip" string ("fe80::d1bb:dad5:6c5:95a4%12") everything past "%" including "%" sign? |
@nick4u Here is how I fix the scope id problem in IPv6:
|
I got around this in the Ingest Pipeline by defining a custom pattern_definition which removed the (%.+) from the already defined IPV6 pattern, then used that to strip scope. It's throwing the exception when it's trying to store the value as type: ip. "processors": [ |
ES do not supprt IPv6 addressess with scope ID like : fe80::71a3:2b00:ddd3:753f%16
The text was updated successfully, but these errors were encountered: