It says ossec-remoted(1403): ERROR: Incorrectly formated message from 'my client ip'.

It means that you have imported the wrong authentication keys (maybe from a different agent) or the IP address you configured the agent is different from what the server is seeing. Removing and re-adding the key (make sure the IP is correct) and try again.


In my case, this error was caused by an unsynced queue between server and agent, after server migration.

Queues "/var/ossec/queue/rids" must be copied from an old server. Also, see Wazuh's recommendations for migrating from OSSEC.

You can clear Directory "./rid" on windows agent as workaround.