2016-01-27 11:33 GMT+01:00 Muhammad Asif <[email protected]>:

> Hi Geeks,
>
> My snort is not attaching year in logs. I want to forward these logs to nex
> server but i want to add year in timestamp. I tried many templates but no
> to avail, result is same like "Jan 27 15:32:17". How can i add year in
> timestamp.
>
> %timegenerated:::date-unixtimestamp%
> %timegenerated:::date-rfc3339%
>

This should add a timestamp with year, doesn't it?


> %timegenerated:::date-strftime(%Y-%m-%d %H:%M:%S)%
>
> This is invalid. No such function exists.

Rainer


> Thanks
> _______________________________________________
> 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.

Reply via email to