1. You can use Daily Reports to be sent once a day via email (automatically)
- # cat /var/ossec/logs/alerts/alerts.log | /var/ossec/bin/ossec-reportd -n "Daily report: Alerts with level higher than 10" -s -f level 10 2> report-test.txt
2. Wazuh report isn't designed to dynamically modify the content of the report. As Wazuh is open source you can modify Wazuh App modules to adapt them to your necessity, but it's not guaranteed to work correctly after any modification. i.e., if you need to modify the title of the pdf, you can heck
tab-description.js and modify the title and the description following the below steps (I have attached snapshots of these steps from a similar question thread):
- go to /usr/share/kibana/plugins/wazuh/server/reporting/tab-description.js
- change the title or description that you want to change. (Under responsibility)
- restart Kibana using
systemctl restart kibana.
Also, the controller file that generates the content of the report is located
here.
Let me know if this helps, and if you have further doubts please don't hesitate to ask.
Best regards.