Does syslog-ng Remember Between Runs? Its Persist File Resumes the File. Nothing Resumes the Reasoning.
Does syslog-ng Remember Between Runs? Its Persist File Resumes the File. Nothing Resumes the Reasoning. syslog-ng collects, filters, and forwards log messages for servers and networks, and it restarts constantly: package upgrades, config reloads, host reboots, container rescheduling. So the memory question is concrete. When syslog-ng comes back, what does it still hold, and what was never stored anywhere? The documented answer splits in two. syslog-ng remembers delivery state very well. A pers
Does syslog-ng Remember Between Runs? Its Persist File Resumes the File. Nothing Resumes the Reasoning.
syslog-ng collects, filters, and forwards log messages for servers and networks, and it restarts constantly: package upgrades, config reloads, host reboots, container rescheduling. So the memory question is concrete. When syslog-ng comes back, what does it still hold, and what was never stored anywhere?
The documented answer splits in two. syslog-ng remembers delivery state very well. A persist file records where each file reader stopped, and a per-destination disk buffer holds undelivered messages through restarts and crashes. What it does not hold is any conclusion drawn from those messages. A scheduled AI agent that read yesterday's forwarded logs, grouped the failures, and decided which hosts mattered starts its next run with the raw messages available and none of its own reasoning saved.
The persist file: where each reader stopped
When syslog-ng tails a text file with the file() or wildcard-file() source, it needs to know which lines were already sent. That position lives in the persist file, typically at /var/lib/syslog-ng/syslog-ng.persist, with the path settable through the --persist-file option.
On restart, syslog-ng reads the recorded position of the last sent log message for each file and continues from exactly there. It also notices when a file was renamed or replaced, so log rotation does not break the trail. The persist file holds more than offsets: it also records where each destination's disk-buffer files live, which is why the documentation warns that changing a disk-buffer dir() option requires deleting the persist file first. Otherwise the restarted process looks for its buffer files in the old location.
Notice the shape of this memory. It is a set of positions and paths. It says nothing about what the messages meant.
The disk buffer: messages waiting for a destination
Delivery has its own problem. A destination can go unreachable while messages keep arriving, and an in-memory queue alone would lose them on the next restart. The disk-buffer() option, available on destinations, moves that queue onto local disk.
Each destination gets its own disk buffer. Messages stored there are sent onward, in the order they were received, once the connection is reestablished. The buffer is persistent: unsent messages survive a restart, and the documentation states the disk buffer is also resistant to syslog-ng crashes. Its size is set explicitly; disk-buf-size() is required, with a minimum of 1048576 bytes, and newer versions name the same limit capacity-bytes().
So a network outage becomes a backlog on disk rather than lost evidence. The messages wait, unchanged, for delivery to resume.
Reliable versus normal: two strengths of the same idea
The disk buffer comes in two modes, and the difference decides what a crash can take.
With reliable() set to yes, every message on that log path is written into the disk buffer. The documentation is direct: with reliable buffering, syslog-ng cannot lose logs in case of a reload, a restart, an unreachable destination, or a crash. A memory portion rides in front of the disk file, sized by mem-buf-size(), which defaults to 163840000 bytes; once buffered data passes that threshold minus the memory portion, flow control slows the source instead of dropping messages.
With reliable() set to no, the normal buffer is faster and looser. Messages go to the in-memory output queue first and reach the disk-buffer file only when that queue fills. The overflow queue holds 10000 messages by default under mem-buf-length(). In-memory queues are written into the disk-buffer file during a graceful reload, restart, or stop, but a power failure or crash can take whatever was still only in memory.
Either way, the unit of memory is the message. Queued, ordered, intact, and uninterpreted.
What none of this stores
Put the three pieces together and the boundary is clear. The persist file stores positions. The disk buffer stores undelivered messages. The reliable mode stores those messages more strongly. None of them stores an analysis.
Consider a scheduled automation that reads the forwarded stream every night: it counts authentication failures per host, notices one subnet drifting, and flags two machines for review. syslog-ng faithfully delivers every line that reasoning was built on, and its restart state guarantees the stream resumes cleanly. But the counts, the drift judgment, and the flags live only in that run. The next run opens the same stream and derives everything again, or, if the prompt and tooling changed slightly, derives something slightly different and never notices the disagreement.
That gap is the general one for scheduled agents. Delivery memory answers "did the data arrive and where did reading stop?" Agent memory has to answer "what was concluded last time, and what should happen next because of it?"
Giving the agent a memory of its own
That second kind of memory is what Vilix AI provides for AI agents and automations. Vilix AI is a cloud-hosted memory layer reached over MCP, so there is no database to install, no vector store to tune, and no infrastructure to maintain on the log host or anywhere else. A scheduled run saves its conclusions as it works and reads them back at the start of the next run.
Because the memory lives in one hosted place, the same memory is available everywhere the work runs: the nightly triage agent, a second agent checking a different stream, and an interactive session asking follow-up questions all read and write the same shared state over MCP. And Vilix AI keeps the full conversation history, not just extracted facts, so a later run can recover not only the flag that was set but the exchange and evidence that led to it.
The practical split is simple. Let syslog-ng do what its persist file and disk buffer already do well: resume reading at the right offset and deliver every message through outages. Let the agent carry its own reasoning in Vilix AI, so tonight's run starts from last night's conclusions instead of rebuilding them. Vilix AI offers a free plan that stays free forever, and a 7-day Pro trial with no card required, so the pattern can be tested on one scheduled job before it spreads. Memory stays under the account's control, with export and delete available at any time.
syslog-ng remembers exactly where it stopped and exactly what it still owes a destination. The reasoning about those messages deserves the same treatment, kept in a memory built for the agent rather than borrowed from the delivery queue.