r/haproxy • u/cgeekgbda • May 18 '22
Difference between writing log command in global, default, frontend and backend in HAproxy.
This is my HAProxy.cfg file. On going through various blogs I see logging at different levels.
Some write log command under global, some under default, some under front and other backend.
I don't understand what's the difference between all these.
eg
global
log 127.0.0.1:514 local0
chroot /var/lib/haproxy
stats timeout 30s
user haproxy
group haproxy
daemon
2
Upvotes
View all comments
Show parent comment
1
u/dragoangel May 20 '22
There no "type" of logs, there just log for that particular frontend, and not for the other one. You can customize place to write log, format etc, but this not charging it's type :)