Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4720

Problem with logging

$
0
0

@gdevelek wrote:

Greetings,

My HAProxy 1.8.19 on Debian-9 is logging starts and stops but not traffic. Using the logger tool I can log anything I want to the proper files, so I can’t figure out what’s wrong.

Here is my logging config for rsyslog, saved in /etc/rsyslog.d/haproxy.conf.

Thanks for any clues!

$ModLoad imudp
$UDPServerAddress 127.0.0.1
$UDPServerRun 514
$FileOwner dialog
$FileGroup dialog
$FileCreateMode 0644

local0.* -/home/dialog/HAPROXY/logs/haproxy-traffic.log
local0.notice -/home/dialog/HAPROXY/logs/haproxy-admin.log
local0.info -/home/dialog/HAPROXY/logs/haproxy-info.log

…and here is the HAProxy config:

global
daemon
maxconn 256
log 127.0.0.1:514 local0

defaults
log global
option tcplog
mode tcp
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms

frontend fr_server1
log 127.0.0.1:514 local0
bind 0.0.0.0:8000
default_backend bk_server1

backend bk_server1
log 127.0.0.1:514 local0
server srv1 10.1.1.184:2775 maxconn 2048

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>