> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of Rainer Gerhards > Sent: Monday, January 17, 2011 9:05 AM > To: rsyslog-users > Subject: [rsyslog] message manipulation in a parser > > Rainer, > I'm testing the cisconames parser, and I've almost got everything > working (it looks like a total of 2 bugs in the initial code I sent > you), > but I'm running into problems trying to truncate a string. > > in the message parser, what would I pass to rsCStrTruncate() to tuncate > 2 > characters from the incomeing message?
I've just checked the code. It's the number of characters to truncate. So you need to pass in "2". Code in question: http://git.adiscon.com/?p=rsyslog.git;a=blob;f=runtime/stringbuf.c;h=f4a9caae d62d7ad9bca0deaf4728298cc40b5c2d;hb=HEAD#l435 Rainer > > David Lang > _______________________________________________ > 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

