you need to look at the property replacer, and do something like %msg:1:950% in your template. I am not sure, but I think the default template already does this. Did you experience oversize messages on a receiver?
> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of Sayan Chowdhury > Sent: Wednesday, October 07, 2009 4:36 PM > To: rsyslog-users > Subject: [rsyslog] limiting message size while forwarding messages > > Hello All,RFC 3164 says that max rsyslog message length is 1024 bytes. > Rsyslog version 4.2.0 which I am using, is compliant to rfc 5424 and > has a > default max message size of 2K. > Now, I don't want to restrict the size while receiving messages.However > when > I forward message out of the box, I want to truncate it > to 1K, as I am not sure what implementations I will have to interop > with. > I could not find an easy way to do this. $MaxMessageSize seems to > control > both sending and receiving. > Is there a way in which I can achieve this? > Regards, > Sayan > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

