Thanks for the help,
My confusion was the one you explained about in the later part about
changing this parameter
config-profile in the
ossec.conf on a Wazuh Agent via centralized configuration.
To highlight what I concluded using wazuh documentation and the above query reply,
Example: 1. group name =
"
custom_group " I have 150 agents assigned to this group, and now I need some agent with name "
haproxy", "
nginx" to fetch one more logs file at some path,
* For this I need to push the configuration to the agents using my wazuh-manager.
* Now I need to add this configuration in the file with path as "
/var/ossec/etc/shared/custom_group/agent.conf",
Taking in account I need to add a filter for wazuh agent name as:
<
agent_config name="haproxy">
<localfile>
<location>/var/log/my.log</location>
<log_format>syslog</log_format>
</localfile>
</agent_config>
* We can use the filter for the agents already installed and the configuration will be pushed to all agents present in the group but the configuration would effect the agent with the name haproxy only.
* We can not set
<config-profile> for an already installed agent using wazuh-manager(only possible to edit on wazuh-agent itself) , and then add the configuration for a profile in
/var/ossec/etc/shared/custom_group/agent.conf
<agent_config profile="PROXY">
<localfile>
<location>/var/log/my.log</location>
<log_format>syslog</log_format>
</localfile>
</agent_config>
Please do let me know that I have not misunderstood any of the above functionality.