日志中出现大量一下日志时

May 24 18:42:08 yw_lvs2_backup rsyslogd-2177: imuxsock lost 353 messages from pid 20261 due to rate-limiting

说明超过的rsyslog的配置记录最大峰值,可以通过syslog的配置文件来修复

解决方案如下:

echo "$SystemLogRateLimitInterval 60" >> /etc/rsyslog.conf
echo "$SystemLogRateLimitBurst 3000" >> /etc/rsyslog.conf

或者通过

#vim /etc/rsyslog.conf

:$
$SystemLogRateLimitInterval 60
$SystemLogRateLimitBurst 3000

esc
:x

 

重启rsyslog

/etc/init.d/rsyslog resart

或者service rsyslog restart

相关文章:

  • 2021-07-27
  • 2021-04-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-12-23
  • 2021-08-13
猜你喜欢
  • 2021-06-11
  • 2021-08-20
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案