Post

wazuh

Wazuh Docker deployment

wazuh

What is Wazuh ?

The Wazuh Security Information and Event Management (SIEM) solution is a centralized platform for aggregating and analyzing telemetry in real time for threat detection and compliance. Wazuh collects event data from various sources like endpoints, network devices, cloud workloads, and applications for broader security coverage.

Requirements

Container memory

We recommend configuring the Docker host with at least 6 GB of memory. Depending on the deployment and usage, Wazuh indexer memory consumption varies. Therefore, allocate the recommended memory for a complete stack deployment to work properly.

Increase max_map_count

Wazuh indexer creates many memory-mapped areas. So you need to set the kernel to give a process at least 262,144 memory-mapped areas.

  • Update the vm.max_map_count setting in /etc/sysctl.conf to set this value permanently.
    1
    
    vm.max_map_count=262144
    
  • To apply the changes, run
    1
    
    sudo sysctl -p
    
  • To verify, run
    1
    
    sysctl vm.max_map_count
    

If you don’t set the max_map_count on your host, the Wazuh indexer will NOT work properly.

Docker engine

Docker compose

Single-node Deployment

  1. Clone the Wazuh repository to your system
    1
    
    git clone https://github.com/wazuh/wazuh-docker.git -b v4.9.2
    
  2. enter into the single-node directory
    1
    
    cd wazuh-docker/single-node
    
  3. Generate self-signed certificates
    1
    
    docker-compose -f generate-indexer-certs.yml run --rm generator
    
  4. Start the Wazuh single-node deployment using docker-compose
    1
    
    docker-compose up -d
    

    The default username and password for the Wazuh dashboard are admin and SecretPassword. For additional security, you can change the default password for the Wazuh indexer admin user.

Exposed ports

By default, the stack exposes the following ports

NamePort
Wazuh TCP1514
Wazuh TCP1515
Wazuh UDP514
Wazuh API55000
Wazuh indexer HTTPS9200
Wazuh dashboard HTTPS443
This post is licensed under CC BY 4.0 by the author.

Trending Tags