flow.record.tools.geoip#

Module Contents#

Functions#

georecord_for_ip

asnrecord_for_ip

ip_records_from_text_files

Yield IPv4Records by extracting IP addresses from files using a regex.

main

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, ip)#
flow.record.tools.geoip.asnrecord_for_ip(asn_db, ip)#
flow.record.tools.geoip.ip_records_from_text_files(files)#

Yield IPv4Records by extracting IP addresses from files using a regex.

flow.record.tools.geoip.main()#