Dear Wazuh Team,Hopefully you are doing great, we have earlier raised our concerns on ticket "Default Agent ID 000 | Agent Name | Syslog Integration".
The use-case that we want to achieve is that we have multiple agent-less integration via syslog and they are enrolled to wazuh with agent ID =000 and agent name as localhost.
We were suggested the method from wazuh earlier to change those agent name by sqite3 using field agent id as below:
Open the global.db file using sqlite3
cd /var/ossec/queue/db/
sqlite3 global.db
-Change the name of the agent in agent table
update agent set name='<new_name>' where id=<agent's_id>;
but the problem we are observing is that we have multiple agent-less integrations where multiple agents have same agent ID and its impossible to modify agent name by using above method.
you are requested to share a method where we can change the agent names by using a unique field like location etc.