title: How to change timestamp format on rsyslog
body: <p>I want to change the default timestamp format on rsyslog. Currently I am running on RHEL7.2. Syslog version 7.4.7. Now the default format is the following:</p>
  
  <pre><code>Mar 23 09:35:30 localhost DEB  [9125:&lt;console&gt;.&lt;module&gt;:2] debug info
  </code></pre>
  
  <p>Inside rsyslog.conf I have define the following template:</p>
  
  <pre><code>$template Mytemplate,"%timegenerated% %HOSTNAME% %syslogseverity-text:0:3:uppercase% %msg%\n"
  </code></pre>
  
  <p>How can I change the format to this YYYY-MM-dd H:i:s ?</p>