Elasticsearch Kibana SIEM dashboards visualization Wazuh Cybersecurity

Wazuh + Elastic Security: Complete SIEM Setup Guide

Build a complete SIEM by integrating Wazuh with Elastic Security. Step-by-step install of Elasticsearch, Kibana and Filebeat plus real-time alert dashboards.

AI Security
8 min read
Background

To integrate Wazuh with Elastic Security, install Elasticsearch and Kibana 8.x, deploy the Wazuh Manager and connect them through the Filebeat module configured with the Wazuh template. The result is a complete SIEM that centralizes alerts, visualizes events in real time and correlates threats from a single dashboard.

How do you integrate Wazuh with Elastic Security for a complete SIEM?

The need for a robust Security Information and Event Management (SIEM) system is critical. Wazuh, as an open-source security platform, delivers threat detection and file integrity monitoring, but its true potential is unlocked when combined with the Elastic stack (Elasticsearch, Kibana) for storage, analysis and visualization. This guide takes you from installation to working dashboards for a complete SIEM.

When does a business need Wazuh with Elastic?

An e-commerce company needs to monitor unauthorized access attempts to its web servers in real time, detect changes in critical configuration files and correlate alerts across multiple firewalls. A SIEM integrated with Wazuh and Elastic Security centralizes these logs, applies correlation rules and presents incidents in visual panels so the SOC team can respond in minutes, reducing threat detection time.

What do you need to integrate Wazuh with Elastic Security?

  • Ubuntu 22.04 LTS server (minimum 8GB RAM, 4 CPU cores).
  • Root access or a user with sudo privileges.
  • Internet connection to download packages.
  • Domain or public IP to access Kibana (with proper firewall configuration).

How do you install Wazuh + Elasticsearch + Kibana step by step?

First, install Elasticsearch and Kibana 8.x. Then deploy the Wazuh manager server and finally integrate both using the Wazuh connector for Elastic.

# 1. Install Elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elastic-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/elastic-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-8.x.list
sudo apt update
sudo apt install elasticsearch=8.13.4
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch

# 2. Install Kibana
sudo apt install kibana=8.13.4
sudo systemctl enable kibana
sudo systemctl start kibana

# 3. Install Wazuh Manager
curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh
sudo bash wazuh-install.sh --wazuh-indexer node-1
# During installation you will be asked to set up credentials. Save them.

# 4. Install the Wazuh connector for Elastic
sudo apt install filebeat=8.13.4
curl -so /etc/filebeat/wazuh-template.json https://packages.wazuh.com/4.7/filebeat/wazuh-template.json
sudo filebeat setup --index-management -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'
sudo systemctl daemon-reload
sudo systemctl enable filebeat
sudo systemctl start filebeat

How do you visualize Wazuh alerts in Kibana dashboards?

Once installed, access Kibana (http://YOUR_SERVER:5601) and navigate to the "Security" application. Here you can see Wazuh alerts classified by severity. To build a useful dashboard that shows failed SSH events by source, use the following query in Kibana's "Discover":

rule.groups:"authentication_failed" AND data.win.eventdata.ipAddress:*

To visualize brute-force attempts, create a line chart with the "Terms" aggregation on the `data.win.eventdata.ipAddress` field and a date/histogram sub-bucket. Another useful query to detect changes in sensitive files is:

rule.groups:"syscheck" AND syscheck.event:"modified"

Set up these charts in a new Kibana dashboard, adding a heat map of events by security rule and a table with the top 10 agents with the most alerts. This provides an immediate operational view of your security posture.

What are the best practices for running Wazuh with Elastic in production?

Pinning all three components to the same minor version (8.13.4 in this guide) is the single most important step: a mismatch between the Filebeat template and the Elasticsearch mapping is the most common cause of events failing to index. Beyond version alignment, plan your index lifecycle from day one. A medium-sized environment ingesting 50-100 GB of alerts per day will fill a single node within weeks, so configure an ILM policy that rolls indices over daily and moves data to a warm tier after 7-14 days, keeping hot storage lean and queries fast.

On the detection side, resist the urge to alert on everything. Start by enabling correlation rules for the threats that actually matter to your business — failed authentication bursts, file integrity changes on sensitive directories and privilege escalations — and tune their levels so that anything at level 12 or above pages the on-call analyst. Combined with role-based access in Kibana and TLS between every tier, this turns the stack from a noisy log bucket into a SOC-grade detection platform that an analyst can trust.

Conclusion

The combination of Wazuh and Elastic Security forms an enterprise-grade, open-source, scalable and highly visual SIEM. From log ingestion to forensic investigation in interactive dashboards, this stack covers the full detection and response cycle. The key lies in a solid initial configuration and in designing visualizations that respond to the specific threats your organization faces. Need help deploying or customizing your SIEM? Request a free consultation with our experts.

Frequently Asked Questions

How do you integrate Wazuh with Elastic Security?

Install Elasticsearch and Kibana 8.x, deploy the Wazuh Manager and connect them through the Filebeat module configured with the Wazuh template. Filebeat ships the alerts.json events into Elasticsearch indices that Kibana then visualizes in real time.

What are the minimum hardware requirements for a Wazuh + Elastic SIEM?

For a starter lab or small deployment plan for an Ubuntu 22.04 LTS server with at least 8 GB of RAM and 4 CPU cores. Elasticsearch is JVM-based and memory-hungry, so production environments handling more than a few hundred agents typically need 16-32 GB of RAM and dedicated indexer nodes.

Which versions of Elasticsearch and Kibana are compatible with Wazuh 4.7?

Wazuh 4.7 is validated against the Elastic 8.x line. The guide pins Elasticsearch, Kibana and Filebeat to 8.13.4 so all three components share the same index templates and avoid mapping conflicts during ingestion.

How long does it take to detect a threat with this SIEM?

Once correlation rules and dashboards are in place, a properly tuned Wazuh + Elastic SIEM surfaces critical alerts to the SOC within minutes of the event, cutting mean time to detect from the hours typical of manual log review.

Is Wazuh with Elastic Security free and open source?

Yes. Both Wazuh and the core Elastic stack components used here are open source, so there are no per-agent licensing fees. The main cost is the infrastructure and the engineering time to deploy, tune and maintain the platform.


Need to implement this solution? Request a free consultation here.

Background