Skip to main content

Filter IP address entities to pull out only IPv4 addresses

  • January 27, 2022
  • 2 replies
  • 8 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
  • January 27, 2022

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
  • January 27, 2022

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