Hello Wauh,
To use centralized configuration, you need to understand
agent groups.
Agents can be grouped together in order to send them a unique
centralized configuration that is group specific. Each agent can belong
to more than one group, and unless otherwise configured, all agents
belong to a group called
default.
If that is the case, to set the labels at the Wazuh server, use the specific
agent.conf file.
For example the following configuration will add the label,
group1
to all agents in the configured group:
<agent_config>
<labels>
<label key="agent.set">group1</label>
</labels>
</agent_config>
Hope you find this information helpful.
Regards,
Henadence