Added support for localfile blocks deployment #16847
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This solves the need to deploy extra localfile configuration blocks for ossec.conf based on OS and OS Version.
The new file is called
localfile-extra.template
. Files should be created under theetc/template/config
folder structure.Current problem was to add the shown localfile block on some macOS versions to use the ULS collection capabilities.
Test - Agent with localfile-extra.template files
We have created a macOS package using this modification in https://github.com/wazuh/wazuh/pull/16078/files
After package installation, we can verify the correct localfile block is included in the wazuh-agent ossec.conf file:
Test - Agent with NO localfile-extra.template files
We tested the packet for an RHEL 9 system with no need for localfile-extra.template configuration. Wazh-agent was installed and worked as expected.