Hello Arthur,
I believe you’re setting up your Mikrotik router to send its logs to your Wazuh server.
There are several ways by which you can forward syslogs from network devices to Wazuh server.
You can either forward syslog directly to the Wazuh manager or via an agent using
rsyslog.
To directly forward syslog to the Wazuh manager you can follow these steps:
Set up Syslog on Mikrotik:- Open Mikrotik settings.
- Go to System > Logging.
- Add a new action:
remoteAddress:
Your Wazuh Server IPPort:
514Configure Wazuh to Receive Logs:- Edit the Wazuh config file
(/var/ossec/etc/ossec.conf).
- Add this block:
<remote>
<connection>syslog</connection>
<port>514</port>
</remote> - Restart Wazuh manager:
systemctl restart wazuh-manager
After you have correctly configured both the Mikrotik to send the logs, and the wazuh-manager to receive them, then you will see the logs stored as events in the file
/var/ossec/logs/archives/archives.log. Make sure you have changed
<logall>no</logall> to
<logall>yes</logall> from the manager’s configuration file to enable archive logs.
To learn more about how to forward syslog events, check out this documentation
hereAlternatively, you can configure
rsyslog client to send events to Wazuh manager.
Here is a step-by-step guideline on how to configure rsyslog client.
Then you can follow the steps mentioned in this blog which provides a walkthrough on using Wazuh to monitor a MikroTik router:
https://wazuh.com/blog/monitoring-network-devices/After forwarding the logs if the alerts are not reflected on the dashbaord you may need to enable archive logs and see if the logs are actually forwarded or not. However, if the logs are in the archive but not generating alerts you may need to write a decoder and rules to trigger alerts based on the log.
Reerence:
https://wazuh.com/blog/creating-decoders-and-rules-from-scratch/Feel free to knock me if you have any questions.