I just create a JIRA[1] and the patch is on the way. [1]https://issues.apache.org/jira/browse/CAMEL-8687
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 22, 2015 at 5:57:38 AM, Sameer Babu K K (sameer...@yahoo.com.invalid) wrote: > According to RFC 5424 syslog structured data can be like the below examples: > > > All examples in this section show only the structured data part of > the message. Examples should be considered to be on one line. They > are wrapped on multiple lines in this document for readability > purposes. A description is given after each example. > > Example 1 - Valid > > [exampleSDID@32473 iut="3" eventSource="Application" > eventID="1011"] > > This example is a structured data element with a non-IANA controlled > SD-ID of type "exampleSDID@32473", which has three parameters. > > Example 2 - Valid > > [exampleSDID@32473 iut="3" eventSource="Application" > eventID="1011"][examplePriority@32473 class="high"] > > > > > But the syslog data format > (org.apache.camel.component.syslog.SyslogConverter) > just considers the value till next space as the structured message. > > > StringBuilder msgId = new StringBuilder(); > while ((charFound = (char) (byteBuffer.get() & 0xff)) != ' ') { > msgId.append(charFound); > } > rfc5424SyslogMessage.setMsgId(msgId.toString()); > > StringBuilder structuredData = new StringBuilder(); > while ((charFound = (char) (byteBuffer.get() & 0xff)) != ' ') { > structuredData.append(charFound); > } > rfc5424SyslogMessage.setStructuredData(structuredData.toString()); > > This seems to be a bug to me. Is there a fix or latest version available for > this parsing? > > Best Regards,Sameer > >