Skip to main content

Filter IP address entities to pull out only IPv4 addresses

  • Jan 27, 2022 11:48 AM UTC
  • 2 replies
  • 44 views

Forum|alt.badge.img+9

Any thoughts on how we may filter IP address entities to pull out only IPv4 addresses to pass on for enrichment? We're sending a bunch of IPv6 addresses that aren't interesting or useful to pay to lookup.

2 replies

Forum|alt.badge.img+9
  • Author
  • New Member
  • Jan 27, 2022 12:19 PM UTC

Not sure how to do it in a playbook, so I added a filter in the actual integration:
address_entities = [entity for entity in address_entities if (. in entity.identifier)]


pigram86
Forum|alt.badge.img+7
  • Bronze 2
  • Jan 27, 2022 12:19 PM UTC

could disable IPv6 in registry or set to none on Linux, if your gear