Add the following configuration in between the <ossec_config> tags of the Wazuh server /var/ossec/etc/ossec.conf file to listen for syslog messages on TCP port 514:
Where:
<connection> specifies the type of connection to accept. This value can either be secure or syslog.
<port> is the port used to listen for incoming syslog messages from endpoints. We use port 514 in the example above.
<protocol> is the protocol used to listen for incoming syslog messages from endpoints. The allowed values are either tcp or udp.
<allowed-ips> is the IP address or network range of the endpoints forwarding events to the Wazuh server. In the example above, we use 192.168.2.15/24.
<local_ip> is the IP address of the Wazuh server listening for incoming log messages. In the example above, we use 192.168.2.10.
Refer to remote - local configuration documentation for more information on remote syslog options.
Restart the Wazuh manager to apply the changes:
The allowed-ips label is mandatory. The configuration will not take effect without it.
If you have a central logging server like Syslog or Logstash in place, you can install the Wazuh agent on that server to streamline log collection. This setup enables seamless forwarding of logs from multiple sources to the Wazuh server, facilitating comprehensive analysis.
Thanks a lot, Marcos.
I did what you suggested, turned on "archives.json" and got this message. I also gave "wazuh-logtest" a shot to see what's up, and here's what I found. If I'm messing something up, please give me a heads-up.
[root@wazuh-server ~]# cat /var/ossec/logs/archives/archives.json | grep 'Authenticating native user'
{"timestamp":"2024-04-08T09:15:52.374+0800","rule":{"level":2,"description":"Unknown problem somewhere in the system.","id":"1002","firedtimes":1,"mail":false,"groups":["syslog","errors"],"gpg13":["4.3"]},"agent":{"id":"000","name":"wazuh-server"},"manager":{"name":"wazuh-server"},"id":"1712538952.144165043","full_log":"1 2024-04-08T01:15:52.373Z ESETSRV ERAServer 3348 - - {\"event_type\":\"Audit_Event\",\"ipv4\":\"192.168.10.12\",\"hostname\":\"ESETSRV\",\"source_uuid\":\"89dbe6b0-a42f-45bc-bdae-36709f45c656\",\"occured\":\"08-Apr-2024 01:15:52\",\"severity\":\"Error\",\"domain\":\"Native user\",\"action\":\"Login attempt\",\"detail\":\"Authenticating native user 'abc'.\",\"user\":\"\",\"result\":\"Access denied\"}","decoder":{},"location":"192.168.10.12"}