From d5eb54a01bccffa63a1f751802c22297b71c14b0 Mon Sep 17 00:00:00 2001 From: Miguelangel Freitas Date: Tue, 25 Jul 2017 00:33:41 -0400 Subject: [PATCH] Wazuh manager: adding the ability to configure daily reports. --- .../var-ossec-etc-ossec-server.conf.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 index 9669c847..1ffa2d81 100644 --- a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 +++ b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 @@ -47,6 +47,23 @@ {% endif %} {% endfor %} +{% endif %} + +{% if wazuh_manager_config.reports is defined %} +{% for report in wazuh_manager_config.reports %} + + {{ report.category }} + {{ report.title }} + {{ report.email_to }} + {% if report.location is defined %}{{ report.location }}{% endif %} + {% if report.group is defined %}{{ report.group }}{% endif %} + {% if report.rule is defined %}{{ report.rule }}{% endif %} + {% if report.level is defined %}{{ report.level }}{% endif %} + {% if report.srcip is defined %}{{ report.srcip }}{% endif %} + {% if report.user is defined %}{{ report.user }}{% endif %} + {% if report.showlogs is defined %}{{ report.showlogs }}{% endif %} + +{% endfor %} {% endif %}