Using Suricata instead of Zeek for metadata in Security Onion

Switching Security Onion's metadata engine to Suricata can lower sensor CPU on busy links, but it changes which logs you get and which Zeek analyzers you lose. This page explains the trade-offs and how to plan the change.

On this page

When Suricata instead of Zeek for Security Onion metadata makes sense

Switching Security Onion's metadata engine to Suricata makes sense when sensors are close to their CPU limit on high-traffic or few-core hardware. The mdengine setting lets you choose Suricata in place of Zeek for network metadata, which reduces the work each sensor performs, but it also changes the set of logs your analysts see. Security Onion offers either Zeek or Suricata to generate network metadata, and Strelka analyzes files that either engine extracts from network traffic, so file analysis remains available in both configurations. The decision is about which engine your sensors can afford to run, not about which one is more capable overall.

The Security Onion hardware guidance says that for high traffic or few cores, running Suricata alone for alerts and metadata uses CPU more efficiently. That statement is the main reason to consider the switch, and it applies most directly to sensors where Zeek's separate process load is what pushes CPU to its limit. Before you change anything, measure current CPU use per sensor under peak traffic and confirm the hardware meets the Security Onion hardware requirements for the node role. If the sensor is already comfortable under peak load, the switch gains little and removes Zeek logs your hunts may depend on.

Confirm the log set before you commit. Suricata's metadata covers connections, DHCP, DNS, files, FTP, HTTP and SSL, and the SO_FILTERS ruleset can drop metadata you do not need. Check that your existing hunts, dashboards and detections use only those fields, and plan for any Zeek-specific analysis you rely on, since Suricata does not replace Zeek's scripting model. Test the change on a non-production sensor with representative traffic and compare CPU, dropped packets and the event types your analysts query before rolling it out across the grid.

Zeek or Suricata for metadata: which fits your sensors

This table compares Zeek and Suricata as the metadata engine on a Security Onion sensor across traffic volume, core count, required protocol logs, scripting needs and signature needs. Read each row as a condition on your sensors and the analyst work you give up by choosing the option that does not fit it. Suricata alone is the lighter path when signatures and protocol metadata cover your needs, while Zeek remains the stronger choice when scripted analysis is central to your investigations.

Decision factorZeek as metadata engineSuricata as metadata engine
Traffic volume and CPUFits sensors where spare cores can carry a second analysis engine alongside alertingFits high-traffic sensors or few-core hardware, since Security Onion says running Suricata alone uses CPU more efficiently
Core count on the sensorNeeds enough cores to run Zeek and Suricata together if you keep both enginesSuits smaller core counts because one engine handles alerts and metadata; confirm sizing against the hardware docs
Required protocol logsCovers connection, HTTP, DNS, SSL and SMTP transcripts by default; confirm each log you needProduces connection, DHCP, DNS, file, FTP, HTTP and SSL metadata; check that SMTP and any other needed logs are covered
Need for Zeek scriptingFits teams that write or rely on Zeek scripts for custom analysis, since all default analyses are scriptsDoes not provide Zeek scripting; you give up script-based analyses and must find an equivalent or accept the gap
Signature detection needsNot a signature engine; you need Suricata or another IDS alongside it for signature alertsFits environments that need signature matching, Emerging Threats or VRT rules, and alerts from one engine
Analyst workflow impactAnalysts keep Zeek log conventions and scripted context but may pivot between alert and metadata sourcesAnalysts get alerts and metadata in one EVE JSON stream, but Zeek-specific log fields and script outputs may be absent
Metadata reductionReduction relies on Zeek script configurationUse the SO_FILTERS ruleset to drop metadata you do not query, which lowers load but needs testing before rollout

How metadata flows from sensor to Elasticsearch

Traffic is captured on the sensor, where the metadata engine choice applies: either Zeek or Suricata produces the network metadata, selected through the mdengine setting. Suricata also emits alerts, and Strelka analyzes files extracted from the traffic. Before anything is indexed, SO_FILTERS drops metadata types you do not need, and the events are forwarded through the manager and receiver nodes to search nodes. Check the engine setting and the filter list on each sensor, because they decide what reaches Elasticsearch.

