Wazuh Server

Platform:

Channel Revision Published Runs on
4.11/stable 203 15 Oct 2025
Ubuntu 22.04
4.11/edge 267 Yesterday
Ubuntu 22.04
juju deploy wazuh-server --channel 4.11/stable

How to customize configuration

The configuration of Wazuh is described in the User Manual.

To customize the configuration of your charmed Wazuh, use the custom-config-repository configuration option to reference the repository where your configuration is stored.

Configure a custom configuration repository

The URL of this repository should be in the form git+ssh://git@yourepo@yourref where:

  • yourrepo is the address of your repository.
  • yourref is a Git reference, typically a tag, to specify the version you want to deploy.

For the Wazuh server to be able to retrieve the configuration, we’re using the concept of a deploy key:

  1. Create a SSH key pair.
  2. Add the private key as a Juju secret and retrieve the secret ID:
juju add-secret my-custom-config-ssh-key value=<ssh-key>
juju grant-secret my-custom-config-ssh-key wazuh-server
  1. Configure your deployment to reference this secret with the custom-config-ssh-key option.
  2. Deploy the public key on your Git server. On GitHub, this can be done in your project’s Settings > Security > Deploy Keys.

Set up repository content

Your repository should mimic the layout of the Wazuh server configuration with a var/ossec folder.

All files in the following sub-folders will be mirrored to the Wazuh server (new files will be copied to the server, deleted files will be removed from the server):

  • etc/*.conf
  • etc/decoders/ recursively
  • etc/rules/ recursively
  • etc/shared/*.conf
  • etc/shared/**/*.conf
  • integrations/ recursively

Deploy a new configuration

The Wazuh server charm is not watching the repository for changes.

The recommended way to enforce a configuration update on the server is to update the custom-config-repository with the new Git reference to use.

While Wazuh server is not watching the repository for changes,
it may pull the repository on specific events, such as a restarts.

That's why it's recommended to refer to an fixed Git reference
to avoid unexpected configuration changes on your deployment.

Help improve this document in the forum (guidelines). Last updated 10 months ago.