Update SecKit_geo_lookup.py "GeoIP2-Anonymous-IP.mmdb" if code to mat… #192
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…ch the result dictionary to the anonymous_ip object attributes (as given at https://dev.maxmind.com/geoip/docs/databases/anonymous-ip?lang=en). Updated Splunk macros.conf and transforms.conf to support the changes to the result dictionary. This work is to resolve the follow errors received when loading the "GeoIP2-Anonymous-IP.mmdb" database.
This work was to correct the following code exception(s):
Exception has occurred: AttributeError
'AnonymousIP' object has no attribute 'is_anonymous_proxy'
File "/opt/splunk/etc/apps/SecKit_SA_geolocation/bin/SecKit_geo_lookup.py", line 105, in main
result["is_anonymous_proxy"] = anon_response.is_anonymous_proxy
File "/opt/splunk/etc/apps/SecKit_SA_geolocation/bin/SecKit_geo_lookup.py", line 121, in
main()
And resulting Splunk error:
Error in 'lookup' command: Script execution failed for external search command '/opt/splunk/etc/apps/SecKit_SA_geolocation/bin/SecKit_geo_lookup.py'.
The search job has failed due to an error.