Better Apache Dashboard - no GeoIP info

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Better Apache Dashboard - no GeoIP info

Post by eloyd »

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.
Image
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

Post by scottwilkerson »

Add the filter as you see on slide 19
http://www.slideshare.net/nagiosinc/sco ... ith-nagios

Code: Select all

if [program] == 'apache_access' {
    geoip {
        source => 'clientip'
    }
}
Then apply configuration

One caveat is it will not be retroactive but will start on all logs coming in after that is applied
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Better Apache Dashboard - no GeoIP info

Post by scottwilkerson »

I edited the exchange listing to reflect the need for this filter

Better Apache Log Analysis
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Better Apache Dashboard - no GeoIP info

Post by eloyd »

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? :evil:
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Better Apache Dashboard - no GeoIP info

Post by tmcdonald »

Administration -> Global Configuration -> Add Filter. Make sure to save, verify, then apply.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Better Apache Dashboard - no GeoIP info

Post by eloyd »

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! :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Better Apache Dashboard - no GeoIP info

Post by tmcdonald »

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 :D
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

Post by scottwilkerson »

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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Better Apache Dashboard - no GeoIP info

Post by eloyd »

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...
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Better Apache Dashboard - no GeoIP info

Post by tmcdonald »

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
Locked