Hi
exeteste,
You need to configure rsyslog on the endpoint where the Wazuh agent is installed. The installation steps for the Wazuh agent are here:
https://documentation.wazuh.com/current/installation-guide/wazuh-agent/index.html
To configure rsyslog, edit the file /etc/rsyslog.conf and add a rule to store logs from the SonicWall device into a specific file. For example:
You can refer to this documentation for syslog forwarding:
https://documentation.wazuh.com/current/cloud-service/your-environment/send-syslog-data.html
After rsyslog starts storing the SonicWall logs into a file, configure the Wazuh agent to monitor that file using a localfile entry in ossec.conf. For example:
refer:
https://documentation.wazuh.com/current/user-manual/capabilities/log-data-collection/index.html
Update the configuration with your correct log path and format, then restart the agent.
Once this is done, check the agent log to confirm the file is being monitored:
If the file is being monitored, check the Wazuh dashboard to see if alerts appear.
If you do not see any alerts or events, enable archives logging to confirm whether logs are being received.
Documentation:
https://documentation.wazuh.com/current/user-manual/manager/event-logging.html
Note: enabling archives.json consumes disk space and is not recommended for production environments.
Hello Stuti,
thank you again for your explanation, it really helped me understand the pipeline better.
I would like to clarify our architecture, as I believe this is where my confusion came from:
We are running two separate environments (both in Docker via Portainer):
"spielwiese" → this is where rsyslog is collecting the logs and forwarding them into Kafka
"siem01" → this is where the Wazuh manager, indexer, and dashboard are running
On the "spielwiese" system, the logs are written into a Kafka topic directory:
/opt/docker/rsyslog/data/syslog-0/
This directory contains files such as:
*.log
*.index
*.timeindex
So this appears to be Kafka broker storage rather than a plain-text syslog file.
On the Wazuh side ("siem01"), I configured a localfile pointing to:
/opt/docker/rsyslog/data/syslog-0/00000000000000000000.log
Wazuh reports:
"Analyzing file: '/opt/docker/rsyslog/data/syslog-0/00000000000000000000.log'"
However:
I do not see any alerts in the dashboard
I do not see meaningful entries in archives
Given this setup, I now suspect two possible issues:
The file I configured is a Kafka segment file, not a plain syslog file
The file is physically located on a different host ("spielwiese"), not on the Wazuh manager ("siem01")
Could you please confirm:
Is it supported to use Kafka segment files as a localfile source in Wazuh?
If not, would the correct approach be to consume the Kafka topic into a plain-text log file first and then let Wazuh monitor that file?
Alternatively, would it be better to forward logs directly from rsyslog on "spielwiese" to the Wazuh manager on "siem01" via syslog?
Thank you again for your help!