Hi again!
First of all, Kleszczka, thanks for collaborating with our community!
Let’s try the following. Could you please enable the logall_json
option on your manager’s ossec.conf
file and then reset your manager?
In case you can, then check on your /var/ossec/logs/ossec.log
file that your manager is actually listening to the ports you’ve set. To check that, you could try doing:
# cat /var/ossec/logs/ossec.log | grep 514
2022/05/13 13:40:59 wazuh-remoted: INFO: Started (pid: 10973). Listening on port 514/UDP (syslog).
2022/05/13 13:40:59 wazuh-remoted: INFO: Started (pid: 10972). Listening on port 514/TCP (syslog).
And you should see an output similar to the previous one. Take into account that, if you have restarted multiple times your manager with a similar configuration, such messages can appear many times, please check that the last ones are actually new ones (not old logs).
In case of everything looks well, you can now check If your manager is actually receiving the messages by sending a remote log (you would need to use another endpoint to send such logs). This can be done by doing the following:
# echo "TESTING-REMOTE-SYSLOG" | nc -w 0 YOUR_WAZUH_MANAGER_IP 514
# cat /var/ossec/logs/archives/archives.json | grep "TESTING-REMOTE-SYSLOG"
{"timestamp":"2022-05-13T13:47:04.005+0000","agent":{"id":"000","name":"10-u20-manager"},"manager":{"name":"10-u20-manager"},"id":"1652449624.98890","full_log":"TESTING-REMOTE-SYSLOG","decoder":{},"location":"192.168.10.1"}
If everything works correctly, it should print on your manager’s terminal a similar output as the previous one.Please, let us know how it goes, so we can continue analyzing the problem!
I will be waiting for your reply,
Mariano Koremblum
Ok, from the remote terminal, now please do the following:
# nmap -p 514 YOUR_WAZUH_MANAGER_IP
It should show something like the following:
PORT STATE SERVICE
514/tcp open upnp
If not, if it says “filtered” instead of “open” then probably you are having a firewall issue.
Mariano Koremblum
Hi Dmitry,
What is the output you get when you perform the netcat
command?:
echo "TESTING-REMOTE-SYSLOG" | nc -w 0 YOUR_WAZUH_MANAGER_IP 514
I will be waiting for your reply
Dmitry,
On the archives every single log that arrives at the manager is stored, no matter if it produces an alert or not. If such a log produces an alert, after being decoded and matched against the rules, then it is stored on the alerts files and then indexed and displayed on the Wazuh dashboard.
In your case, you are indeed receiving the logs on your manager but these logs are not producing any alert, probably because of a lack of decoders and rules for such logs.
To make your own custom rules and decoders I would strongly recommend you to read the following links:
If you still need help with creating the rules and decoders you can always ask for our assistance,
Best Regards,
Mariano Koremblum