Skip to content

Instantly share code, notes, and snippets.

@yyscamper
Created December 1, 2017 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yyscamper/12a7b1583c01193e64052df1776e8960 to your computer and use it in GitHub Desktop.
Save yyscamper/12a7b1583c01193e64052df1776e8960 to your computer and use it in GitHub Desktop.
Script to Download GeoIP Database for Logstash
TARGET=/root/geoip
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz -O $TARGET/tmp.tar.gz
tar -xvzf GeoLite2-City.tar.gz -C $TARGET --strip-components 1
rm $TARGET/tmp.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment