• Post author:Bhaskar Soni
  • Post published:
  • Post category:Blue Team & SOC
  • Post comments:0 Comments
  • Reading time:13 mins read

Last updated: 28 October 2026. Sources are listed at the end.

A single-server Wazuh setup gives a small business one place to collect logs, watch important files and spot known vulnerabilities across its servers and laptops. Wazuh is free and open source. It runs on one Linux machine for up to about 100 endpoints, so you do not need a cluster to start.

This guide is for sysadmins and small business owners in India who want a working SIEM without a big licence bill. It covers sizing, the all-in-one install, locking down the dashboard and the first settings worth changing.

We could not install Wazuh in our lab container. So the install and agent commands come from the official Wazuh documentation; we did not run them in our lab. We did check that every XML and JSON snippet is well-formed.

The short answer

  • The current release is Wazuh 4.14.9 (14 October 2026). The quickstart installs the indexer, server and dashboard on one host with wazuh-install.sh -a.
  • For up to 25 agents, Wazuh suggests 4 vCPU, 8 GiB RAM and 50 GB of disk for 90 days of alerts.
  • Keep the dashboard (port 443) off the internet. Agents only need to reach ports 1514 and 1515.
  • Change the admin password the installer gives you, and set an index retention policy on day one.
  • Start with file integrity monitoring on /etc and your web root, the built-in SSH rules, vulnerability detection and the CIS checks.
  • Someone on your team still has to read the alerts every working day.

What Wazuh does for a small business

A small agent runs on each endpoint, and a central server analyses what the agents send. You read the results in the dashboard. The useful features for a small office are:

  • Log analysis: it reads system, SSH, web server and Windows event logs and matches them against thousands of built-in rules.
  • File integrity monitoring (FIM): it alerts when watched files are created, changed or deleted.
  • Vulnerability detection: it compares installed packages against vulnerability feeds and lists the CVEs that apply to each host.
  • Security configuration assessment (SCA): it checks hosts against policies mostly based on CIS benchmarks. There are policies for Ubuntu 24.04, Windows 11 Enterprise and Windows Server 2022, among others.
  • Active response: it can run a script, such as a firewall block, when a rule fires.

What Wazuh does not do

Wazuh is not a managed SOC. It does not decide what is a real incident, and if nobody opens the dashboard, alerts pile up unread.

So before you install anything, decide who reviews alerts, how often, and what they do with a serious one. For a small team, a short review each morning is a realistic start. Also, Wazuh does not replace patching, backups or SSH hardening. It tells you when those controls fail.

Sizing your Wazuh setup: 10, 25 or 50 agents

The quickstart page gives one table for an all-in-one host. It says this is usually enough for up to 100 endpoints and 90 days of queryable alerts.

AgentsCPURAMDisk (90 days of alerts)
104 vCPU8 GiB50 GB
254 vCPU8 GiB50 GB
508 vCPU8 GiB100 GB
51 to 1008 vCPU8 GiB200 GB

The 10-agent row uses the “1 to 25” tier, because Wazuh publishes no smaller one. The server needs a 64-bit x86_64 or ARM64 CPU. Recommended operating systems include Ubuntu 22.04 and 24.04, RHEL 8 to 10, Amazon Linux 2023 and CentOS Stream 10.

Disk is the number that varies most in any Wazuh setup, because it depends on how chatty your hosts are. If you plan to keep 180 days instead of 90, start with roughly double the disk and watch actual growth for a month. That doubling is our rough estimate, not a Wazuh figure.

Plan retention with an index policy

To expire old alerts automatically, add an index state management (ISM) policy. In the dashboard, open menu ☰, then Indexer management, Index Management, State management policies and Create policy.

The policy below is based on the example in the Wazuh index lifecycle guide, with the age changed to 180 days. We only checked that it is valid JSON.

{
  "policy": {
    "description": "Wazuh alerts retention policy",
    "default_state": "retention_state",
    "states": [
      {
        "name": "retention_state",
        "actions": [],
        "transitions": [
          { "state_name": "delete_alerts", "conditions": { "min_index_age": "180d" } }
        ]
      },
      {
        "name": "delete_alerts",
        "actions": [ { "delete": {} } ],
        "transitions": []
      }
    ],
    "ism_template": [
      { "index_patterns": ["wazuh-alerts-*"], "priority": 1 }
    ]
  }
}

The template only applies to new indices. For existing ones, select them under Index Management, then Indices, and use Actions, then Apply policy.

Single-server Wazuh setup step by step

These commands come from the official documentation; we did not run them in our lab. Use a fresh Ubuntu 24.04 server with nothing else on it.

Step 1: Run the installation assistant

This downloads the 4.14 assistant and installs all three central components on one host.

curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh && sudo bash ./wazuh-install.sh -a

At the end, the assistant prints the dashboard URL and the admin password. Save both in your password manager.

Step 2: Find the other passwords

The assistant also creates wazuh-install-files.tar in the current directory. This command prints the indexer and API passwords from it.

sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt

Afterwards, move that tar file somewhere safe, because it holds credentials and certificates.

Step 3: Stop accidental upgrades

The quickstart recommends disabling the Wazuh package repository after install. Otherwise, a routine apt upgrade could upgrade one component out of step with the others. On Ubuntu, the agent and server install guides show how to comment out the Wazuh line in /etc/apt/sources.list.d/wazuh.list.

Step 4: Enrol your first Ubuntu agent

On each Linux endpoint, add the Wazuh repository as shown in the agent install guide. Then install the agent with the manager address set. Replace 10.0.0.2 with your Wazuh server’s IP or hostname.

sudo WAZUH_MANAGER="10.0.0.2" apt-get install wazuh-agent
sudo systemctl daemon-reload
sudo systemctl enable --now wazuh-agent

The agent must not be newer than the manager. Therefore, upgrade the server first, then the agents.

Step 5: Enrol a Windows agent

On Windows, download the 4.14.9 MSI from the Wazuh packages site and run this in an administrator PowerShell window. Then start the service.

msiexec.exe /i .\wazuh-agent-4.14.9-1.msi /q WAZUH_MANAGER="10.0.0.2"
Start-Service wazuhsvc

Alternatively, the dashboard can generate these commands for you under Agents management, then Summary, then Deploy new agent.

Secure the Wazuh dashboard before anything else

The dashboard shows every weakness in your network, so treat it like a domain admin console.

First, change the default admin password with the Wazuh passwords tool. In an all-in-one deployment, the tool updates the other components that need the new password.

curl -so wazuh-passwords-tool.sh https://packages.wazuh.com/4.14/wazuh-passwords-tool.sh
sudo bash wazuh-passwords-tool.sh -u admin -p 'Your-New-Str0ng-Passw0rd*'

Next, restrict network access. These are the ports that matter on a single server:

PortUsed byWho should reach it
1514/TCPAgent connection (events)Agent networks only
1515/TCPAgent enrolmentAgent networks only, during enrolment
443/TCPDashboard (HTTPS)Admin network or VPN only
55000/TCPServer APILocalhost, or admin network if needed
9200/TCPIndexer APILocalhost on an all-in-one host

For example, with ufw you could allow agents from one subnet and the dashboard from your VPN range. We did not test these ufw rules in the lab, because ufw is not installed in our container.

sudo ufw allow from 10.10.0.0/24 to any port 1514,1515 proto tcp
sudo ufw allow from 10.8.0.0/24 to any port 443 proto tcp
sudo ufw allow OpenSSH
sudo ufw enable

Also, the installer uses self-signed certificates, so browsers will warn. That is acceptable on a private network, or you can use a certificate from your internal CA. If staff work from home, reach the dashboard over a VPN instead of opening port 443. Finally, lock down SSH on the Wazuh server itself with our SSH hardening checklist for Ubuntu 24.04.

First useful configuration

Vulnerability detection is enabled by default, with feeds updated every 60 minutes. SCA is also on by default and scans every 12 hours. So your first changes are about files and SSH.

Watch /etc and your web root in real time

By default, FIM scans /etc, /usr/bin, /usr/sbin, /bin and /sbin on a schedule. For servers, add real-time monitoring of /etc and the web root. You can put this in the agent’s ossec.conf, or in the shared agent.conf on the server to manage many agents centrally. We checked that this snippet is well-formed XML.

<agent_config>
  <syscheck>
    <directories realtime="yes" report_changes="yes">/etc</directories>
    <directories realtime="yes">/var/www</directories>
    <nodiff>/etc/shadow</nodiff>
  </syscheck>
</agent_config>

The report_changes option stores text diffs, so nodiff keeps secrets like /etc/shadow out of the alerts. Restart the agent afterwards with sudo systemctl restart wazuh-agent.

Use the built-in SSH rules

Wazuh already decodes sshd logs. For example, rule 5710 fires on logins with non-existent users, and rule 5763 fires on SSH brute force. Wazuh and fail2ban work well together: fail2ban blocks on each host, while Wazuh shows the pattern across all servers. See our guide to detecting SSH brute-force attacks with fail2ban.

Reduce alert noise

Wazuh rules have levels from 0 to 16. Level 0 means “ignore”, and the higher levels are the serious ones. If every alert lands in your inbox, people stop reading them, so send email only for the high levels.

First, set email to send only level 10 and above. The email_alert_level default is 12, so this is slightly more sensitive. These settings go in /var/ossec/etc/ossec.conf on the server.

<ossec_config>
  <global>
    <email_notification>yes</email_notification>
    <smtp_server>127.0.0.1</smtp_server>
    <email_from>wazuh@example.in</email_from>
    <email_to>it-alerts@example.in</email_to>
    <email_maxperhour>12</email_maxperhour>
  </global>
  <alerts>
    <log_alert_level>3</log_alert_level>
    <email_alert_level>10</email_alert_level>
  </alerts>
</ossec_config>

These settings have no username or password field. If your mail provider needs a login, the documentation describes relaying through a local Postfix.

A short custom rule

Next, raise the alerts you really care about. Custom rules go in /var/ossec/etc/rules/local_rules.xml and should use IDs between 100000 and 120000. This one turns a successful SSH login as root (built-in rule 5715) into a level 12 alert. We validated the XML with xmllint and Python.

<group name="local,sshd,">
  <rule id="100100" level="12">
    <if_sid>5715</if_sid>
    <user>root</user>
    <description>sshd: successful root login</description>
  </rule>
</group>

Test it with /var/ossec/bin/wazuh-logtest by pasting a sample log line. Then restart the manager with sudo systemctl restart wazuh-manager. To lower a noisy built-in rule, copy it into local_rules.xml, change the level and add overwrite="yes". Never edit files under /var/ossec/ruleset/rules, because upgrades overwrite them.

Use active response with care

Active response can block an IP with firewall-drop when rule 5763 fires. The documented example blocks for 180 seconds, which slows down automated attacks. However, a wrong rule can block your own office, your monitoring server or a payment gateway callback.

So start in alert-only mode for a few weeks. When you do enable blocking, add your office, VPN and monitoring ranges to <white_list> in the <global> section. Also keep timeouts short and review every block in the dashboard.

Backups and upgrades

Back up your Wazuh setup before every change. The backup guide lists the paths; the most important are /var/ossec/etc/ (including client.keys and local_rules.xml), /var/ossec/api/configuration/, /etc/filebeat/, /etc/wazuh-indexer/ and /etc/wazuh-dashboard/. Without client.keys, every agent must enrol again.

For upgrades, read the release notes, take an index snapshot and export dashboard saved objects. Then upgrade the indexer, server and dashboard, and only then the agents. Wazuh 4.12 and later cannot be rolled back to 4.11 or earlier without a fresh indexer install.

Cost compared with a commercial SIEM

Wazuh has no licence fee. Your costs are the server, disk for retention and staff time. In contrast, many commercial SIEMs charge by data volume or by endpoint, so cost grows as you add logs. Wazuh also sells a cloud service and support.

For most small teams, the biggest cost of any Wazuh setup is the hours spent reading and tuning alerts. A free tool that nobody checks protects nothing, so pick the option your team can keep up with.

India angle

The CERT-In Directions of 28 April 2022 require service providers and other covered entities to enable logs of all ICT systems. They must keep them securely for a rolling 180 days. The text says “within the Indian jurisdiction”, although the CERT-In FAQ (Q35) says logs may be stored outside India if they can still be produced to CERT-In. The same Directions require incidents to be reported within 6 hours of noticing them.

A Wazuh setup on a server in India, with a 180-day ISM policy, covers the log part of this for the systems you enrol. In addition, the DPDP Rules 2025, from about May 2027, expect data fiduciaries to log access to personal data and keep those logs for a year. Rule 7 also needs a detailed breach report to the Data Protection Board within 72 hours. Check your own obligations with counsel, and see our DPDP compliance checklist.

Quick checklist

  • ☐ Decide who reads alerts, and when, before installing
  • ☐ Size the server from the agent table and plan disk for your retention period
  • ☐ Install with wazuh-install.sh -a and save the admin password
  • ☐ Disable the Wazuh repository to prevent accidental upgrades
  • ☐ Change the admin password with wazuh-passwords-tool.sh
  • ☐ Allow 1514/1515 from agent networks only; keep 443 on VPN or admin network
  • ☐ Add an ISM retention policy (180 days if CERT-In applies)
  • ☐ Enable real-time FIM on /etc and your web root
  • ☐ Set email_alert_level and add one or two custom rules
  • ☐ Keep active response off until tuned, then use white_list
  • ☐ Back up /var/ossec/etc/ and the component configs before upgrades

Wazuh works best on servers that are already hardened. Start with our free Linux server hardening checklist, and see our SOC lab on Linux post for a practice environment. If you want a second pair of eyes on your servers, our Linux server hardening audit covers it, or contact us.

Related guides

Sources

Running Linux servers in production? Our Linux server hardening & security audit checks configuration, patching, SSH and logging. You can also use our free Linux server hardening checklist, or contact us.

Post author avatar

Bhaskar Soni

Bhaskar Soni is a Security Engineer and the founder of Youngster Company, based in Ahmedabad, Gujarat. He works hands-on with Linux server hardening, vulnerability assessment and penetration testing (VAPT), ISO 27001 compliance and OSINT investigations. He writes practical, tested guides for IT professionals and Indian businesses, and every article on this site is written or reviewed by him.

Leave a Reply