Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 2.1 KB

wazuh-configuration.md

File metadata and controls

64 lines (43 loc) · 2.1 KB

Wazuh Configuration Management

Managing Wazuh Configuration File

The Wazuh manager configuration file in the LME setup is located at:

/opt/lme/config/wazuh_cluster/wazuh_manager.conf

This file is mounted into the Wazuh manager container running in Podman. Here's how to manage this configuration:

Editing the Configuration File

  1. Open the file with your preferred text editor (you may need sudo privileges):

    sudo nano /opt/lme/config/wazuh_cluster/wazuh_manager.conf
    
  2. Make the necessary changes to the configuration file. Some important sections you might want to modify include:

    • <global>: Global settings for Wazuh
    • <ruleset>: Define rules and decoders
    • <syscheck>: File integrity monitoring settings
    • <rootcheck>: Rootkit detection settings
    • <wodle>: Wazuh modules configuration
  3. Save the changes and exit the editor.

Applying Configuration Changes

After modifying the configuration file, you need to restart the Wazuh manager service for the changes to take effect:

  1. Restart the Wazuh manager container:

    podman restart lme-wazuh-manager
    

    or with systemctl

    sudo systemctl restart lme-wazuh-manager.service
    
  2. Check the status of the Wazuh manager to ensure it started successfully:

    podman logs lme-wazuh-manager
    

This command will validate your configuration and report any errors.

Best Practices

  1. Always backup the configuration file before making changes:

    sudo cp /opt/lme/config/wazuh_cluster/wazuh_manager.conf /opt/lme/config/wazuh_cluster/wazuh_manager.conf.bak
    
  2. Use comments in the configuration file to document your changes.

  3. Test configuration changes in a non-production environment before applying them to your production setup.

  4. Regularly review and update your Wazuh configuration to ensure it aligns with your current security needs and policies.

Remember to consult the official Wazuh documentation for detailed information on all available configuration options.