【问题标题】:Disable Last Message Repeated X Times on Syslog Facility在 Syslog 工具上禁用最后一条消息重复 X 次
【发布时间】:2014-03-03 10:40:50
【问题描述】:

有时系统日志会发送这样的行:

Aug 12 20:35:57 server sshd[15984]: last message repeated 2 times

我知道我们可以在 rsyslog 配置文件中禁用它:

$RepeatedMsgReduction off

来源:here

该配置在所有 syslog 设施上禁用此功能。

但我的问题是:有没有办法仅在特定设施(例如 local1)上禁用此功能?

谢谢!

【问题讨论】:

    标签: linux syslog rsyslog


    【解决方案1】:

    不,根据manual,此选项仅接受值 onoff。同样,source code 仅记录这两个值:

    int bReduceRepeatMsgs; /* reduce repeated message - 0 - no, 1 - yes */
    

    【讨论】:

    • 好的,感谢您提供此信息。所以没有本地选项来选择设施?
    猜你喜欢
    • 2019-04-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-11
    • 1970-01-01
    • 2011-07-03
    相关资源
    最近更新 更多