Keep your Maxmind Database files up to date in Cribl Cloud.
This work is an extension of an idea and scripts originally written by Jenna Eagle
These scripts will check for updates to the Maxmind GeoLite2-City and GeoLite2-ASN database files and move them to Cribl Cloud if/when there are updates.
The scripts make a few assumptions in order to work:
- You've already got an API key and secret from Cribl Cloud
- You already have the GeoIP Update program installed from maxmind.com
- You have already uploaded the GeoLite2-City.mmdb and GeoLite2-ASN.mmbd files to Cribl Cloud. (These scripts will update, but not perform the initial upload.)
Note: Country code database is not handled yet, but should be real soon now.
- The
check_for_updates.sh
script uses the Maxmind GeoIP Update program (see above) to check the version of the GeoLite2-City.mmdb and GeoLite2-ASN.mmbd files and download them locally if there are updates. - If there are updates to these files, the
check_for_updates.sh
script calls thegeoip_update.sh
script . - Use the Cribl Cloud API to
- Upload the updated .mmdb files
- Commit and Deploy
- Commit and Deploy to version control
- (This loop is repeated for each .mmdb file)
- Get a Cribl CLoud API key
- Edit the
config.conf
file - Run the
check_for_updates.sh
script - Kick back & chill. Everything should be done for you.