Troubleshooting packet loss in Security Onion starts with knowing which layer dropped the packet
When alerts or full packet capture look incomplete, the first job is to find the layer that lost the traffic before changing anything. Packets can disappear at the tap or SPAN port upstream of the sensor, in the sensor kernel's capture buffers, inside Zeek or Suricata while they process traffic, or in the storage path that writes events and PCAP to disk. Each layer has a different symptom and a different fix. A tuning change aimed at Suricata will not recover packets that the switch never mirrored, and a SPAN configuration change will not help if the sensor is simply out of CPU. Teams usually need this work after a sensor is added to a busier link, after traffic volume grows, or when an investigation depends on PCAP that turns out to be missing bytes.
Security Onion's documentation points to three readings as the starting place: the packet loss figures on the Grid page, the InfluxDB graphs that track sensor metrics over time, and the Suricata statistics file at /opt/so/log/suricata/stats.log. Comparing them tells you whether the drops are consistent across sensors or limited to one, whether they track traffic peaks, and whether Suricata itself reports kernel-level drops. Record these readings for a normal period and a bad period before you change a setting, so each change can be judged against a baseline. Confirm the exact field names and graph locations against the Suricata documentation for your release, because the layout differs between major versions. The first decision is whether the evidence points to the network path or to the sensor, since that choice determines who has to act, whether that is your network team for the tap or SPAN, or your platform team for the sensor.
Where packets get lost between the tap and the analyst
Packet loss rarely comes from one place. Loss can start before the traffic reaches the sensor, inside the kernel, in Suricata's capture threads, in Zeek, or after events are written to storage. Work through these locations in order so you measure each one before changing settings.
Upstream TAP or SPAN
A SPAN port drops traffic when it is oversubscribed, and a TAP can only deliver what it sees on the link. If the sensor shows loss while the mirror source is already congested, the problem is upstream of Security Onion. Ask the network team for the TAP or SPAN configuration, the aggregate bandwidth on the monitored links, and any drop counters on the mirror device. Confirm whether the mirror carries both directions and whether VLAN tags are passed through.
NIC and kernel buffers
Drops at the network card or kernel buffer appear before Suricata or Zeek ever see a packet. Check the interface receive drop counters on the sensor, the ring buffer size, and whether the monitoring NIC is offloading features that change how packets are presented to the capture software. Compare the kernel counters with what Suricata reports to decide whether the loss is below or above the application.
Suricata capture threads
Suricata reads packets through AF-PACKET threads, and it keeps a pending packet queue. Loss at this stage shows up in the capture counters in stats.log in /opt/so/log/suricata/stats.log, and in the same statistics in Grid or InfluxDB. Check the thread count, the max-pending-packets setting, and the BPF filter before changing the ruleset, since a heavy ruleset can slow processing and cause drops that look like capture loss.
Zeek capture and workers
Zeek loss is reported separately from Suricata loss, so a healthy Suricata sensor can still hide missing Zeek logs. Compare the capture-loss view on the Grid page with the per-worker status for the sensor. If one worker is saturated while others are idle, the problem is worker distribution or CPU pinning on that node. Confirm which interfaces Zeek is assigned and whether any worker restarts appear in the node logs.
Downstream indexing and storage
Events can disappear after capture if Elasticsearch cannot accept them. A sensor that shows no capture loss but fewer events in search may be backing up at the search tier, not dropping packets. Check the indexing rate on the Grid page, the Elasticsearch cluster health, and disk watermarks on the search nodes. A full disk or a red index can stop ingest, so confirm the search tier is accepting writes before you blame the sensor.
Reading Zeek capture loss, tool loss and Suricata stats.log
The Zeek capture loss figure on the Grid page estimates how many packets the sensor's capture process did not see before Zeek analyzed them. It is the most direct signal that the sensor is missing traffic at the wire or capture layer, which is the point where packets are lost before any detection engine touches them. Read it as a percentage of observed traffic for each sensor, not as a grid-wide average, because one sensor on a congested SPAN port can look healthy in aggregate.
- Per sensor, not per grid: Compare each sensor's capture loss against its own history and against its peers on similar links.
- Sustained versus spiky: A short spike during a known traffic burst is different from a flat, persistent value.
- Correlation with throughput: Loss that rises with traffic volume points toward sensor capacity; loss at low volume points toward the feed or capture configuration.
- Confirm the definition: Check the current Grid page documentation for your release to confirm exactly how the figure is calculated before setting alert thresholds.
Compare the reading over several days of normal and peak traffic before you act on it.
Tool loss covers drops reported by the components that process data after capture, such as the Zeek workers, log shipping and the ingest pipeline. A packet can survive capture and still be lost or never analyzed because a worker, queue or forwarder could not keep up. Tool loss is therefore a different failure, and it is easy to mistake for capture loss because both appear as missing coverage in the same views.
- Find where it is reported: Check the Grid node detail views and monitoring dashboards for drop or backlog counters on each component.
- Worker saturation: Repeated tool loss on the same node often means the analysis processes are starved for CPU or thread capacity.
- Pipeline backpressure: Growing queues or delayed ingest suggest the downstream path, not the sensor, is the constraint.
- Mixed signals: Tool loss with clean capture loss means the packets arrived; capture loss with clean tool loss means they never did.
Before changing hardware, confirm which component reports the drop so the fix targets the right layer.
Suricata keeps packet statistics in Grid, in InfluxDB and in /opt/so/log/suricata/stats.log on the node. The counters in this file show what the capture threads received, how many packets the engine dropped at the kernel or capture layer, and how many were dropped because internal queues were full. Security Onion's Suricata guidance points to these counters as the place to start when loss is suspected, and it suggests tuning the ruleset, a BPF filter, max-pending-packets or AF-PACKET threads to reduce loss.
- Received versus dropped: Compare the capture-layer drop counter against total received packets over the same interval.
- Engine-side drops: Drops from full internal queues point to processing limits, not the wire.
- Cumulative counters: Stats are running totals, so calculate the difference between two timestamps rather than reading the raw number.
- Source of truth: The file on disk is the most detailed copy; InfluxDB and Grid views are summaries that may lag.
If Suricata and Zeek disagree, check whether they are reading the same interface before drawing a conclusion.
Which fix fits which cause of packet loss
This table compares the documented levers for reducing packet loss in Security Onion, from ruleset tuning to fixing the upstream TAP or SPAN. Read each row by first confirming where loss occurs, then matching the lever to that cause, because most levers reduce load on one component while possibly hiding or shifting traffic elsewhere. Make one change at a time and measure against a recorded baseline.
| Lever | Cause it addresses | Trade-off | Risk without a baseline |
|---|---|---|---|
| Ruleset tuning | Suricata spends too much time per packet on rules that match high volumes of traffic or rarely useful signatures | Disabling or suppressing rules removes detection coverage for those signatures | You cannot tell whether a drop in alerts reflects less loss or fewer detections |
| BPF filter | Capture is handed traffic that is not needed, such as known high-volume noise or a subnet outside monitoring scope | Traffic excluded by the filter is invisible to Zeek and Suricata, so detections on that traffic stop | A filter can silently remove the traffic an investigation later needs, and the gap is hard to see |
| max-pending-packets | Suricata's internal packet queue fills during bursts, so packets are dropped before inspection | A larger queue uses more memory and can add latency during sustained overload | A higher value may hide a sustained throughput shortfall that needs more capacity or threads |
| AF-PACKET thread count | Capture or inspection threads cannot keep up with the packet rate on the sensor | More threads consume more CPU that other processes, such as Zeek, also need | Too many threads on a busy host can starve other workers and move the bottleneck elsewhere |
| CPU pinning | Threads migrate across cores, or share cores with other busy processes, causing cache misses and scheduling delay | Pinning reduces scheduler flexibility and must match the hardware layout of each sensor | Pinning to the wrong cores can lower throughput, and the change is difficult to reverse cleanly without notes |
| Fix the upstream TAP or SPAN | The switch or TAP drops or oversubscribes mirrored traffic, so the sensor never receives every packet | Requires network team access, hardware changes or switch configuration work outside Security Onion | Tuning the sensor will not recover packets that never arrived, and the loss will look like a sensor problem |
How to isolate packet loss on a Security Onion sensor
This sequence separates capture loss at the sensor from loss upstream at the TAP or SPAN, so you change one variable at a time and know which layer caused the drop.
Record a baseline from Grid and stats.log
Start by capturing the current state before changing anything. Open the Grid page in the Security Onion Console to note the packet loss figures reported for each sensor, then read the packet statistics in /opt/so/log/suricata/stats.log on the sensor. Record the capture and decoder counters, the kernel drop counts and the time window, so later readings compare like with like. The step is done when you have a written baseline for each sensor under suspicion. If the Grid page and stats.log disagree in a way you cannot explain, note both values and continue, since the next steps check each source separately.
Confirm the TAP or SPAN delivers expected traffic
Next, check whether the upstream device is sending the traffic you expect. Compare the sensor's received bit rate and packet rate with a known reference, such as the switch or TAP port counters for the mirrored interface during the same window. Confirm that the mirror session covers the right VLANs and directions, and that the port is not oversubscribed when peak traffic arrives. If the upstream device shows drops or the mirror is missing traffic, the loss starts before the sensor. Stop here and fix the mirror configuration with the network team. Continue only when the sensor's received volume matches the reference within a tolerance you agree on in advance.
Check NIC and kernel counters
On the sensor, read the interface counters for the capture NICs using the operating system's statistics tools, and compare receive errors, missed packets and ring buffer overruns against the baseline. Check the kernel's view of dropped packets for the capture path as well. Nonzero counters that rise during peak load point to the NIC, driver or kernel buffer layer, not Suricata. If the counters are flat while Suricata reports loss, the loss is inside the application. Confirm the interface is up at the expected speed and that offload settings match the vendor or Security Onion guidance you have on file. Continue to the Suricata layer only after you have ruled out interface-level drops.
Review Suricata threads and max-pending-packets
Now review how Suricata reads and processes packets. Check the AF-PACKET thread configuration and the max-pending-packets setting in the Suricata configuration that Security Onion manages, and confirm the values in effect on the running sensor. Compare CPU utilization of the Suricata threads during peak load to see whether any thread is saturated. Security Onion's Suricata documentation suggests tuning the ruleset, a BPF, max-pending-packets or AF-PACKET threads to reduce loss, so change one of these only after the baseline is recorded. The step is complete when you know which threads are busy and what the current limits are. If no thread is saturated and the drops persist, move on to the filter and ruleset checks.
Check BPF filter and ruleset load
Verify whether a BPF filter or a heavy ruleset is removing or slowing traffic. Confirm the BPF expression applied to the capture interface matches what you intended, since a broad or mistyped expression can silently discard traffic. Then review the enabled NIDS rules in the Detections interface and note whether a recent rule change or a large rule addition coincides with the loss. Compare stats.log output before and after any ruleset change. Treat the BPF and ruleset as separate variables so the cause stays clear. Continue only when the filter matches the design and rule changes have been reviewed against the timing of the loss.
Change one variable and re-measure
Make a single change, such as adjusting one AF-PACKET thread setting, one max-pending-packets value, one CPU pinning decision or one BPF expression, and record it with the time it was applied. Then repeat the same measurements from the baseline over a comparable traffic window: Grid figures, stats.log counters, NIC counters and thread utilization. Compare the results against the baseline. If loss falls and no other counter worsens, keep the change and document it. If loss does not move or another layer gets worse, revert the change before testing the next variable. Repeat this loop until the loss is within the level you agreed to accept, or until the evidence points upstream to the TAP or SPAN again.
How the Suricata and Zeek readings map to the capture path
Packets reach a Security Onion sensor from a mirror port, a TAP or a cloud traffic mirror, and the sensor's capture interface hands them to two separate consumers: Suricata, which inspects traffic for alerts and keeps its own packet statistics, and Zeek, which builds connection and protocol logs. Each consumer can lose packets at its own point in that path, so a drop counted by one is not automatically a drop seen by the other. The first job is to place each reading on that path before changing anything. Suricata's counters are the ones the Suricata documentation points to: the packet statistics are available in Grid, in InfluxDB, and in the file /opt/so/log/suricata/stats.log on the sensor. Confirm on your own version which of those sources is populated and at what interval, because the file is the most direct view of what Suricata received and dropped.
Zeek loss and tool loss are different signals and need separate interpretation. Loss reported by the capture layer or the Zeek process means packets were not delivered to the analysis at all, which points toward the NIC, the kernel buffers, the capture threads or the upstream port. Loss reported by a tool after delivery, such as Suricata dropping packets because its own pending queue overflowed, points toward the tool's configuration and the ruleset load on the assigned CPUs. A healthy Suricata counter does not prove Zeek saw everything, and the reverse holds as well. Before tuning, compare the two readings over the same window and decide which side of the capture path is losing traffic. The Security Onion Suricata docs suggest ruleset tuning, a BPF, max-pending-packets or AF-PACKET threads as remedies, and each one only addresses the stage it sits in.
The packet path from tap to analyst and where loss is measured
The path starts at an upstream TAP or SPAN port, which copies traffic to a sensor NIC. The NIC hands frames to the kernel buffer, where drops can happen before any Security Onion process sees them. Suricata reads through AF-PACKET threads and writes its counters to stats.log, while Zeek parses the same traffic and its results flow downstream to indexing. Grid, InfluxDB and stats.log each report loss at a different point, so compare them from the sensor outward to find the first place counts diverge.
Where packets can be dropped, and where each loss reading is reported.
Security and operational risks when tuning capture
Every change that reduces packet loss also changes what the sensor sees, what it costs the host and who can read what it captures. The cards below cover the risks that tend to surface after a tuning change, so the fix does not create a new gap in detection or a new exposure.
BPF and ruleset changes hide traffic
A BPF filter that drops traffic before Suricata or Zeek inspects it removes that traffic from detection entirely, and the alert count may fall without anyone noticing a real problem. Narrowing the ruleset for performance has the same effect on coverage. Before and after each change, compare alert volume and stats.log counters for the affected interfaces, and record which subnets or protocols are now excluded on purpose.
Suricata docsCPU pinning affects other services
Pinning AF-PACKET threads or capture processes to specific cores removes those cores from the scheduler for everything else on the sensor. On a host that also runs Elasticsearch, forwarders or other grid roles, this can starve neighboring processes and create loss of a different kind. Check host CPU load after each pinning change and confirm the sensor still meets the minimum core count in the hardware guidance.
Hardware requirementsRestrict sensor access and logs
Troubleshooting usually means opening shell access to sensors and reading logs that can reveal internal hostnames, addresses and traffic patterns. Limit SSH and sudo to named administrators, route log access through the same review process as production systems, and remove temporary debug accounts when the investigation ends. Confirm who can read stats.log and the Grid page data before you share screenshots outside the security team.
Record and reverse every change
Capture tuning is easy to apply and hard to reconstruct later, especially when an upstream TAP or SPAN change happens at the same time. Record each change with its time, the previous value, the reason and the observed effect on loss counters. Keep a tested rollback for the BPF, thread count and max-pending-packets settings so a bad change can be reverted in one step. Configuration changes on a Salt-managed grid should go through the supported config path so they remain auditable.
Full packet capture holds sensitive data
Packets captured while chasing loss can include credentials, session tokens, personal data and regulated content. Storing more of them for longer to diagnose a problem increases exposure, so limit how much is kept during troubleshooting and confirm the PCAP retention setting before extended captures. Ask your compliance and privacy team which data classes apply, who may search captured content and how deletion is evidenced.
Questions teams ask before bringing in outside help on packet loss
How long does it take to find where packets are being lost?
The duration depends on how many capture points are involved and whether the loss is reproducible. A single sensor with clear Suricata statistics and Grid readings can often be narrowed down quickly, while a multi-sensor grid with intermittent loss takes longer because each hop has to be measured separately. The main drivers are the number of sensors, whether you have historical InfluxDB graphs covering the problem period, how easily the loss can be triggered during a test window, and whether the upstream TAP or SPAN configuration is documented. Ask any partner to state the diagnosis steps and the evidence each step produces before agreeing on a timeline, and confirm whether the timeline assumes a live test window with your traffic.
What effort does packet loss work require from our network and security teams?
Your network team needs to confirm how traffic reaches each sensor, including TAP or SPAN port configuration, mirror session settings and any aggregation or filtering devices in between. Your security team needs to provide access to the Security Onion Console, the Grid page, and the relevant statistics, and to schedule a window where the traffic pattern can be observed. Expect some change work on the sensor itself, such as adjusting BPF filters, AF-PACKET threads or CPU pinning, which should be approved through your normal change process. Ask any partner to list each person and each access need in the written scope so both teams know their commitments before work starts.
Can our internal team troubleshoot packet loss on Security Onion without outside help?
Yes, a team with Linux administration skills, network access to the sensors and a clear understanding of Zeek and Suricata can troubleshoot packet loss internally. The work is mostly methodical: compare Zeek capture loss with tool loss on the Grid page, read Suricata statistics from the stats.log file or InfluxDB, check worker and thread counts, verify BPF filters, and test the upstream TAP or SPAN feed. Outside help tends to add value when the team lacks time to run controlled tests, when the cause sits in several layers at once, or when changes must be validated before they touch production sensors. Your team should decide based on its available time and the experience it has with these components.
How does a partner price packet loss troubleshooting?
Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so a quote follows from the written scope. The main cost drivers are the number of sensors and grid nodes in scope, the number of capture points and upstream devices to examine, whether a controlled test window is needed, and whether the work ends at a diagnosis or includes fixes and validation. Ask for the quote to list each diagnostic step, each deliverable, any assumptions about access and test windows, and whether a follow-up retest is included. Ongoing monitoring or retainer support is quoted separately.
What data do we need to share with a partner investigating packet loss?
Share only what is needed to diagnose the capture path, and check your data handling rules before sending anything. Typical inputs include the Security Onion version and deployment type, the sensor hardware and NIC details, the Suricata configuration and ruleset summary, the BPF and AF-PACKET settings, the Suricata stats.log output for the problem period, and the Grid page or InfluxDB readings. Packet captures may contain sensitive content, so agree whether they are needed, how they are transferred and where they are stored. Redact hostnames, IP addresses and internal identifiers where your policy requires it, and confirm in writing how shared data is deleted at the end of the engagement.
What should we do if packet loss starts upstream of the Security Onion sensor?
If the loss happens before traffic reaches the sensor, tuning Security Onion will not fix it, so the work moves to the network path. Check the TAP or SPAN configuration, mirror session limits, oversubscription on the monitor port, duplex and speed mismatches, and any filtering or aggregation device between the source and the sensor. A practical test is to compare traffic volumes at the source with what the sensor receives over the same period. Once the upstream cause is confirmed, the fix belongs to your network team, and a partner can document the findings and help plan a retest. Confirm with your network vendor the exact capabilities and limits of your specific TAP or switch model.
Which signals show whether the loss is on the sensor or in the upstream feed?
Start by comparing capture loss reported by Zeek with the drop counters from Suricata, since these measure different points in the pipeline. If Zeek reports loss on the sensor while the upstream feed looks stable, focus on the sensor: CPU saturation, worker and thread allocation, and BPF scope. If both tools show loss only during peak periods, the feed may be oversubscribed. Confirm the readings on the Grid page and in the Suricata stats.log file for the same time window before changing any setting, since a single snapshot can mislead. Document each reading with its timestamp so the findings can be reproduced later.
How DeployOpen scopes and delivers packet loss work
DeployOpen approaches packet and capture loss in Security Onion as a bounded engagement: we first establish where packets are lost, then change one variable at a time and verify each change against the same counters. Work is planned and agreed in writing before it starts, and the findings are handed over so your team can repeat the measurements.
How we scope
- Written scope names the sensors, interfaces, TAP or SPAN sources and Security Onion version under review.
- We agree which loss signals are in scope: Grid page readings, Suricata stats.log, InfluxDB graphs and Zeek capture statistics.
- Scope states what access we need to nodes, the Console and upstream network equipment, and who on your side approves changes.
How we build
- We baseline current drop counters, traffic rates and CPU use per worker before changing any setting.
- We test ruleset, BPF, max-pending-packets, AF-PACKET thread and CPU pinning changes one at a time, and record each result.
- We check upstream TAP and SPAN configuration, duplex and oversubscription, and document any problem that sits outside the Security Onion grid.
How we hand over
- You receive a written findings report that separates Zeek capture loss from tool-side loss, with the evidence for each finding.
- Changes are documented with the Salt-managed configuration path, so your team knows where each setting lives and how it is applied.
- We provide a repeatable measurement procedure, so your team can recheck loss after future rule or traffic changes.
How we support
- Fixed-scope engagements close when the agreed deliverables are accepted, with any follow-up work quoted separately.
- Ongoing support, upgrades and continuous monitoring are available as a retainer if traffic grows or the grid changes.
- Before your next Security Onion upgrade, we can rerun the baseline and confirm that loss figures have not moved.

