How to Read Suricata EVE JSON Network Events

Suricata writes network observations to its EVE log as individual JSON event records. One connection can produce an alert, a flow summary, and a protocol record such as HTTP, DNS, or TLS. Reading them together gives more context than reading one alert line. The shared flow_id is the practical key for correlating records within the sensor's output, while timestamps and endpoint fields help confirm that the match is relevant.
Use this method only for network data you are authorized to inspect. An EVE record can include addresses, hostnames, URLs, certificate details, and potentially payload data depending on configuration. An alert is a rule match that needs investigation; it is not by itself proof of a confirmed attack or proof that Suricata blocked traffic.
Find the EVE Output and Enabled Types
Start with the Suricata configuration actually running on the sensor. The eve-log output can write a regular file named eve.json, but the configuration may select another filename, syslog, a Unix socket, or Redis. Threaded output can split records across numbered files. Record the Suricata version, output destination, and enabled types before assuming a missing event should exist. The field names below follow the Suricata 8.x EVE layout; optional fields and protocol details depend on the running version and configuration.
Look for alert, flow, and the protocol types relevant to the case, such as http, dns, or tls. The configuration can enable or disable each type and tune its fields. An alert may include extra application metadata, but that does not make it a substitute for a separate protocol event. A flow summary may appear after the alert because Suricata writes the summary when the flow is removed, for example after a timeout or sensor shutdown.
Work on a copy limited to the relevant time range, keeping the original log unchanged. A JSON-lines parser can inspect each event independently. Avoid publishing a sample taken from real traffic without removing secrets and identifiers. If you use a command-line JSON filter, confirm that it preserves full numeric flow_id values and handles malformed or partial lines explicitly.
Read Time, Endpoints, and Flow Identifiers
Start with timestamp and event_type, then read any available flow_id, endpoint, and protocol fields. The timestamp includes a UTC offset, which must be accounted for when comparing events. Normalize times before comparing EVE with firewall, application, or packet-capture logs. Sensor clock drift can make related events appear out of order even after their time zones are aligned.
For a flow summary, use flow.start and flow.end to determine the observed interval; the top-level timestamp is not a substitute for both boundaries.
flow_id identifies related records generated by Suricata for a flow. Match it together with the sensor, file set, and time range rather than treating the number as a universal identity across deployments. The optional community_id is a separate field designed to support matching with other tools when compatible settings and seed are used. Do not confuse it with flow_id or assume it appears unless enabled.
Check endpoint orientation. An alert's source fields can describe the sender of the packet that triggered the signature, while a flow record summarizes both directions. A proxy or network address translation layer can alter the addresses visible to the sensor. For TCP or UDP, compare the two addresses, the two ports, and the transport protocol, allowing for reversed directions. Use the sensor's position in the network to judge which side of a proxy or address translation the record represents.
Correlate Alert, Flow, and Protocol Records
Take one alert and find other EVE records with the same flow_id in the relevant time window. An alert record names the matching signature, action, and related metadata. A flow record can show start and end times, packet and byte counts in both directions, state, and whether an alert was associated with the flow. An HTTP or DNS record can add transaction-level context, if that type was enabled and Suricata decoded the protocol.
For example, a rule match on a web request may correlate with an HTTP event showing the host and path and a flow event showing that traffic continued for a period. The presence of a flow record does not prove the request was safe, and the absence of an HTTP record does not prove that no HTTP request occurred. The service might use encryption, the protocol logger might be disabled, the parser might not have identified the protocol, or the relevant record might have been lost.
A single HTTP connection can carry several request-response transactions. When tx_id is present, compare it as well as flow_id before associating an alert with a particular request. Do not attach every HTTP event on the connection to the same alert.
The following shortened records illustrate one hypothetical flow; fields unrelated to this example are omitted:
{"event_type":"alert","flow_id":12345,"tx_id":2}
{"event_type":"http","flow_id":12345,"tx_id":2,"http":{"hostname":"example.com","url":"/status","status":200}}
{"event_type":"flow","flow_id":12345,"flow":{"alerted":true}}The first two records identify the same flow and transaction, while the last record summarizes the flow. The HTTP status describes the application response, and flow.alerted indicates that the flow was associated with an alert. Neither field alone establishes whether the activity was legitimate. In a real investigation, confirm the timestamps and endpoints in the complete records before accepting the match.
Separate Detection from Enforcement
An alert is a detection event. It can be produced while Suricata observes traffic without blocking it. The alert action field alone is not a complete description of final packet handling when other rules or engine decisions apply. Optional verdict information describes the engine's final packet decision, while a separate drop event reports packet drops when that logging is enabled. Check the sensor's IPS mode, enabled logging, final verdict, and independent service outcome before claiming a packet was blocked.
Similarly, a signature match does not establish malicious intent. Rules can trigger on benign tests, shared infrastructure, or unusual but legitimate traffic. Validate the rule, context, affected asset, timeline, and related evidence before classifying an incident. Keep the original event and your interpretation separate so later reviewers can reassess it.
Investigate Gaps and Sensor Drops
If an expected protocol event is missing, check the configured EVE types first. Then consider encryption, incomplete flows, unsupported decoding, capture placement, buffering, rotation, and output delivery. Threaded EVE output can spread related records across multiple files, so searching just one file may miss the match. An event may also be delayed until its flow ends or until buffered output is flushed.
Review the sensor's stats events and capture counters for drops or alert queue overflow where available. For AF_PACKET capture, stats.capture.kernel_drops counts packets discarded before delivery to Suricata; it is not an IPS block counter. A rise in stats.detect.alert_queue_overflow points to discarded alerts, such as alerts exceeding the per-packet queue limit, rather than missing captured packets.
Also check stats.detect.alerts_suppressed when rules or thresholds intentionally suppress alert output. Interpret each counter for the capture method and sensor configuration in use. A gap in logs does not prove that no traffic occurred; record the missing evidence and the sensor limitations that could explain it.
Redact and Retain Evidence
Preserve the minimal event set that supports the investigation: the alert, related flow and protocol records, sensor version and configuration context, collection time, and a checksum or other integrity record if your process requires one. Restrict access to the original files. Redact addresses, URLs, credentials, and payload fields before sharing excerpts, while keeping the flow_id relationship understandable. Document any removed fields and the retention deadline.
Keep each excerpt linked to its sensor, source file, and time range. If an address is replaced with a placeholder, use the same replacement throughout the shared sample so related events can still be compared. Preserve an unedited original separately for authorized follow-up.







