سؤال

Sometimes Syslog send line like that :

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

I know that we can disable it, in the rsyslog config file :

$RepeatedMsgReduction off

Source : here

That config disable this feature on all syslog facilities.

But my question is : is there any way to disable this feature on only a specific facility (local1 for example) ?

Thanks !

هل كانت مفيدة؟

المحلول

No, according to the manual this option only accepts values on and off. Likewise, the source code only documents these two values:

int bReduceRepeatMsgs; /* reduce repeated message - 0 - no, 1 - yes */
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top