Additionally, when an agent is removed, What exactly is deleted?
Or is there ah way where the agnet doesnt have to be deleted
What I don’t like so much is that I have to delete the agent. Is there a workaround for this? From what I understand, when I delete an agent, I lose all the inventory data and history associated with it.
If there’s no alternative, thats ok but I’d prefer to avoid deleting agents if possible.
Best regards, Felix
I registered all agents via GPO, which deploys an MSI with a custom .mst file.

The client.keys entry is:
"635 Client196 any bb8a28997c6c3964eacb3d32308072f6661f567a41105b2b0b09f1a82331b937"
Since all clients use DHCP, I did not specify an IP address. Both the ADDRESS value and the AUTHD_SERVER value are set to the Wazuh server.
If you need any further information, please let me know.
Best regards,
Felix
Hi Olamilekan,
Thanks again for your help with this! I ran the same kind of test as last time:
Script sending logs every 5 seconds
Disconnected my laptop from LAN, let it run, then reconnected
While testing, I noticed a couple of odd things:
Enrollment Rejection but Logs Still comming in
In the logs, it looks like the manager rejects the enrollment when the client comes back with a new IP. But at the same time, I can still see logs coming in live from that new IP.

One Log Missing
My script wrote 142 logs, but I can only see 141 in the dashboard. I double-checked with Event Viewer, and one definitely went missing in the process.

Please let me know if you spot anything misconfigured, or if I should try adjusting certain parameters to further test this.
Best regards,
Felix
Hi Olamilekan,
I tested it with <key_mismatch>yes</key_mismatch>, and basically, nothing really changed — except that this time, all logs came through successfully.
To be honest, as long as everything works, I can live with the logs. However, is there a way to disable the
wazuh-remoted: WARNING: Agent key already in use: agent ID '854' message?
That would be great.
Best regards,
Felix