The metadata engine choice applies at the sensor, before filtering and forwarding.

How to switch the metadata engine safely

This sequence moves a sensor from Zeek to Suricata for metadata only after you have a CPU baseline, a list of the protocol logs analysts need, and a filter plan. It ends with checks that confirm the metadata, alerts and file extraction still work and that the sensor is not dropping packets.

  1. Record the current engine and CPU baseline

    The sensor owner confirms which metadata engine each sensor currently runs and records CPU use on the busiest sensors during normal and peak traffic. Save the figures from the Security Onion console or your host monitoring so you have a before state to compare against. Also note the core count, because Security Onion's hardware guidance says running Suricata alone for alerts and metadata uses CPU more efficiently on high-traffic or few-core sensors. This step is done when you have a written baseline for each sensor you plan to change.

  2. Inventory the protocol logs analysts use

    Ask the analysts and hunting team which metadata they query in a normal week. Suricata's metadata output covers connection, DHCP, DNS, file, FTP, HTTP and SSL records, so check each of those against your saved searches, dashboards and detections. Any Zeek-only log that a dashboard or detection depends on must be found now, because the switch removes it from the sensor. This step is done when every required log type is mapped to a Suricata output or marked as a known gap with an owner.

  3. Set mdengine to Suricata on a test sensor

    On one non-production sensor, set the metadata engine to Suricata through the mdengine setting in the Security Onion configuration, following the Suricata and NIDS documentation for your release. Make the change on one sensor first so you can see the effect on that node alone. Keep the previous value written down so you can revert. This step is done when the test sensor shows Suricata as its metadata engine in the configuration and the change is staged for application.

  4. Define SO_FILTERS to drop unneeded metadata

    Write the SO_FILTERS ruleset so the sensor stops producing metadata nobody uses, which is where most of the CPU and storage savings come from. Start from the record types you kept in the inventory and filter only what is clearly unused, then document each filter and its reason. Review the filter file with the team that owns detections, since a filter that is too broad can hide events you need later. This step is done when the filter file is reviewed, versioned and applied to the test sensor.

  5. Apply the change through the configuration process

    Apply the change using the Security Onion configuration process for your deployment rather than editing service files by hand, so the grid stays consistent. Watch the apply output for errors on the test sensor and confirm the Suricata and metadata services restart cleanly. Do not roll the change across other sensors until the test sensor passes the verification steps below. This step is done when the test sensor reports a successful apply and its services are running.

  6. Verify metadata records and alerts

    In the Security Onion console, confirm that connection, DHCP, DNS, file, FTP, HTTP and SSL records appear for traffic from the test sensor. Generate known test traffic in each category, such as a DNS lookup, an HTTP request and a TLS connection, and find those events in the search results. Check that NIDS alerts still fire by using a rule you know should match, and that file extraction still produces files for Strelka to analyze. This step is done when each record type and a test alert and extracted file are visible on the test sensor.

  7. Check dropped packets and CPU after the change

    Compare sensor CPU and packet drop counters with the baseline from the first step, across at least one full daily traffic cycle including your busiest period. Look for rising dropped packets at the capture interface and for CPU that stays higher than before the change. If drops increase, review the SO_FILTERS ruleset and sensor capacity before expanding the change. This step is done when the test sensor's CPU and drop counters are recorded against the baseline and the results are signed off by the sensor owner.

  8. Roll out and keep the Zeek fallback documented

    After the test sensor passes, apply the change to remaining sensors in batches, repeating the verification and drop checks on each batch. Record which sensors run Suricata metadata and which still run Zeek, and keep the revert value and filter file under version control. Also list the Zeek-specific analyzers and scripts that the change removes, so analysts know what is no longer available. This step is done when every targeted sensor has a verified state and the inventory of sensors, filters and removed capabilities is current.

Which protocol logs Suricata produces and what you lose

When Security Onion uses Suricata as its metadata engine through the mdengine setting, Suricata writes metadata for connections, DHCP, DNS, files, FTP, HTTP and SSL. This list covers the protocols analysts query most often, so it is the baseline for most network hunts. The SO_FILTERS ruleset then drops metadata you do not need, which is the main lever for controlling volume.

  • Connection records: Flow-level metadata such as addresses, ports and byte counts, the starting point for most pivots.
  • DHCP and DNS: Address assignments and DNS queries and responses, which support lookups and name-to-address history.
  • HTTP and SSL: HTTP requests and TLS certificate records, useful for hostname, certificate and user agent hunts.
  • File and FTP metadata: File records from extracted flows, which Strelka can analyze when files are extracted.

Confirm the exact event types and field names for your installed Security Onion version in the Security Onion Suricata documentation before you write queries against them.

Zeek-specific analyzers you give up

Switching the metadata engine to Suricata changes what your analysts can pull from the network. Each card below covers one Zeek capability that does not carry over, and the checks to run before you commit a sensor fleet to Suricata metadata.

Scripted analyses and custom Zeek scripts

Zeek implements its default analyses, including logging, as scripts in a Turing-complete language, so your team can add detections or enrichment that the default logs do not cover. The SO_FILTERS ruleset only drops unneeded Suricata metadata. It does not replicate Zeek scripting, so custom Zeek logic has no direct equivalent in a Suricata-only sensor. Inventory any Zeek scripts your analysts rely on and confirm which of them have a Suricata alternative, such as an EVE-based rule or an external process.

Zeek about page

Zeek cluster behavior

Large sites run Zeek clusters, with a front-end load balancer spreading traffic across back-end instances under a central manager, and ZeekControl supports that layout out of the box. Running Suricata alone for metadata removes that cluster model from the sensor design. Confirm how your sensor count, traffic split and sensor-to-manager flow will change, and test whether the Suricata metadata path keeps up on your busiest links before you retire any Zeek workers.

SMTP content logging

By default Zeek writes SMTP content into its application-layer transcripts, which analysts use to review phishing and malicious mail flows crossing the network. The Suricata metadata set listed for Security Onion does not include SMTP, so confirm whether your mail investigations depend on that transcript. If they do, plan a separate mail source such as a mail gateway log, or keep Zeek on the sensors that see SMTP traffic.

Zeek intel and packages

Zeek intelligence files and Zeek packages extend the sensor with indicator matching and extra analyses, and they depend on the Zeek engine being present. Suricata uses its own rule sources for intelligence-style matching, so an indicator workflow built on Zeek intel does not move over unchanged. Inventory every Zeek intel file and package in use, then confirm which matching behavior you can reproduce with Suricata rules or with the Security Onion detections workflow.

Signature detection differences

Suricata is the signature engine in Security Onion, and it implements a complete signature language for known threats and policy violations. Zeek is not a classic signature-based IDS and is not optimized for byte matching, so Zeek-side matching is not a replacement for NIDS rules. Keep Suricata alerts enabled on every sensor that runs Suricata metadata, and verify that your Emerging Threats or VRT rules are loaded and tuned in the Detections interface after the switch.

Security Onion NIDS docs

Protocol coverage to verify

Suricata's metadata set for Security Onion covers connection, DHCP, DNS, file, FTP, HTTP and SSL records, but Zeek logs can carry protocol detail beyond that list. Compare the Zeek log types your hunts and dashboards query today against the Suricata EVE output on a lab sensor. Any field or protocol that a saved query, case template or dashboard depends on should be confirmed in a test grid before the production cutover.

How SO_FILTERS trims metadata volume

The SO_FILTERS ruleset decides which metadata records Suricata writes once it is set as the metadata engine, so it is the main lever for controlling log volume and disk use. Before you change anything, list the record types Suricata produces in your deployment (connection, DHCP, DNS, file, FTP, HTTP and SSL) and assign each one a purpose: hunting, detection support, compliance evidence, or nothing. Records with no owner and no use are the candidates for filtering. Confirm the exact filter syntax, the file where the ruleset lives and the reload procedure in the Security Onion Suricata documentation for your version rather than copying examples from older releases.

A workable method is to score each record type against the questions your team actually asks. For example, in an illustrative environment, an analyst may need DNS query and response records to pivot from a suspicious domain, and an assessor may ask for proof that TLS sessions to external services were logged, while high-volume connection records from internal hosts to a monitoring server add little. In that case the filter would keep DNS and SSL records in full, drop or narrow the repetitive internal connection records, and record the decision with its owner and review date. The numbers that matter here are your own traffic measurements on the sensor, which you should gather during a pilot, not figures taken from this page.

The risk runs in the other direction. A record you drop today cannot be recovered for an investigation that starts next month, and if a compliance control depends on a log type, removing it can create a gap that an assessor finds before you do. Write down which investigations and control requirements each filter could affect, and review the ruleset whenever you add a detection, change a retention period or onboard a new network segment. Keep the Zeek or Suricata decision reversible where possible by testing the filter on a sensor that mirrors production traffic, and confirm with your compliance lead which records must survive any change.

Security and operational risks of changing the engine

Switching the metadata engine changes what the sensors record, how rules load and who can change them. The cards below cover the risks that appear during cutover and the checks that keep detection coverage steady afterward.

Losing visibility during cutover

Changing mdengine on a live sensor stops Zeek output and starts Suricata output, so there is a window where one or both sets of metadata may be incomplete. Before the change, record which Zeek logs your analysts query daily, then confirm each one has a Suricata equivalent in the EVE JSON output on a test sensor. Run both engines against the same traffic if your hardware allows it, and schedule the switch when a gap in metadata is acceptable to your team.

Suricata docs

Detection gaps from dropped metadata

The SO_FILTERS ruleset drops metadata types you do not need, which saves storage and CPU but can remove fields that existing hunts, dashboards or detections depend on. Review every saved query, dashboard and Sigma rule that references Zeek field names, and check which filters are active before the cutover. Document each dropped category so that a later analyst does not assume a missing record means no activity.

Alert and file extraction continuity

Suricata already performs NIDS alerting, so alert production should not change, but file extraction for Strelka depends on the engine that extracts files from the traffic. Confirm that files still reach Strelka after the switch by sending a known test file across the sensor and checking the resulting file analysis record. Compare alert counts from a sample period before and after the change to catch any unexpected drop.

Access control and configuration audit

Changing the metadata engine is a sensor configuration change with a direct effect on what your organization records. Limit who can edit sensor settings and SO_FILTERS, and keep a dated record of who made the change, the previous value and the approval. Your change process should treat the cutover like any other change to a monitoring control, so auditors and internal reviewers can trace the decision.

Rule update process for NIDS rules

With Suricata handling both alerts and metadata, NIDS rule updates affect metadata and alerting together. Review how the Detections interface loads NIDS rules, and test modify, suppress and threshold changes on a non-production sensor before applying them. Confirm that rule updates still arrive in airgap or proxy environments where your team applies them manually.

Detections docs

Monitoring sensor health after the switch

Lower CPU use is the goal, so track it against a baseline taken before the change, along with packet drops and the rate of stored events. Watch for a fall in events per second that could mean traffic is being dropped rather than saved less. Add these measures to your grid monitoring so a regression appears within a day, not at the next review.

Hardware docs

Questions buyers ask before switching metadata engines

Does switching Security Onion to Suricata metadata save CPU?

It can, mainly on busy sensors or those with few cores, because Security Onion's hardware guidance says running Suricata alone for alerts and metadata uses CPU more efficiently in those conditions. The saving comes from running one engine instead of two on the same traffic, so you no longer pay the processing cost of Zeek alongside Suricata. The size of the saving depends on your traffic rate, core count, enabled protocol logging and how many rules run. No benchmark figure was supplied for this change, so measure CPU on a representative sensor before and after the switch, and ask any partner to show their test method and results.

How long does the switch from Zeek to Suricata metadata take?

The duration depends on how many sensors you run, whether they are in production, how much tuning you need afterward and whether your analysts rely on Zeek-specific log fields in existing searches, dashboards or detections. A single lab sensor is a small change, while a grid of production sensors needs a test window, staged rollout and validation at each step. Ask for the schedule in the written scope, with separate phases for testing, change windows, rollback and analyst verification. No duration was supplied for this work, so treat any figure you hear as something to confirm against your own sensor count and change process.

