1:在/etc/rsyslog.conf中添加以下内容
1 # Filter duplicated messages 2 $RepeatedMsgReduction on
2:重启服务
1 systemctl restart rsyslog.service