Closed pemontto closed 1 year ago
Thanks @pemontto for the PR.
@sydp I'm assigning you as a reviewer since you're the expert for this analyzer. Can you please take a look at these changes and verify if we want to just continue when the response is None or handle the problem in a different way?
For context the None
comes from this function which already handles missing IPs and DB errors:
https://github.com/google/timesketch/blob/445c146c4d661012eb082f37987121fd172dda8c/timesketch/lib/analyzers/geoip.py#L118-L125
We found the GeoIP analyser would never complete with our timelines as we were getting
None
responses from ip2geo. E.g.This fix continues the loop early if we haven't got a result
Before 😢
After 🥳