flow.record.tools.geoip
¶
Module Contents¶
Functions¶
Yield IPv4Records by extracting IP addresses from files using a regex. |
|
Attributes¶
- flow.record.tools.geoip.logger¶
- flow.record.tools.geoip.IPv4Record¶
- flow.record.tools.geoip.GeoRecord¶
- flow.record.tools.geoip.AsnRecord¶
- flow.record.tools.geoip.DEFAULT_CITY_DB = '/usr/share/GeoIP/GeoLite2-City.mmdb'¶
- flow.record.tools.geoip.DEFAULT_ASN_DB = '/usr/share/GeoIP/GeoLite2-ASN.mmdb'¶
- flow.record.tools.geoip.REGEX_IPV4¶
- flow.record.tools.geoip.georecord_for_ip(city_db: maxminddb.Reader, ip: str) flow.record.base.Record ¶
- flow.record.tools.geoip.asnrecord_for_ip(asn_db: maxminddb.Reader, ip: str) flow.record.base.Record ¶
- flow.record.tools.geoip.ip_records_from_text_files(files: list[str]) collections.abc.Iterator[flow.record.base.Record] ¶
Yield IPv4Records by extracting IP addresses from files using a regex.
- flow.record.tools.geoip.main() int ¶