Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!
1. Describe your incident:
I recently set up an integration to GreyNoise Community and it is working swimmingly, except I get occasional errors in my Graylog log:
WARN [GreyNoiseCommunityIpLookupAdapter] '::1' is an IPv6 Address. 'GreyNoise Community IP Lookup' does not support IPv6 Addresses
I would like to filter the IPv6 addresses within the pipeline rule calling the lookup so that they are not sent to GreyNoise.
2. Describe your environment:
-
OS Information: Ubuntu 22.04
-
Package Version: 5.0.3+a82acb2
-
Service logs, configurations, and environment variables:
WARN [GreyNoiseCommunityIpLookupAdapter] '::1' is an IPv6 Address. 'GreyNoise Community IP Lookup' does not support IPv6 Addresses
3. What steps have you already taken to try and solve the problem?
I added the below to my pipeline rule, but I have a low confidence that I am using the function correctly. Hoping someone can spot an error or make a suggestion on another way to avoid running the rule action on IPv6 addresses.
Here’s the when block:
when
has_field("SrcIP") &&
is_ip(to_ip($message.SrcIP)) &&
!grok_exists("%{IPV6:$message.SrcIP}") &&
!in_private_net(to_string($message.SrcIP)) &&
!cidr_match("169.254.0.0/16",to_ip($message.SrcIP))
then
The !grok_exists("%{IPV6:$message.SrcIP}") &&
is intended to stop processing if there is an IPv6 address in the SrcIP field, but it is not working.
4. How can the community help?
Provide advice on getting the pipeline rule to stop processing in the event of an IPv6 address.
Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]