http://www.rsyslog.com/doc/v8-stable/configuration/property_replacer.html#available-properties
http://www.rsyslog.com/doc/v8-stable/configuration/properties.html
timegenerated, not timereceived, sorry
On Mon, 7 Dec 2015, Muhammad Asif wrote:
Date: Mon, 7 Dec 2015 12:45:35 +0500
From: Muhammad Asif <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: Re: [rsyslog] To send logs from old time-stamped file with new
timestamp
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.
_______________________________________________
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.