Does Packetbeat Remember Between Runs? The Wire Has No Bookmark. The Transactions Die With the Process.
Does Packetbeat Remember Between Runs? The Wire Has No Bookmark. The Transactions Die With the Process. Packetbeat watches live network traffic. It captures packets between servers, decodes application protocols such as HTTP, MySQL, PostgreSQL, Redis, DNS and MongoDB, correlates each request with its response, and publishes the result as a transaction document. That design raises a different memory question from the other Beats. Filebeat reads a file that is still there after a restart. Packetb
Does Packetbeat Remember Between Runs? The Wire Has No Bookmark. The Transactions Die With the Process.
Packetbeat watches live network traffic. It captures packets between servers, decodes application protocols such as HTTP, MySQL, PostgreSQL, Redis, DNS and MongoDB, correlates each request with its response, and publishes the result as a transaction document. That design raises a different memory question from the other Beats. Filebeat reads a file that is still there after a restart. Packetbeat reads a wire that is not. When Packetbeat stops and starts again, what, if anything, does it pick up?
The short answer is almost nothing, and for a structural reason. There is no position to resume. Packets that crossed the interface while the process was down were never captured, never decoded and never stored anywhere. Inside a running process, Packetbeat holds two kinds of short-lived state: a flow table for network statistics and a transaction cache that pairs requests with responses. A restart clears both. Only one optional mechanism, the disk queue, lets unpublished events survive, and it protects delivery, not observation.
No registry, because there is no file to return to
Filebeat and Winlogbeat keep a registry because their sources persist. A log file keeps its lines and an event channel keeps its records, so those Beats can store an offset or a bookmark and continue from it.
Packetbeat has no equivalent. Its source is traffic in motion. Elastic describes it as a real-time network packet analyzer that sniffs traffic, parses application-level protocols on the fly and correlates messages into transactions. On the fly is the key phrase. If the sniffer is not running, that moment of traffic is gone. No registry entry can recreate a request that was never captured, and no bookmark can rewind the network.
Configuration does survive: packetbeat.yml, the interface and the enabled protocols are read again on startup. That is settings being reloaded, not memory being resumed.
The flow table: 30 seconds of patience, then a report
Packetbeat also reports network flows, groups of packets that share properties such as source, destination and protocol. Flows are enabled by default, and the flow state is held in a table inside the running process.
Each flow has a timeout, 30 seconds by default. If no packet arrives for that flow inside the timeout window, the flow is killed and reported. Flows are also reported periodically, every 10 seconds by default, with an intermediate event marked flow.final: false. When the flow completes, one last event carries flow.final: true. Setting the reporting period to -1s disables the intermediate reports, so only killed flows are reported.
That table is real memory, but it is memory with a short fuse and no disk behind it. Restart Packetbeat mid-flow and the counters for that flow, packets and bytes counted so far, vanish with the process. The restarted process starts counting new flows from the traffic it can see now. It does not reconstruct the half-finished flow, because the packets that built it are no longer available to count again.
The transaction cache: a request waiting for its answer
Transaction correlation works the same way. A request arrives, Packetbeat decodes it, and then it has to hold that request somewhere while it waits for the matching response. Only when both halves are seen can it publish one complete transaction with timing, status and the interesting fields from both sides.
That holding area lives in memory for the life of the process. It is what makes the output useful: instead of two unrelated packet streams, you get a single record of a database query, an HTTP exchange or a Redis call. But it is not persisted. Stop the process between a request and its response and the pairing is lost. The next process never saw the request, so even if the response crosses the wire after the restart, there is nothing left to pair it with.
The internal queue: delivery buffer, memory by default
Once a transaction or flow event is built, it waits in the internal queue before the output accepts it. The default queue is the memory queue. It buffers events and presents them to the output in batches, and while the process lives it protects events against a slow output.
A restart empties it. Every built but unpublished event in the memory queue is lost when the process stops. The traffic was captured, the decoding work was done, and the result still never reaches Elasticsearch, because the only place it existed was RAM.
The disk queue changes that one answer. Configured instead of the memory queue, it stores incoming events on disk, under a path such as ${path.data}/diskqueue, until the output is ready for them, and Elastic notes that this lets pending events persist through a restart. Enable it where output outages are common. Just be clear about its limits: it preserves finished events waiting for delivery. It does not preserve the flow table, it does not preserve a half-correlated transaction, and it cannot capture traffic that crossed the wire while the process was down.
What Packetbeat never remembers at all
None of these mechanisms holds a conclusion. The flow table does not remember that the last investigation already traced the latency to one database host. The transaction cache does not remember that an automation already opened an incident, already suppressed a known noisy client, or already decided a spike was a scheduled backup. Packetbeat records traffic faithfully and then forgets everything except what it already shipped to its output.
Scheduled automations feel that gap directly. A workflow that reviews Packetbeat transactions every hour to hunt slow services starts each run cold. It can query the published transactions, but it has to re-derive which services were already investigated, which findings were already explained and which actions are already in flight. The traffic data survived in the output. The reasoning about it survived nowhere, because no layer in this stack was built to keep it.
Give the reasoning a place to live
Vilix AI is that missing layer for the automation side. It is cloud-hosted with zero infrastructure to run, and automations connect to it over MCP rather than standing up and maintaining a memory server beside the monitoring stack. The same memory is available everywhere MCP runs, so the workflow triaging network data and the agent drafting the incident summary read one shared state instead of two private guesses.
Vilix AI keeps full conversation history, not just extracted facts, so a run can see what the previous run concluded, what evidence it used and what it already did, before it acts again. Packetbeat answers what crossed the wire. Shared memory answers what your automation already made of it.
Start on the free plan, which stays free forever, or run the 7-day Pro trial with no card required. Export or delete your memory at any time. Let Packetbeat watch the wire, use the disk queue if delivery durability matters, and stop asking a packet sniffer to remember your reasoning between runs.