Created
December 1, 2017 08:39
-
-
Save yyscamper/12a7b1583c01193e64052df1776e8960 to your computer and use it in GitHub Desktop.
Script to Download GeoIP Database for Logstash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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