On Thu, Jun 26, 2008 at 12:35 PM, Manju Ramanathpura (mramanat) <<a href="mailto:mramanat@cisco.com">mramanat@cisco.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">Wondering if there
is a way to print timezone with each message in the Version 1.6.8
?</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">Currently my message
looks something like below</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">Jan 21
12:22:12 <rest of the message></font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">Instead I would like
to see something like below</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">Jan 21 12:22:12 PDT
2008 <rest of the message> or something in that line where I
can see the timezone info.</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">I have come across
some timezone handling documents from - <a href="http://www.syslog.org/syslog-ng/v2/#timezone_handling" target="_blank">http://www.syslog.org/syslog-ng/v2/#timezone_handling</a>
But only for the Version 2.x and not for version 1.6.X</font></span></div>
<div><span><font face="Arial" size="2"></font></span> </div>
<div><span><font face="Arial" size="2">I'd appreciate if
you can share any tips for printing timezone ( or perhaps ISO format timestamp
) in each message for V 1.6.8</font></span></div>
<div><span><font face="Arial" size="2"></font></span></div></div></blockquote><div><br>You haven't said that you're familiar with templates and macros in syslog-ng, so I'll point you towards the docs:<br><br>
<a href="http://www.campin.net/syslog-ng/faq.html#template">http://www.campin.net/syslog-ng/faq.html#template</a><br><br><a href="http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch03s07.html">http://www.balabit.com/dl/html/syslog-ng-admin-guide_en.html/ch03s07.html</a><br>
<br>If you have trouble making templates work, send your configs and errors to the list along with a description of what you're trying to accomplish.<br></div></div><br>