<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am getting a weird issues while using the syslog destination driver. I am sending an xml message to syslog (syslog-ng 3.1) and forwarding the message over to another destination. </DIV>
<DIV>&nbsp;</DIV>
<DIV>The relevant entries in my syslog.conf look as following:</DIV>
<DIV>&nbsp;</DIV>
<DIV>filter f_atna { facility(local7); };</DIV>
<DIV>&nbsp;</DIV>
<DIV>destination d_loghost { syslog("19.16.2.9" transport("tcp") port(6514) template("$MESSAGE")); };</DIV>
<DIV>&nbsp;</DIV>
<DIV>log { source(src); filter(f_atna); destination(d_loghost); };</DIV>
<DIV>&nbsp;</DIV>
<DIV>The problem I am running into is that&nbsp;the xml message is not getting processed on the other side because I am getting some weird characters are getting added in the xml message:</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<P>&lt;?xml <FONT style="BACKGROUND-COLOR: #ffff40">- - -</FONT> version="1.0" encoding="UTF-8"?&gt;<BR></P>
<P>&nbsp;</P>
<P>The above xml tag is constant in my program and therefore I am not inserting it and I don't even see it in /var/log/localmessages</P></DIV>
<DIV>&nbsp;</DIV>
<DIV>Dec 28 11:01:07 10.15.1.1 &lt;?xml version="1.0" encoding="UTF-8"?&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>but when I do&nbsp;see&nbsp;it in my&nbsp;tcpdump I do see it. </DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>I am not seeing these weird dashes when I use the tcp destination driver but the message is not in the required format&nbsp;so it blows up on the other side. </DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Has anyone seen this issue before?&nbsp; Any help will be greatly appreciated. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Amit</DIV></div><br>

      </body></html>