Wazuh and Suricata network IDS integration

Wazuh does not inspect network traffic itself, so Suricata supplies the network detections and Wazuh reads its eve.json output through the agent. This page covers the method, build sequence, checks and sizing.

On this page

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.

Wazuh components

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.

Wazuh Suricata guide

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 notes

How 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

FieldWhat it holdsWhere to look in Wazuh
event_typeKind of record, such as alert, flow, dns, http or tls, so you can separate detections from metadataFilter threat hunting on rule.groups:suricata, then check the decoded event fields for the event type
alert.signatureText of the matched rule, usually the message from the ruleset such as Emerging ThreatsShown in the rule description for the Suricata alert; confirm the description text in your installed rules
alert.signature_idNumeric SID of the matched Suricata rule, useful for tuning and suppressionUse the decoded field to find all events from one signature before changing Wazuh rules
src_ip and dest_ipSource and destination addresses of the flow that triggered the eventShown as decoded source and destination fields in the alert; use them to pivot to agents or hosts
src_port and dest_portPorts used by the session, which help separate scans from service trafficAvailable in the decoded event; confirm the exact field names your decoder exposes
protoTransport or application protocol, such as TCP, UDP or ICMPUse as a hunting filter alongside the port fields to narrow noisy signatures
alert.severitySuricata priority of the rule, where lower numbers are more seriousMap this against the Wazuh rule level you assign, since the two scales are set separately
timestampTime the event was logged by Suricata, which can differ from the Wazuh ingestion timeCompare 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.

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 checkLikely causeFix
Agent reports no Suricata eventsWrong eve.json path in the localfile blockConfirm the path in ossec.conf matches the file Suricata writes, then restart the agent
No eve.json events parsed at allJSON output not enabled in suricata.yamlEnable the eve-log output with JSON format, restart Suricata, and check that the file fills with events
Agent logs show permission errorsThe wazuh user cannot read eve.jsonGrant read access to the log directory and file for the agent user, without changing Suricata's own write permissions
Events stop after a log rotationTail position lost when Suricata rotates eve.jsonConfirm 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 eventsNo traffic reaches the monitored interface or mirrorCheck 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 fireRuleset not loaded or not updatedConfirm 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 nothingWrong rule.groups filter in threat huntingFilter 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.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.