I believe this is possible, but it’s not trivial. See the discussion here: 
https://issues.apache.org/jira/browse/LOG4J2-1630

(Shameless plug) Every java main() method deserves http://picocli.info

> On Dec 14, 2017, at 2:18, Carlos Terron Bueno <cter...@alienvault.com> wrote:
> 
> rsyslog has an option, 
> $RepeatedMsgReduction<http://www.rsyslog.com/doc/rsconf1_repeatedmsgreduction.html>
>  tha can be used to reduce the number of log messages in a system. This 
> option groups the same messages, printing the message in the record and then 
> a line with the number of times it has been repeated.
> 
> Is it possible to do the same thing with log4j?
> 
> Thanks
> 
> Carlos

Reply via email to