Hi,
I have configured syslog on Fortigate firewalls enabling me to receive the firewall logs on Wazuh manager and visualize them on the dashboard.
However, I have a multitenancy setup on the Wazuh instance and I want to assign the firewall logs to a one tenant such that the other tenant cannot see them.
I have tried the following:
1. Modifying the injest pipeline file (/usr/share/filebeat/module/wazuh/alerts/ingest/pipeline.json, /usr/share/filebeat/module/wazuh/archives/ingest/pipeline.json) to read logs from fortigate-combined.log by inserting the following configs on the above named file locations to set field and value fields
{ "set": { "if": "ctx.location != null && ctx.location.contains('fortigate-combined.log')", "field": "@org", "value": "", ClientA "ignore_failure": true } }
2. Adding a label to the firewall logs using filebeat by editing the filebeat config file (/etc/filebeat/filebeat.yml) and adding the following configs
processors: - add_fields: when: contains: log.file.path: "fortigate-combined.log" fields: "@org": "ClientA" target: ""