On Thu, May 24, 2018 at 12:00 PM, David Lang <[email protected]> wrote:
>
> you can create your own variable to use in a template, you can do math on
> this variable something like int(min/5)

Thanks, I'd started in that direction, but the examples in the
documentation were sufficiently esoteric that I lost my way. It's also
not very clear how you interpolate variables into templates. For
example, this didn't work as I hoped it would:

set $.mindiv = ($$minute / 5);
template(name="foo" type="string" string="/var/log/split-%$.mindiv%")

That just produced a file named "/var/log/split-"
_______________________________________________
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