Keepalived日志单独存放

  sre


Keepalived默认日志存放在系统日志:/var/log/messages下

把日志单独存放
修改/etc/sysconfig/keepalived

KEEPALIVED_OPTIONS="-D" 修改为:KEEPALIVED_OPTIONS="-D -d -S 0"
/etc/rsyslog.conf 末尾添加

local0.*                                                /var/log/keepalived.log

重启日志记录服务

service rsyslog restart

重启keepalived

service keepalived  restart

LEAVE A COMMENT

Captcha Code