Thank you, Mariusz.

I spent again some time reviewing the following documentation page, which I believe to be relevant:

Title  : Templates
URL    : https://www.rsyslog.com/doc/v8-stable/configuration/templates.html

I found, for instance, the section *Standard Template for writing to the MySQL database* and many other things, but could not find anywhere in which file and file section am I supposed to define a new template. Any idea?

Which archives do you mean?

Ioan

On 2023.11.26 14:48, Mariusz Kruk via rsyslog wrote:
You don't need the default template. The default template is predefined and is only shown here for reference. You need to define a new template with your contents (of course it has to render into a proper SQL statement) and call the action with template given as additional parameter. Like

*.* action(type="ommysql" server="localhost" db="rsyslog" uid="rsyslog" pwd="fake_password" templat="my_mysql_template")

And how to filter... oh man, that's soooo huge topic.
You can read the archives on this list for examples how rulesets work with rsyslog.
_______________________________________________
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.

Reply via email to