Please have a look. I made changes as you guided me in template but it is showing this error.
$template linuxbox,"<%pri%>%timereceived% 172.20.16.16 %syslogtag%%msg%" rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 73: invalid property 'timereceived' [v8.14.0 try http://www.rsyslog.com/e/2207 ] rsyslogd: error: extra characters in config line ignored: '"<%pri%>%timereceived% 172.20.16.16 %syslogtag%%msg%"' [v8.14.0] On Sun, Dec 6, 2015 at 2:40 AM, David Lang <[email protected]> wrote: > On Fri, 4 Dec 2015, Muhammad Asif wrote: > > AoA! >> >> Hi Geeks, >> >> I have an old file having previous logs with previous timestamp. I want to >> find a way to send logs from that file but with current timestamp. How can >> I make this. >> > > create an output template that uses timereceived instead of timestamp. > that will use the time that rsyslog processed the line. > > David Lang > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

