Hi Cezar,
I hope you are well today and thank you for using the Wazuh community!
Regarding your issue, you mention you have verified and Wazuh seems to be receiving the logs based on your message. Have you ensured the configuration on the Fortigate side matches what you set in the Wazuh Manager? TCP/UDP and port more specifically.
On the other hand, let’s see if the logs are in fact being received and processed by Wazuh:
We can use an option in the Wazuh manager configuration file to do this (#ossec.conf). More information here: logall-json
By default, the manager only writes alerts to the alerts.json file, but if an event does not trigger an alert, it will be discarded. With the logall_json option, we will tell it to write every event it receives to the archives.json file, even if it did not generate an alert. This way we can be sure that the events are in fact reaching the Manager and work from there.
You can use the Wazuh interface to turn on the archives option. Please go to Wazuh->Management->Configuration and click on Edit configuration. Make the change as illustrated below and click Save and then Restart Manager for the changes to take effect.

After this, you can grep the file to make sure the events are written:
grep Fortigate /var/ossec/logs/archives/archives.json
Please let me know your Wazuh manager's version, you can
execute this binary to get this:
/var/ossec/bin/wazuh-control info
Please don’t forget to turn off the logall_json option as it
will use more disk space.
Best regards,
Ariel Ojeda.
Hi Cezar,
If you turned on archives and cannot see the logs there, it means the Wazuh manager is not receiving them, otherwise, you should see the logs there. I sent you the grep command using the device name from the log you shared, if this device is sending logs and they are reaching the Wazuh manager, the grep should work.
Try this for TCPDUMP in the Wazuh manager, please replace DEVICE-IP with the Fortigate IP.
tcpdump -s 0 -i any host DEVICE-IP and udp port 514
tcpdump -s 0 -i any host DEVICE-IP and tcp port 514
Also, please confirm you have set up the device to send the information using the same protocol and port used in the Wazuh manager’s configuration. I.E: when I tried this, my router didn’t let me send using UDP so I had to change the configuration to TCP in the Wazuh manager. The last version also allows to used both UDP and TCP.
I hope this helps!
Best regards,
Ariel Ojeda.