On Mon, 19 Nov 2018, Mike Schleif wrote:
How can I do that?
in your config for writing to mysql you specify a template to use, use that same
template to write to a file
old syntax
/var/log/foo_file;bar_template
new syntax
action(type="omfile" filename="foo_file" template="bar_template")
in general, if things aren't working the way you think they should, look at the
actual data.
you can also use the template RSYSLOG_Debug_Format to get a dump of everything
that rsyslog knows about the log message to understand what your templates are
doing.
David Lang
_______________________________________________
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.