Tutorials · Security Operations
How to Build a Free SIEM With Wazuh for Network and Server Logs
A SIEM collects logs from servers, firewalls and switches in one place and alerts on attacks. Install Wazuh, add agents and syslog sources, and tune the first alerts.
Before you start
- A Linux server with at least 4 vCPU, 8 GB RAM and 50 GB disk (more for long retention)
- Network access from your devices to the SIEM (agent TCP 1514/1515, syslog UDP/TCP 514)
- Admin access to servers and network devices
Step by step
Install the all-in-one server
Wazuh's install assistant sets up the indexer, server and dashboard on one machine. It prints the admin password at the end: store it in your password manager.
curl -sO https://packages.wazuh.com/4.x/wazuh-install.sh sudo bash ./wazuh-install.sh -a
Open the dashboard
Browse to https://<siem-server> and log in as admin. Replace the self-signed certificate with one from your internal CA.
Add server agents
In the dashboard choose Deploy new agent; it gives you the exact install command for Windows, Linux or macOS with your server address.
Receive syslog from network devices
Add a remote syslog listener in /var/ossec/etc/ossec.conf, restart, and point switches, gateways and firewalls to the SIEM.
<remote> <connection>syslog</connection> <port>514</port> <protocol>udp</protocol> <allowed-ips>10.1.99.0/24</allowed-ips> </remote> sudo systemctl restart wazuh-manager
Check that events arrive
Generate a test: a failed admin login on a switch or a failed SSH login on a server should appear in Threat Hunting within a minute.
Tune the noise
Look at the top 10 alerts of the first week. Fix real problems, and lower or suppress rules that fire on normal behaviour, so real alerts stand out.
Set alerting
Send high-severity alerts (level 10+) by email or to your chat tool, and define who responds and how fast.
Commands are generic, industry-standard examples. Exact syntax and menu names vary by model and firmware; check your device's manual on the Documentation page.
Pro tips
- Synchronise time (NTP) on every source: logs with wrong timestamps are useless in an investigation.
- Decide retention by policy and law; 90 days searchable plus 1 year archived is a common start.
- Protect the SIEM itself: admin access only from the management VLAN with MFA.
FAQ
Frequently asked questions
Is Wazuh really free?
Yes, Wazuh is open source. Paid support and a cloud service are optional.
Do I still need a SIEM if I have NavCloud?
NavCloud shows network health and device events. A SIEM correlates security events from all systems, including servers, endpoints and cloud services.
Keep learning
Related guides
Monitor with SNMP and syslog
Read more →Detect attacks with Suricata IDS
Read more →First 60 minutes of an incident
Read more →How to Set Up a WireGuard VPN Server for Remote Access
WireGuard is a fast, modern VPN with a small, auditable code base. Build a WireGuard server on Linux, add users with their own keys and route them only to the networks they need.
Read more →How to Scan Your Network for Vulnerabilities With Nmap and OpenVAS
Find open ports, outdated services and known vulnerabilities before attackers do. Discover hosts with Nmap, then run authenticated vulnerability scans with Greenbone OpenVAS and fix what matters first.
Read more →How to Detect Network Attacks With Suricata IDS on a Mirror Port
An intrusion detection system watches a copy of your traffic and alerts on scans, exploits and malware traffic. Install Suricata on a sensor connected to a switch mirror port.
Read more →Stuck on a step?
Ask Navijin technical support or an authorised partner for help with your configuration.