Company
Date Published
Author
Sachin Frayne
Word count
689
Language
-
Hacker News points
None

Summary

Enriching data from internal private IP addresses with geolocation information can be challenging due to the nature of private networks, which do not inherently provide geographic data. The blog post by Sachin Frayne outlines a method for enriching these IPs using the enrich processor in Elasticsearch, which allows users to associate private IPs with specific geographic data such as city, country, and continent. This involves creating a custom index and policy in Elasticsearch to match private IPs with predefined geographic locations, which are then used to enrich documents with geolocation data. The method requires maintaining a lookup index of IP ranges and utilizes an ingest pipeline with processors for expansion, enrichment, and cleanup of IP data. Although currently limited to exact matches, Elastic is working on facilitating enrichment with IP ranges, which would streamline the process and reduce maintenance. Users are encouraged to test this method in their environments or on Elastic Cloud, with future updates promised to further simplify the enrichment process.