Hi

------ Originalnachricht ------
Von: "kushal bhattacharya" <[email protected]>
An: [email protected]
Gesendet: 27.10.2017 12:47:37
Betreff: Re: Tcp logging in haproxy

Sorry if it is generated as a new topic i am attaching my configuration until now below
On UDP 127.0.0.1:514 must the syslog server listen and the facility "local0" must be configured to write to a logfile.

When you add this line to haproxy config should you get some logs from haproxy in the logfile.

http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#log

global
  log 127.0.0.1:514 local0

defaults
  log global

    mode tcp
    timeout connect        22m
    timeout client         22m
    timeout server         22m

frontend localnodes
    bind *:9875
    option tcplog
    log global
    default_backend nodes


backend nodes
    mode tcp
    balance roundrobin
    server web01 192.168.0.5:9878  maxconn 2000
    server web02 192.168.0.5:9877  maxconn 2000
    server web03 192.168.0.5:9876  maxconn 2000


but now i am confused as to how do i recieve logs

On Thu, Oct 26, 2017 at 2:50 PM, kushal bhattacharya <[email protected]> wrote:
I have included tcp logging in the configuration of haproxy.But I want to know how it will be loggged in and where the log will be done.My main moto is to dump log output in some custom file but watch the logs dumped into it.
Thanks,
Kushal



Reply via email to