Add the following to /etc/rsyslog.conf after '$ModLoad imuxsock' and '$ModLoad imjournal':
$IMUXSockRateLimitInterval 0
$IMJournalRatelimitInterval 0
Set the following in /etc/systemd/journald.conf:
Storage=volatile
Compress=no
RateLimitInterval=0
MaxRetentionSec=5s
Restart journald and rsyslog to pickup the changes with:
systemctl restart systemd-journald.service
systemctl restart rsyslog.service
本文介绍如何配置rsyslog与journald服务,通过调整配置文件/etc/rsyslog.conf和/etc/systemd/journald.conf来实现日志速率限制、存储方式及压缩等设置,并重启服务使更改生效。
687

被折叠的 条评论
为什么被折叠?



