BlueXIII's Blog

热爱技术,持续学习

0%

rsyslog远程日志

参考文档

http://docsv3.yiqiyun.net.cn/network/loadbalancer/manual/lb_user_guide/#rsyslog-%E8%BF%9C%E7%AB%AF%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8

服务器

10.193.10.54

部署

1
2
3
4
5
6
7
8
9
10
vi /etc/rsyslog.conf
$ModLoad imudp
$UDPServerAddress 0.0.0.0
$UDPServerRun 514

vi /etc/rsyslog.d/haproxy.conf
local0.* /data/rsyslog/haproxy.log

systemctl restart rsyslog
lsof -i:514

查看日志

1
tail -f /data/rsyslog/haproxy.log