Hey guys how do I verify that the geoip plugin is updated with the latest geoip data?
A question arose regarding the accuracy of the geoip maps that I created, and I suddenly realized that I don't actually know how accurate it is nor do I know how to check.
geoip accuracy question
geoip accuracy question
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: geoip accuracy question
Well, the files that ship with the Logserver are kind of old:
You could download newer ones and replace them, however. If accuracy is your concern, that would be a good idea.
Hope that's helpful!
--Jeffrey
Code: Select all
[root@jpd-nagiosls2 vendor]# pwd
/usr/local/nagioslogserver/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-geoip-2.0.7/vendor
[root@jpd-nagiosls2 vendor]# ls -l
total 21404
-rwxrwxr-x. 1 nagios nagios 3545918 Jan 28 15:23 GeoIPASNum-2014-02-12.dat
-rwxrwxr-x. 1 nagios nagios 18370259 Jan 28 15:23 GeoLiteCity-2013-01-18.dat
[root@jpd-nagiosls2 vendor]#
Hope that's helpful!
--Jeffrey
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: geoip accuracy question
THANKS
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: geoip accuracy question
but how do I do that?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Re: geoip accuracy question
The safest thing to do is to go to
https://dev.maxmind.com/geoip/geoip2/geolite2/
and sign up to download the latest file.
Then you can write a new filter that points to the new file, wherever you want to put it:
more info is here:
https://www.elastic.co/guide/en/logstas ... geoip.html
You could also move the current file out of that directory (but keep it just in case...), put the new file in it's place, and restart logstash.
I don't know that that's 100% compatible with the version of the code that loads it, though. It should be, but it may not be.
Hope that's clearer.
--Jeffrey
https://dev.maxmind.com/geoip/geoip2/geolite2/
and sign up to download the latest file.
Then you can write a new filter that points to the new file, wherever you want to put it:
Code: Select all
geoip {
source => 'clientip'
database => "/path/to/the/GeoLite2-City.mmdb"
}
https://www.elastic.co/guide/en/logstas ... geoip.html
You could also move the current file out of that directory (but keep it just in case...), put the new file in it's place, and restart logstash.
I don't know that that's 100% compatible with the version of the code that loads it, though. It should be, but it may not be.
Hope that's clearer.
--Jeffrey
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: geoip accuracy question
Hey thanks! I appreciate the help! you can lock it up!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: geoip accuracy question
greatbenhank wrote:Hey thanks! I appreciate the help! you can lock it up!
Locking