haproxy

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
pccwglobalit
Posts: 105
Joined: Wed Mar 11, 2015 9:00 pm

haproxy

Post by pccwglobalit »

we want to filtering haproxy tcp log, can we use the below filter?

Code: Select all

if [program] == 'haproxy' {
        grok {
            match => [ 'message', '%{HAPROXY} ]
        }
        date {
            match => [ 'timestamp', 'dd/MMM/yyyy:HH:mm:ss Z' ]
        }
    geoip {
        source => 'client_ip'
    }
    }
will above filter ok?
thanks.
Last edited by tmcdonald on Tue Aug 08, 2017 9:28 am, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: haproxy

Post by cdienger »

I would try the following slight variation instead:

Code: Select all

if [program] == 'haproxy' {
        grok {
            match => [ 'message', '%{HAPROXYTCP}' ]
        }
        date {
            match => [ 'timestamp', 'dd/MMM/yyyy:HH:mm:ss Z' ]
        }
    geoip {
        source => 'client_ip'
    }
    }
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked