keepalived set up a separate log [Reserved]

Modify / etc / sysconfig / keepalived add the following

KEEPALIVED_OPTIONS="-D -d -S 0"

Modify /etc/rsyslog.conf add the following two lines

#keepalived
local0.*                                               /var/log/keepalived.log

Restart it and log keepalive polling service

systemctl restart rsyslog
systemctl restart keepalived

Here Insert Picture Description
Although it is possible to generate a log file recorded separately, but there was still about keepalive log generating / var / log / messages.

He published 183 original articles · won praise 17 · views 30000 +

Guess you like

Origin blog.csdn.net/weixin_42506599/article/details/104403360