Giter VIP home page Giter VIP logo

cribl-geoipupdate's Introduction

cribl-geoipupdate

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.

What the scripts do

  1. 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.
  2. If there are updates to these files, the check_for_updates.sh script calls the geoip_update.sh script .
  3. 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)

How to run the scripts

  1. Get a Cribl CLoud API key
  2. Edit the config.conf file
  3. Run the check_for_updates.sh script
  4. Kick back & chill. Everything should be done for you.

cribl-geoipupdate's People

Contributors

berthayes avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.