Adding Suricata network detection to Wazuh with eve.json
If you already run Wazuh for endpoints and want network alerts in the same place, the supported route is to let the Wazuh agent read Suricata's eve.json output. The Wazuh proof-of-concept guide adds a localfile block to the agent configuration that points at /var/log/suricata/eve.json with log_format set to json. After the agent restarts, the Wazuh server parses the events and raises alerts without further custom decoders. The guide was tested with Suricata 6.0.8 on Ubuntu 22.04 using the Emerging Threats ruleset, so confirm that your Suricata version, operating system and ruleset are supported in your own environment before you copy the approach into production.
Suricata itself has to run on a sensor that can see the traffic you care about, such as a mirror or tap port, or a gateway the traffic passes through. The Wazuh agent only reads the log file that Suricata writes, so the agent must be installed on that sensor and the sensor must have a valid view of the network segments you intend to monitor. Decide early which interfaces, VLANs and directions the sensor covers, because that choice determines what Wazuh can ever alert on. Plan for the volume of eve.json on that host and on the Wazuh server, since busy segments generate large logs quickly.
This section covers the integration path only. It is not a substitute for Suricata tuning. Rule selection, interface and capture settings, and suppression of noisy signatures belong to the Suricata configuration, and you should review them with the team that owns the sensor before you treat Wazuh alerts as meaningful. Confirm the Suricata version and rule update process with the Suricata project documentation and your own change process, and check the Wazuh proof-of-concept guide against the agent version you deploy.
What you need before connecting Suricata to Wazuh
Most delays in a Suricata integration come from the host and sensor, not from Wazuh configuration. Confirm the pieces below first, because each one determines whether eve.json reaches the Wazuh agent and whether the alerts that follow are worth reading.
Wazuh agent on the Suricata host
The agent on the sensor is what reads eve.json and forwards events to the Wazuh server, so the sensor must be enrolled before any log collection is added. Confirm the agent version is compatible with the server release line you run, which is the 4.14 line. Check that the agent can reach the manager on its enrollment and event ports, and confirm the agent version against your own environment.
Working Suricata install writing eve.json
Suricata must already be inspecting traffic and writing the JSON event log before Wazuh is involved. Confirm that /var/log/suricata/eve.json exists and fills with events when test traffic passes. The Wazuh guide was tested with Suricata 6.0.8 on Ubuntu 22.04, so confirm your own Suricata version and OS support before you copy its settings.
Ruleset source and update path
Suricata produces alerts only from the rules it loads, and the Wazuh guide was tested with the Emerging Threats ruleset. Decide who owns rule updates, how often they run, and whether the sensor can reach the update source or needs an internal mirror. Stale rules quietly reduce detections, so a failed update should be visible to the team that reads the alerts.
Sensor placement on a mirror or tap
The sensor sees only the traffic its switch port, SPAN session or network tap delivers to it. Confirm which segments you need to observe, whether the mirror carries both directions, and whether the sensor's capture interface is the one that receives mirrored traffic. Incomplete placement produces alerts that look clean but miss lateral movement, so document the coverage before tuning rules.
File permissions for the agent
The Wazuh agent process must be able to read eve.json and traverse its parent directory. Suricata's default ownership and any log rotation settings can block this after an update or a rotation event. Confirm the agent's service account can read the file as it is rotated, and test the read path before you assume the localfile block is working.
Wazuh release and patch level
Plan against the 4.14 release line, and confirm the current patch level in the Wazuh release notes before you install or upgrade. Keep the server, indexer, dashboard and agents on compatible versions, and record the exact versions in your change record. Patch releases in this line have arrived roughly every one to two months, so recheck the notes on the day you start.
Wazuh release notesHow to configure the Suricata localfile block in the Wazuh agent
This sequence connects Suricata's eve.json output to the Wazuh agent so that network events reach the Wazuh server and appear as alerts that analysts can search in threat hunting.
Confirm Suricata ruleset and interface settings
Before Wazuh is involved, the Suricata administrator sets the capture interface and loads the rules the team intends to use, such as the Emerging Threats ruleset, in the Suricata configuration. Run Suricata in its own test mode and confirm it starts cleanly on the monitored interface and loads the expected rule count. Your check is a clean startup log with no rule load errors and traffic visibly being inspected on the chosen interface. The Wazuh proof-of-concept guide was tested with Suricata 6.0.8 on Ubuntu 22.04, so confirm your version's compatibility with your own team before you rely on that combination.
Confirm Suricata writes JSON to eve.json
Check that Suricata's EVE JSON output is enabled in its configuration and that the file is written to /var/log/suricata/eve.json. Generate known traffic, such as a test request to a host that should trigger a signature, and open the file to confirm each line is a valid JSON object with an event type and timestamp. Your check is a new alert event that you can find by searching the file for the test signature. If the file is missing or lines are not valid JSON, fix Suricata before continuing, because the agent can only parse what is written.
Verify the agent user can read eve.json
The Wazuh agent runs under its own service account, so confirm that account can read the eve.json file and the directory above it. Use the file's ownership and permissions to decide whether to adjust group membership or permissions, and make the smallest change that grants read access without making the log world-readable. Your check is a successful read by the agent account, for example by running a read command as that user and confirming the output matches the file. Document the change because permission drift on rotated logs is a common cause of silent gaps.
Add the localfile block to the agent configuration
On each monitored endpoint running Suricata, edit the Wazuh agent configuration file, ossec.conf, and add a localfile block that sets the location to /var/log/suricata/eve.json and the log_format to json. Keep the block inside the agent configuration section and validate the XML before saving. If you manage agents centrally, put the same block in the shared group configuration so the change is applied consistently. Your check is a configuration that passes validation with no parse errors reported when the agent starts.
Restart the Wazuh agent
Restart the Wazuh agent service on the endpoint so it reads the updated configuration, and confirm the service returns to a running state. Review the agent log for messages showing that the eve.json file was registered for collection and that no read or permission errors appear. Your check is a running agent with a log entry confirming the new file is being monitored. If the agent is managed from the Wazuh server, confirm the change reached the agent and was not overwritten by a group configuration.
Confirm events reach the Wazuh server
Generate a fresh test event in Suricata, then open the Wazuh dashboard and go to threat hunting. Filter with rule.groups:suricata and a time range that covers your test. Your check is a Suricata alert showing the agent name and the signature you triggered. If nothing appears, check the agent connection status, the agent log, and whether the test traffic actually matched a loaded rule before changing the Wazuh configuration.
Record baseline volume before widening scope
Once test events are confirmed, observe how many Suricata events arrive over a normal business period before enabling additional rule sets or interfaces. Compare the event count with the expected traffic on that sensor so you can see whether the configuration is producing more data than your indexer and storage can carry. Your check is a documented baseline of events per sensor that the team can use when sizing the deployment. Ask your Wazuh specialist to confirm sizing guidance for your traffic profile, since this page does not set volume figures.
How Wazuh turns eve.json events into alerts
The key point is that Suricata writes events and Wazuh does the detection work downstream, so each stage can be checked on its own. The Wazuh agent on the sensor host reads /var/log/suricata/eve.json as configured with a localfile block and log_format set to json, then forwards each line to the Wazuh server. The server applies its decoders, which break the JSON into fields, and then its rules, which decide which events become alerts. The indexer stores those alerts, and the dashboard and threat hunting views read from the indexer. The practical consequence is that a missing alert can sit at any of four points: Suricata did not log the event, the agent did not read the file (for example, after log rotation or a permissions problem), the server did not decode or match it, or the dashboard filter was wrong. Confirm each hop with the agent status, the server logs and a known test event before tuning anything.
Wazuh's shipped decoders and rules for Suricata are the default content, and the Wazuh proof-of-concept guide reports that alerts appear after the localfile change with no further setup. That default is a starting point, not a finished detection design. The team should review which Suricata rule sets feed eve.json (the guide was tested with the Emerging Threats ruleset on Suricata 6.0.8, so confirm the versions in your own environment), which alert severities reach analysts, and which signatures are noisy on your traffic. Decide who owns custom decoders and local rules, how changes are tested before they reach production, and how a Suricata upgrade that changes eve.json fields is caught. Check the rule and decoder IDs you rely on against your installed version rather than against examples in documentation, because identifiers can differ between Wazuh releases.
Suricata events reach the dashboard through one file and one agent
The flow starts with a mirrored or tapped network segment feeding Suricata on the sensor host. Suricata writes its events to /var/log/suricata/eve.json, and the Wazuh agent on that same host reads the file through a localfile block with log_format json. The agent forwards events to the Wazuh server, which applies decoders and rules, then the indexer stores the resulting alerts for the dashboard and threat hunting. The sensor host and the Wazuh manager sit in separate trust boundaries, so check what the agent can reach and what it is allowed to send.
How Suricata alerts move from the sensor host into Wazuh threat hunting.
Suricata eve.json fields and where they appear in Wazuh
This table maps common Suricata eve.json fields to where they show up when Wazuh parses the events as alerts and you search them in threat hunting. Use it to decide which fields to filter on and which to add to saved searches. Confirm every field name against your Suricata version and the Wazuh decoders installed, because names and nesting can differ between releases.
| Field | What it holds | Where to look in Wazuh |
|---|---|---|
| event_type | Kind of record, such as alert, flow, dns, http or tls, so you can separate detections from metadata | Filter threat hunting on rule.groups:suricata, then check the decoded event fields for the event type |
| alert.signature | Text of the matched rule, usually the message from the ruleset such as Emerging Threats | Shown in the rule description for the Suricata alert; confirm the description text in your installed rules |
| alert.signature_id | Numeric SID of the matched Suricata rule, useful for tuning and suppression | Use the decoded field to find all events from one signature before changing Wazuh rules |
| src_ip and dest_ip | Source and destination addresses of the flow that triggered the event | Shown as decoded source and destination fields in the alert; use them to pivot to agents or hosts |
| src_port and dest_port | Ports used by the session, which help separate scans from service traffic | Available in the decoded event; confirm the exact field names your decoder exposes |
| proto | Transport or application protocol, such as TCP, UDP or ICMP | Use as a hunting filter alongside the port fields to narrow noisy signatures |
| alert.severity | Suricata priority of the rule, where lower numbers are more serious | Map this against the Wazuh rule level you assign, since the two scales are set separately |
| timestamp | Time the event was logged by Suricata, which can differ from the Wazuh ingestion time | Compare against the Wazuh timestamp when reconciling events with endpoint logs |
Sizing for traffic volume and event types
Suricata writes several event types to eve.json. Alert events are the detections that rules raise. Other types, such as flow, DNS, HTTP, TLS and file records, describe the traffic itself and can be far more numerous than alerts. Shipping only alert events keeps the indexer small and the threat hunting view focused, but it removes the context that helps you investigate an alert after the fact. Shipping broader event types gives analysts the records behind a detection, at the cost of more ingestion, storage and search load. The localfile block in the proof-of-concept guide reads the whole file, so limiting event types is a Suricata output setting you define before the agent sees the data.
- Alert records: the smallest set, and the one that the Suricata rules in the proof-of-concept guide depend on for detections.
- Protocol metadata: DNS, HTTP and TLS records add context for hunting and usually grow the volume the most.
- Flow and stats records: useful for trend analysis, but they repeat on a timer and can dominate storage on busy links.
- Retention per type: decide how long each type stays searchable in the indexer, since alerts and raw traffic metadata rarely need the same window.
- Confirm the event types your Suricata version writes and test each one on a copy of your traffic before enabling it in production.
One sensor is simple to operate and has one eve.json file to watch, but it only sees the segment it is placed on. Several sensors divide the traffic across network zones, sites or cloud subnets, so each host sees less volume but you run more Suricata instances, more Wazuh agents and more rule updates. Each sensor adds its own install, configuration and monitoring work, and each one needs a stable agent identity so its alerts stay traceable to the segment they came from. The choice also decides where traffic is visible at all, which matters more than volume for coverage questions.
- Coverage: a single sensor on a core link sees east-west and north-south flows only if mirrored or tapped traffic reaches it.
- Operational load: each sensor needs its own ruleset updates, log rotation checks and agent health monitoring.
- Agent grouping: use Wazuh agent groups so sensor configuration, including the localfile block, is applied consistently across hosts.
- Alert attribution: record the sensor name in your alert metadata so analysts can tell which segment produced a detection.
- Confirm where traffic is captured in your network design before deciding the sensor count, because capture location limits what any single sensor can see.
Traffic volume is the main driver of load on the sensor host and on the Wazuh side. A small segment with light traffic produces a modest eve.json that a single agent can tail without difficulty. A high-throughput link can generate far more events per second, which raises CPU use on the sensor, disk writes for eve.json, and the rate at which the agent reads and forwards records. On the Wazuh side, more events mean more indexed documents, more storage and more search work for threat hunting. Packet loss on the sensor is also a sizing concern, because a sensor that drops packets gives an incomplete picture even when the rest of the pipeline is healthy.
- Sensor host resources: CPU, memory and disk throughput for Suricata and the Wazuh agent both scale with traffic, so test them together.
- Log file growth: eve.json grows quickly on busy links, so confirm log rotation and the agent's handling of rotated files.
- Indexer storage: document volume drives disk use and retention length, so estimate it from measured event rates rather than assumptions.
- Search performance: wide queries over high-volume types slow threat hunting, which can justify narrower event types or shorter retention for those types.
- Ask the team that owns the link for peak and average throughput, and measure the sensor during a representative busy period before setting capacity.
No general figure replaces a measurement of your own traffic. Event volume depends on the protocols on your link, how many hosts talk through the sensor, which rules are enabled, and which event types are written, so the same Suricata version can produce very different output on two networks. Run the sensor with the intended configuration in a test window and record the number of events per type, the size of eve.json over time, and the sensor's CPU, memory and disk use. Then project indexer storage from the measured daily volume and the retention you plan for each type. Repeat the measurement after any ruleset change, since new rules can raise alert volume quickly.
- Sample window: capture a normal business period and a known busy period, not only a quiet weekend.
- Per-type counts: count records by event type so you can see which types drive volume before enabling them everywhere.
- Storage projection: convert measured daily volume into indexer storage using your retention and replica settings.
- Sensor headroom: confirm the host keeps spare CPU and disk capacity at peak, not only on average.
- Ask your vendor or partner for: a written sizing method, the test window they used and the assumptions behind any storage figure, then check those assumptions against your own measurements.
Securing the sensor, logs and alert path
Suricata sits on the network path, writes detailed logs to disk, and feeds alerts into a central platform that many analysts can read. Each hop in that chain needs its own controls, so a weakness at the sensor, the log file or the dashboard can expose the whole pipeline. The cards below cover the controls to plan before the first alert reaches threat hunting.
Restrict eve.json permissions
The eve.json file holds every event Suricata records, including DNS queries, HTTP metadata, TLS details and alert context. Set ownership and mode so only the Suricata process and the account that reads the file for the Wazuh agent can access it, and confirm that no other local user can read the directory. Check the permissions after each package upgrade, since installers sometimes reset them.
Plan eve.json rotation
Suricata keeps writing to a log file that grows with traffic, so rotation needs a defined policy and a reload step that tells Suricata to reopen the file. Confirm that the rotation tool keeps the same ownership and mode on new files, and that the Wazuh agent follows the rotated file without losing or duplicating events. Test the handoff on a sensor with realistic traffic before relying on it.
Grant the agent least privilege
The Wazuh agent needs read access to the Suricata log and nothing else. Avoid running the agent with broader rights to make the file readable, and prefer a group membership or a narrow file permission that grants read access only to that log. Document the account the agent runs as, because a broader grant on one log can quietly widen what the agent can see on the sensor.
Isolate the sensor from production
A Suricata sensor watches traffic and often has access to a mirror or tap port, so it is a high-value target. Place it on a management network with restricted inbound access, limit outbound traffic to the Wazuh server and update sources, and keep it out of the same trust zone as application hosts. Confirm which ports the agent must reach on the manager and block everything else.
Protect the ruleset update channel
Rule updates change what the sensor detects, so an altered ruleset can silently remove alerts. Pull rules from a source you have verified, store them in a version-controlled location, and review changes before they reach production sensors. Check that update jobs run under a limited account and that the ruleset files are not writable by ordinary users. The Wazuh proof-of-concept guide tested with the Emerging Threats ruleset, so confirm its current source and license terms before adopting it.
Limit payload data in dashboards
Suricata logs can carry sensitive content such as URLs with tokens, usernames in HTTP headers, or payload excerpts from cleartext protocols. Decide which fields analysts need and restrict access to fields that expose raw packet or payload data. Review Wazuh dashboard views and saved searches so shared panels do not show those fields to users who lack clearance. Confirm role-based access settings against your own data classification policy.
Why Suricata alerts do not appear in Wazuh
This table lists the failures that most often stop Suricata events from reaching Wazuh, with the cause and fix for each. Work down the rows in order, since the first three checks (file path, JSON output and read permission) account for most silent failures. If events reach the agent but nothing shows in threat hunting, check the last two rows.
| Symptom or check | Likely cause | Fix |
|---|---|---|
| Agent reports no Suricata events | Wrong eve.json path in the localfile block | Confirm the path in ossec.conf matches the file Suricata writes, then restart the agent |
| No eve.json events parsed at all | JSON output not enabled in suricata.yaml | Enable the eve-log output with JSON format, restart Suricata, and check that the file fills with events |
| Agent logs show permission errors | The wazuh user cannot read eve.json | Grant read access to the log directory and file for the agent user, without changing Suricata's own write permissions |
| Events stop after a log rotation | Tail position lost when Suricata rotates eve.json | Confirm the rotation keeps the same file name and reopens it, then verify new events arrive after the rotation runs |
| File is current but no new events | No traffic reaches the monitored interface or mirror | Check that Suricata's capture interface receives traffic, such as a SPAN or mirror port, and that the sensor sees flows |
| Events parse but no Suricata rules fire | Ruleset not loaded or not updated | Confirm the rules are loaded in Suricata, check its startup logs for rule errors, and update the ruleset |
| Events exist in the indexer but search returns nothing | Wrong rule.groups filter in threat hunting | Filter with rule.groups:suricata and widen the time range, since the default window may exclude older events |
How to test detections end to end
The goal of this step is to prove that a Suricata rule you rely on actually produces a Wazuh alert that an analyst can find. Start by confirming which ruleset is loaded on the sensor, since the Wazuh proof-of-concept guide was tested with the Emerging Threats ruleset on Suricata 6.0.8 and Ubuntu 22.04, and your versions and rule sources may differ. Record the Suricata version, the rule source and the rule SID you plan to test before you generate anything. Then send one benign event that the chosen rule should match, such as a harmless HTTP request containing a signature string the rule inspects, from a host inside a network you are authorized to test. Keep all test traffic inside those authorized segments, tell the network and security operations teams when and where it will run, and avoid payloads that could affect production systems or third parties.
After generating the event, follow it through the pipeline. Check that Suricata wrote the matching record to /var/log/suricata/eve.json, then confirm that the Wazuh agent on the sensor read it through the localfile block with log_format set to json. In the Wazuh dashboard, open threat hunting and filter on rule.groups:suricata to find the alert, and compare the fields in the document, such as the signature and source and destination addresses, with what you sent. If the event is in eve.json but not in the dashboard, the gap is usually in agent collection or the sensor's file permissions, not in the rule itself. If the alert appears, the next read is the Wazuh Suricata proof-of-concept guide.
Write the result down in a short test record that your security team can reuse: date, sensor hostname, Suricata and rule versions, SID, the exact test command or traffic description, the eve.json line, the Wazuh alert identifier and the time from event to alert. Repeat the test after every rule update or agent upgrade, because a ruleset refresh can change or retire the signature you depend on. Keep these records with your change tickets so an auditor or incident responder can see that the detection worked and was checked over time.
Questions buyers ask about Suricata and Wazuh
Does Wazuh ship a Suricata ruleset?
Wazuh does not bundle the Suricata detection rules as part of its own decoders and rules. The Wazuh proof-of-concept guide was tested with Suricata 6.0.8 on Ubuntu 22.04 using the Emerging Threats ruleset, so that is the ruleset the vendor guide exercised. Confirm with the Wazuh documentation and your own security team which ruleset you will run, who maintains it, and how updates reach the sensors. Wazuh parses the events Suricata writes to eve.json, but the signatures that fire on network traffic come from the Suricata side.
How much effort does a Suricata integration take, and what drives it?
The basic wiring is small. The vendor proof-of-concept guide adds a localfile block with log_format json for /var/log/suricata/eve.json to the agent configuration, and Wazuh then parses the events and raises alerts. Most of the effort lies elsewhere: placing sensors where the traffic you care about is visible, tuning the Suricata ruleset to your network, deciding which alerts reach analysts, and confirming that the sensor host has enough capacity. Those tasks scale with traffic volume, the number of sensors and how much tuning your environment needs.
Can our team do the Suricata integration alone?
A team with Linux administration experience and some Wazuh familiarity can usually handle the agent configuration change and basic verification alone. The harder parts are sensor placement, interface selection, ruleset management and writing tuning or suppression logic that does not hide real threats. If your team has not run network IDS before, or has no one who reads Wazuh rules and decoders, a partner can carry the design and tuning while your staff keep the operational knowledge. Ask any partner to show how they will hand over configuration and runbooks.
What does the work need from our side?
Plan for four kinds of access and decisions before work starts:
- Sensor access: administrative access to the hosts running Suricata, and permission to change how they capture traffic.
- Traffic placement: agreement on which network segments or interfaces the sensors will watch, and whether a mirror or tap is available.
- Wazuh admin rights: rights to edit agent configuration in the groups that cover the sensors, and to review alerts in threat hunting.
- Change control: an approved window for restarting services and a named owner for ruleset updates.
Without these, the integration usually stalls at the first sensor.
How long does the integration take with several sensors?
Duration depends on how many sensors you run, how varied their traffic is, and how much tuning the alerts need. Adding one sensor with a standard configuration is a short change. Each additional sensor adds placement checks, capacity review and alert tuning for its traffic. Tuning is often the longest phase because it runs against real alert volume. Ask any partner for a written timeline built from your sensor count, segments and tuning goals, and check that the quote covers testing and handover.
Does the self-hosted Wazuh license cost anything?
The self-hosted Wazuh software is open source with no license fee, and it is distributed under the GNU General Public License version 2 with an exception for linking with OpenSSL. Your costs are the infrastructure to run the Wazuh server, indexer and dashboard, the sensors themselves, storage for alerts, and the labor to install and tune. Wazuh Cloud is a separate managed service with its own plans, so check which model you are pricing. Confirm license terms against the LICENSE file before you build on them.
What happens to ingestion volume as traffic grows?
Alert and log volume grows with traffic, so storage, indexer capacity and analyst time all rise. Before you enable every rule category, measure event volume on a representative segment and decide which alerts need to be stored and which should be filtered at the sensor or in Wazuh. Plan retention for the alert index in advance. Confirm your sizing with a test run on real traffic rather than relying on a general estimate.
How DeployOpen scopes and delivers the Suricata integration
DeployOpen plans and builds the Suricata integration inside your own infrastructure, starting from where your sensors run and which traffic you need to see. The work covers the Wazuh agent configuration, ruleset and interface choices, threat hunting views and a documented handover your team can operate.
How we scope
- Inventory which sensors run Suricata, their operating systems and where eve.json is written.
- Agree the Suricata version, ruleset source and interfaces to monitor in the written scope.
- Estimate alert and event volume from sampled traffic so storage and indexer sizing are planned before build.
How we build
- Configure the Wazuh agent localfile block for the eve.json path with the JSON log format on each sensor.
- Validate that Suricata events decode into alerts and that threat hunting filters on the suricata rule group.
- Test alert noise against your ruleset and tune the sensor and Wazuh settings before wider rollout.
How we hand over
- Deliver a configuration record covering agent settings, Suricata settings, interfaces and rule sources.
- Document the verification steps and sample hunting queries your analysts can repeat after changes.
- Walk through the operating runbook for updating Suricata rules and handling log rotation on each sensor.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Recheck sensor and agent configuration when Suricata or Wazuh versions change, against the written scope.
- Ask any provider to confirm the supported Suricata and Wazuh combination for your environment before work starts.

