Better Apache Dashboard - no GeoIP info
Better Apache Dashboard - no GeoIP info
Do I need to do something special to enable GeoIP from our Apache 2.2 access logs? I'm not seeing any of it show up in Scott's otherwise fantastic Better Apache Dashboard.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Better Apache Dashboard - no GeoIP info
Add the filter as you see on slide 19
http://www.slideshare.net/nagiosinc/sco ... ith-nagios
Then apply configuration
One caveat is it will not be retroactive but will start on all logs coming in after that is applied
http://www.slideshare.net/nagiosinc/sco ... ith-nagios
Code: Select all
if [program] == 'apache_access' {
geoip {
source => 'clientip'
}
}One caveat is it will not be retroactive but will start on all logs coming in after that is applied
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Better Apache Dashboard - no GeoIP info
Okay, I do remember that now, but I am a total ELK newb. How do I get your JSON from two posts ago into my NLS? 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Better Apache Dashboard - no GeoIP info
Administration -> Global Configuration -> Add Filter. Make sure to save, verify, then apply.
Former Nagios employee
Re: Better Apache Dashboard - no GeoIP info
Aaaah. Okay. I was trying to do it through "Manage queries" and importing. This works much better. In fact, it works!!
Thanks!
See? Good thing you didn't click that eloyd button!
See? Good thing you didn't click that eloyd button!
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Better Apache Dashboard - no GeoIP info
Queries are also JSON-encoded, so I can understand the mixup.
And hey, the eloyd button might come in handy later if we offer an iPad 3 next year
And hey, the eloyd button might come in handy later if we offer an iPad 3 next year
Former Nagios employee
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Better Apache Dashboard - no GeoIP info
For clarity, the filter listed above isn't JSON. I know it looks like JSON, but it is actually a fragment of logstash configuration syntax.
In Nagios Log Server we give the ability to bust up logstash inputs, filters and outputs from normal logstash configurations into fragments or config blocks. These blocks can be rearranged by dragging and dropping them to reorder.
This can be useful because the order that the filter fragments run can be important, you could be adding tags in early filters to specific messages, and then using later filter to process the message in a different manner based on the tags you set.
In Nagios Log Server we give the ability to bust up logstash inputs, filters and outputs from normal logstash configurations into fragments or config blocks. These blocks can be rearranged by dragging and dropping them to reorder.
This can be useful because the order that the filter fragments run can be important, you could be adding tags in early filters to specific messages, and then using later filter to process the message in a different manner based on the tags you set.
Re: Better Apache Dashboard - no GeoIP info
I'm looking forward to the definitive guide to NLS for those that don't know ELK, but in the meantime, I've managed to do some pretty cool reporting things with our VoIP platform. I may even submit one of the dashboards to the contest...
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Better Apache Dashboard - no GeoIP info
Gonna close this one up for the sake of organization, but we love seeing stuff like this in use! Keep in touch with any other cool things you're doing, especially the VoIP stuff.
Former Nagios employee