Mailing List Archive

Conditional Templates
Hi there,

I'm interested in setting up a conditional template for application to all
outputs (I have 5-6).

Ideally, I'd like to prefix the text of all messages with "kern" facility
with "kernel: ".

Is there an easy way to do so?

Thanks,

Daniel
_______________________________________________
rsyslog mailing list
https://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.
Re: Conditional Templates [ In reply to ]
create one template that has a variable in it and have a conditional that sets
that variable.

David Lang

On Mon, 24 Aug 2020, Daniel Nelson via rsyslog wrote:

> Date: Mon, 24 Aug 2020 11:13:01 -0700
> From: Daniel Nelson via rsyslog <rsyslog@lists.adiscon.com>
> To: rsyslog@lists.adiscon.com
> Cc: Daniel Nelson <danielnelson@google.com>
> Subject: [rsyslog] Conditional Templates
>
> Hi there,
>
> I'm interested in setting up a conditional template for application to all
> outputs (I have 5-6).
>
> Ideally, I'd like to prefix the text of all messages with "kern" facility
> with "kernel: ".
>
> Is there an easy way to do so?
>
> Thanks,
>
> Daniel
> _______________________________________________
> rsyslog mailing list
> https://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
https://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.