On Mon, May 5, 2014 at 10:11 PM, Thomas D. <[email protected]> wrote: > Hi, > > maybe that's another problem due to mix between old and new syntax and > therefore it isn't working like expected... but I didn't find something > in the documentation about this: > > My test configuration: > > module(load="imuxsock") > > $RepeatedMsgReduction on > > module( > load="builtin:omfile" > Template="RSYSLOG_TraditionalFileFormat" > FileCreateMode="0644" > DirCreateMode="0755" > ) > > *.* action( > type="omfile" > File="/var/log/test.log" > FileOwner="root" > FileGroup="adm" > ) > > > Now I am generating a lot of repeating messages: > > # for i in {1..500} ; do logger -p local5.info -t tester "repeat-test" ; > done > > ...but I see 500 identical messages in /var/test.log. No "last message > repeated n times" message. > > Where's my error? > > Thanks! > > FYI: I have checked the code, and I think this should work as you specify it. I'll next do a lab. I guess that logger inserts something (like a pid?) that makes the message unique and so does not trigger the code. But that's just a guess right now.
Rainer (Tested with rsyslog-7.6.3) > > > -Thomas > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