What does the team need to prepare before changing the metadata engine?

Your team needs a clear list of the Zeek logs your analysts and downstream tools use, because Suricata produces a different set and field naming. Prepare the following before the change:

  • An inventory of Zeek-dependent searches, dashboards, detections and SIEM parsers
  • Access to the Security Onion Console and the ability to change sensor configuration and the SO_FILTERS ruleset
  • A maintenance window and a rollback plan for each sensor
  • Owners who can confirm that metadata still supports each investigation workflow

Check the Suricata and NIDS documentation for the exact protocol logs produced before you finalize the list.

Can an internal team make this change without outside help?

Yes, a team with Linux, Security Onion administration and network monitoring experience can make the change in a lab first, then in production. The harder part is validating that investigations still work, because the Zeek-specific analyzers and log fields you give up may affect how analysts work. Internal teams often underestimate the time needed for that review. Bring in outside help if your team lacks grid or Salt experience, cannot test on non-production sensors, or needs an independent record of the change for an assessment.

Can Zeek logs still be kept if Suricata provides the metadata?

Security Onion offers either Zeek or Suricata to generate network metadata, which means the platform is designed around choosing one metadata engine per sensor rather than running both as the main metadata source. Keeping Zeek data alongside Suricata would be an architecture decision that needs testing for CPU impact, storage, and whether the two outputs fit your correlation needs. Confirm the supported approach with Security Onion documentation and your sensor sizing before you plan a dual-engine design.

What Zeek-specific capabilities would we lose after switching?

The main loss is Zeek's scripting environment and its default analyses, because Zeek implements its logging and analyses as scripts and offers a Turing-complete scripting language for custom analysis. Suricata offers a different set of capabilities, including protocol detection on any port, Lua scripting for detections and EVE JSON output. Review every Zeek script or custom log you rely on and decide whether Suricata covers it, whether a replacement is needed, or whether the capability is no longer required.

What should a consultant quote include for this switch?

A written quote should follow from a written scope and list the sensors in scope, the current and target configuration, the review of Zeek-dependent workflows, the test and rollout plan, the rollback approach and the handover documentation. Ask for each phase as a separate line item, and ask which items are one-time work and which recur, such as tuning or support retainers. DeployOpen does not publish a price list, so the quote is built from that scope. Also ask what the quote excludes, such as hardware changes, storage expansion or analyst retraining.

How DeployOpen scopes a metadata engine change

DeployOpen plans, implements, tunes and documents Security Onion inside your own infrastructure, and a metadata engine change like this one is normally scoped as a fixed-scope engagement agreed in writing before work starts. The quote follows from that written scope, so the first step is a baseline: which sensors are CPU-bound, how many cores each has, what traffic profile they see, and which analysts depend on Zeek-specific fields today. Your team should bring that data, along with the Security Onion version and operating system you run. Note that Security Onion 3.0.0 supports only Oracle Linux 9, so the distribution question is part of the baseline, not an afterthought.

The next steps are the log requirements and the SO_FILTERS design. DeployOpen maps each detection, dashboard, hunt query and case workflow to the Suricata protocol logs that would replace the Zeek records it uses, then defines which metadata the mdengine setting should keep and which the SO_FILTERS ruleset should drop. Cutover is planned per sensor, with a rollback path, and verification checks that expected records arrive in the Security Onion Console, that alert volume and CPU load move as predicted, and that the Zeek-only analyzers you rely on are either retired deliberately or replaced. Ask any partner to show how they will confirm the claimed CPU saving on your own traffic, since the vendor hardware guidance is qualitative.

Once the change is live, ongoing support can be offered as a retainer covering rule and filter tuning, upgrades and periodic verification as Security Onion and Suricata releases move forward. Confirm the release line you plan to run with your engineers before scoping, because Suricata 7 is end of life and the current stable line is Suricata 8. Ask any provider to state in the quote what is one-time work, what recurs, and what is excluded, such as new sensor hardware or changes to downstream SIEM content.

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.