On Tue, Nov 17, 2015 at 4:08 PM, Dave Caplinger <
[email protected]> wrote:
> Sure, you can exec a template into a variable like:
>
> template(name="timegeneratedrfc3339" type="string"
> string="%timegenerated:::date-rfc3339%")
> set $!timereceived = exec_template("timegeneratedrfc3339");
>
Nice, that'll work just fine! Thanks!
-peter
>
>
> --
> Dave Caplinger | Director, Technical Product Management
> Solutionary — An NTT Group Security Company
>
> > On Nov 17, 2015, at 2:03 PM, Peter Portante <[email protected]>
> wrote:
> >
> > Hi Folks,
> >
> > Using v8.14.*, I'd like to be able to assign to a variable a string
> > representation of a date to a variable.
> >
> > Ideally, something like:
> >
> > set $!foo.timegenerated = %timegenerated:::date-rfc3339%
> >
> >
> > Is this possible?
> >
> > Thanks,
> >
> > -peter
> > _______________________________________________
> > 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.