Hi.
Thanks for the logs and other information provided.
Your configuration file seems okay but there seems to be an error in the logs in Ossec (test.2)
Part of the error noticed was
ERROR: Could not get message for (Application) which has to do with the Windows API on the Windows 11 system which is responsible for obtaining events from Windows logs. The event viewer needs to be checked as to why it can't forward Application related events to wazuh the link
Troubleshoot event message not found could also be helpful. Regarding the error messages you are getting, focusing on the error codes and comparing them with the Windows error codes, we can see that in the log file, the message could not be found (error code 15033). For that, you can also refer to
https://github.com/wazuh/wazuh/issues/3114 Part of the error noticed in ossec test1.
wazuh-agent: ERROR: Connection socket: An existing connection was forcibly closed by the remote host. (10054).
Please set the
windows.debug=2 for windows in /var/ossec/etc/internal_options.conf and restart it in order to get more detailed information on the error.
https://github.com/wazuh/wazuh/issues/19401