From 958cd207f24025c08e3d26e7200c5c03d8e92406 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 14 Feb 2019 10:38:18 +0100 Subject: [PATCH] Implement option to output to mail on the client rather than forwarding that to the server --- templates/td-agent.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/templates/td-agent.conf b/templates/td-agent.conf index ff15fcc..7f05702 100644 --- a/templates/td-agent.conf +++ b/templates/td-agent.conf @@ -192,6 +192,19 @@ pattern \/server-status\?auto </exclude> </filter> +{% if fluentd_mail_output is defined %} + +<match mail> + @type mail + host {{ fluentd_mail_output.host }} + port {{ fluentd_mail_output.port }} + from {{ fluentd_mail_output.from }} + to {{ fluentd_mail_output.to }} + subject {{ fluentd_mail_output.subject }} + subject_out_keys {{ fluentd_mail_output.subject_out_keys }} + out_keys {{ fluentd_mail_output.out_keys }} +</match> +{% endif %} {% if 'logserver' in groups and inventory_hostname in groups.logserver %} <source> -- GitLab