Usage
Configuring the email notifications channel
In Wazuh Dashboard, go to Notifications > Channels and click on Create channel:
- Fill in a name (e.g
Email notifications
). - Select Email as Channel Type.
- Check SMTP sender as Sender Type.
- Click on Create SMTP sender.
- Fill in a name (e.g
mailpit
). - Fill in an email address.
- In Host, type
mailpit
(adapt this to your SMTP server Domain Name). - For port, type 1025 (adapt this to your SMTP server settings).
- Select None as Encryption method.
- Click on Create.
- Fill in a name (e.g
- Click on Create recipient group.
- Fill in a name (e.g
email-notifications-recipient-group
). - On Emails, type any email.
- Click on Create.
- Fill in a name (e.g
The fields should now be filled in as follows:
- Click on Send test message to validate the configuration, a green message should pop up.
- Finally, click on Create.
More information on how to configure the email notifications channel can be found in the OpenSearch documentation.
Creating a new report
For more information on how to create reports, please refer to the OpenSearch documentation. The reporting plugin also allows you to create notifications following the behaviour on OpenSearch's notifications plugin.
Generate and download a report
To create a new report you must have predefined the report settings. Once the report is configured, you can generate it by clicking the "Generate Report" button. This is only available on "On demand" report definitions as scheduled reports will be generated automatically. The report will be processed and made available for download at the Reports section on Explore -> Report.
You can also create a csv or xlsx report without a report definition by saving a search on Explore -> Discover. Remember to have an available index pattern.
Generate a report definition
Before creating a report definition you must have generated and saved a Dashboard, a Visualization, a search or a Notebook. Then you can do so at the Explore -> Reporting section, choosing the intended configuration. This generates PDF/PNG reports or CSV/XLSX reports in case a saved search is selected.
Managing permissions on reporting via RBAC
The Reporting plugin uses the Wazuh Indexer RBAC (role-based access control) system to manage permissions. This means that users must have the appropriate roles assigned to them in order to create, read, update, or delete reports. The roles can be managed through the Wazuh Dashboard Index Management -> Security -> Roles section. The following permissions are available for the Reporting plugin:
1. cluster:admin/opendistro/reports/definition/create
2. cluster:admin/opendistro/reports/definition/update
3. cluster:admin/opendistro/reports/definition/on_demand
4. cluster:admin/opendistro/reports/definition/delete
5. cluster:admin/opendistro/reports/definition/get
6. cluster:admin/opendistro/reports/definition/list
7. cluster:admin/opendistro/reports/instance/list
8. cluster:admin/opendistro/reports/instance/get
9. cluster:admin/opendistro/reports/menu/download
There are already some predefined roles that can be used to manage permissions on reporting:
reports_read_access
: permissions 5 to 9.reports_instances_read_access
: 7 to 9.reports_full_access
: permissions 1 to 9.
More information on how to modify and map roles on the Wazuh Indexer can be found in the Wazuh Indexer documentation.