Mailing List Archive

set default template for omfwd
Hi

I want to change the default template used by omfwd to RSYSLOG_ForwardFormat. I found in the doc* the following directive which is not working for either v8 or v5 versions


$ActionForwardDefaultTemplateName

It would give me

"rsyslogd: invalid or yet-unknown config file command 'ActionForwardDefaultTemplateName' - have you forgotten to load a module?"

I noticed that default template for omfile is declared as:

$ActionFileDefaultTemplate

So i changed the syntax for omfwd to the one below, which did work:

Is $ActionFileDefaultTemplateName a documentation typo?


I am aware I can set the template to use on the omfwd action, but i was looking for a "global" solution.


Thanks
Dimi



https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html
[https://www.rsyslog.com/files/2018/02/rsyslog-logo-512x512.png]<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
RSyslog Documentation - rsyslog<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
www.rsyslog.com







* https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html
[https://www.rsyslog.com/files/2018/02/rsyslog-logo-512x512.png]<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
RSyslog Documentation - rsyslog<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
www.rsyslog.com
?

_______________________________________________
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: set default template for omfwd [ In reply to ]
The documentation for omfwd seems wrong indeed. The directive is
$ActionForwardDefaultTemplate

https://www.rsyslog.com/doc/master/configuration/action/index.html?highlight=actionforwarddefaulttemplate
https://www.rsyslog.com/doc/master/compatibility/v3compatibility.html?highlight=actionforwarddefaulttemplate


Le 2023-03-28 18:32, Dimi Onobodies via rsyslog a écrit :
> Hi
>
> I want to change the default template used by omfwd to
> RSYSLOG_ForwardFormat. I found in the doc* the following directive
> which is
> not working for either v8 or v5 versions
>
>
> $ActionForwardDefaultTemplateName
>
> It would give me
>
> "rsyslogd: invalid or yet-unknown config file command
> 'ActionForwardDefaultTemplateName' - have you forgotten to load a
> module?"
>
> I noticed that default template for omfile is declared as:
>
> $ActionFileDefaultTemplate
>
> So i changed the syntax for omfwd to the one below, which did work:
>
> Is $ActionFileDefaultTemplateName a documentation typo?
>
>
> I am aware I can set the template to use on the omfwd action, but i was
> looking for a "global" solution.
>
>
> Thanks
> Dimi
>
>
>
> https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html
> [https://www.rsyslog.com/files/2018/02/rsyslog-logo-512x512.png]<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
> RSyslog Documentation -
> rsyslog<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
> www.rsyslog.com
>
>
>
>
>
>
>
> *
> https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html
> [https://www.rsyslog.com/files/2018/02/rsyslog-logo-512x512.png]<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
> RSyslog Documentation -
> rsyslog<https://www.rsyslog.com/doc/v8-stable/configuration/modules/omfwd.html>
> www.rsyslog.com
> ?
>
> _______________________________________________
> 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.