Question

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 !

Was it helpful?

Solution

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 */
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top