thank you <meta http-equiv="content-type" content="text/html; charset=utf-8">Vaidas,<div>I had to modify it a little, but now it works. The correct template definition is:</div><div><br><div><meta http-equiv="content-type" content="text/html; charset=utf-8">$template MySuperAwesomeTimestamps,"%$NOW% %msg%\n"</div>
<div><br></div><div>regards,</div><div>Konrad</div><div><br><div class="gmail_quote">On Sat, Jun 25, 2011 at 11:27 PM, Vaidas Jablonskis <span dir="ltr"><<a href="mailto:jablonskis@gmail.com">jablonskis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Konrad,<br><br>You can create a template and then apply it to a message. For example:<br><br># define a template<br>
$template MySuperAwesomeTimestamps,"$NOW %msg%"<br><br># apply the template<br>authpriv.*                            /var/log/secure;MySuperAwesomeTimestamps<br>

<br>$NOW will generate YYYY-MM-DD. The above syntax might be incorrect as I cannot remember it off hand, but I hope it gives you an idea.<br><br>Thanks,<br>Vaidas<br><br><br><div class="gmail_quote"><div><div></div><div class="h5">
On 24 June 2011 13:40, Konrad Vrba <span dir="ltr"><<a href="mailto:konrad.vrba@gmail.com" target="_blank">konrad.vrba@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">hello,<div>at the moment my rsyslog generates logs with time stamp in the form:</div>
<div>Jun 24 14:03:33 ............</div>

<div><br></div><div>I would like to change the date format to</div><div>YYYY-MM-DD 14:03:33 ............</div>
<div><br></div><div>In the rsyslog.conf file, I see the option to enable high precision timestamps. But this is not what I need. I do not need miliseconds time stamps. I need year timestamps</div><div><br></div><div>Could sombody please advise how to do this ?</div>



<div><br></div><div>regards,</div><div>konrad</div>
<br></div></div>--<br>
Gllug mailing list  -  <a href="mailto:Gllug@gllug.org.uk" target="_blank">Gllug@gllug.org.uk</a><br>
<a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Vaidas Jablonskis<br><br>
</font><br>--<br>
Gllug mailing list  -  <a href="mailto:Gllug@gllug.org.uk">Gllug@gllug.org.uk</a><br>
<a href="http://lists.gllug.org.uk/mailman/listinfo/gllug" target="_blank">http://lists.gllug.org.uk/mailman/listinfo/gllug</a><br>
<br></blockquote></div><br></div></div>