Free forever, no credit card.Get Started for Free →
← All posts
December 5, 2026 · 6 min read

Does NXLog Remember Between Runs? Its Cache File Resumes the File. Nothing Resumes the Reasoning.

Does NXLog Remember Between Runs? Its Cache File Resumes the File. Nothing Resumes the Reasoning. NXLog collects log messages from files, Windows Event Log, and network inputs, then forwards them to a SIEM or storage destination. It also restarts often: config changes, agent upgrades, host reboots. So the memory question is practical. When NXLog comes back, what does it still hold, and what was never stored anywhere? The documented answer splits in two. NXLog remembers delivery state carefully

Does NXLog Remember Between Runs? Its Cache File Resumes the File. Nothing Resumes the Reasoning.

NXLog collects log messages from files, Windows Event Log, and network inputs, then forwards them to a SIEM or storage destination. It also restarts often: config changes, agent upgrades, host reboots. So the memory question is practical. When NXLog comes back, what does it still hold, and what was never stored anywhere?

The documented answer splits in two. NXLog remembers delivery state carefully. A cache file holds where each file reader stopped, and log queues hold events that have not reached the next module yet, with options to put those queues on disk. What NXLog does not hold is any conclusion drawn from those events. 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 events available and none of its own reasoning saved.

The cache file: where each reader stopped

When the im_file module tails a file, it needs to know which events were already read. That position is controlled by the SavePos directive, which defaults to TRUE. With SavePos active, NXLog Agent saves the position of the last read event when it exits, and on the next startup it reads that saved position back from the cache file, configcache.dat.

The bookmark lives in the configuration cache and is managed by the NXLog core, not by the module itself. Bookmarks that have not been updated within the CacheInvalidationTime period are removed, and a file whose stale bookmark was removed is treated as new the next time it changes. The same happens if configcache.dat is deleted or corrupted: monitored files are treated as new and read from the beginning.

SavePos works together with ReadFromLast, which also defaults to TRUE. If a saved position exists, reading resumes from that position regardless of the ReadFromLast setting. If no saved position exists and ReadFromLast is TRUE, only events logged after startup are read. If no saved position exists and ReadFromLast is FALSE, the whole file is read from the start. The global NoCache directive overrides SavePos entirely and turns position saving off.

Notice the shape of this memory. It is a set of bookmarks. It says where reading stopped, and nothing about what the events meant.

The log queue: events waiting for the next module

Delivery inside NXLog has its own memory. Every processor and output module instance has an input log queue holding events it has not processed yet. LogqueueSize sets its size; for a memory queue the default is 2 MiB, minimum 512 KiB.

Queues come with flow control. The preceding module keeps placing batches in the queue while it is less than 70 percent full. Past that point, flow control suspends the upstream module until the congested instance catches up. For pausable sources such as files, Windows Event Log, and TCP, that backpressure prevents loss during a slow destination.

A clean stop is also protected. When NXLog Agent stops, it writes records still in the queue to disk and processes them first after restart, regardless of PersistLogqueue. A clean restart does not lose queued data.

Persistent queues and pm_buffer: stronger versions of the same idea

A clean shutdown flushes queues to disk, but a crash or power loss does not wait for that flush. PersistLogqueue changes the queue itself: set to TRUE, it keeps the queue on disk instead of in memory, and events are removed only after successful delivery. SyncLogqueue goes one step further and syncs every record to disk before processing the next one. That is the strongest guarantee the queues offer against a hard crash, and the most expensive in I/O.

The cache file has matching controls. By default it is saved to disk every 5 seconds, so a crash can still duplicate or lose a few events. CacheFlushInterval and CacheSync tighten that window, down to flushing on every new position.

For outages measured in hours, queues are the wrong size, and the pm_buffer processor module exists for that case. A pm_buffer instance supports memory and disk buffer types, sized in kilobytes with a required MaxSize and an optional WarnLimit that logs a warning when the buffer crosses a threshold. A common pattern chains a small memory buffer in front of a large disk buffer, so routine blips stay in memory and only sustained outages spill to disk.

Every one of these mechanisms stores the same unit: the event, queued, ordered, and intact. None of them stores an interpretation of it.

What none of this stores

Put the pieces together and the boundary is clear. The cache file stores positions. The log queue stores undelivered events. The persistent queue and pm_buffer store those events 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. NXLog faithfully delivers every line that reasoning was built on. But the counts, the drift judgment, and the flags live only in that run. The next run derives everything again, or, if the prompt 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 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 evidence that led to it.

The practical split is simple. Let NXLog do what its cache file and queues already do well: resume reading at the right position and deliver every event 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.

NXLog remembers exactly where it stopped and exactly what it still owes the next module. The reasoning about those events deserves the same treatment, kept in a memory built for the agent rather than borrowed from the delivery queue.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
Does Graylog Remember Between Runs? Its Journal Replays the Messages. Nothing Replays the Reasoning.

Does Graylog Remember Between Runs? Its Journal Replays the Messages. Nothing Replays the Reasoning. Graylog collects log messages from servers, network devices, and applications, then parses, indexes, and searches them from one interface. It also restarts: upgrades, config changes, host reboots, a search backend that needs attention. So the memory question matters. When Graylog comes back, what does it still hold, and what was never stored in the first place? The documented answer splits clea

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 Grafana Loki Remember Between Runs? Its WAL Replays the Lines. Nothing Replays the Reasoning.

Does Grafana Loki Remember Between Runs? Its WAL Replays the Lines. Nothing Replays the Reasoning. Grafana Loki collects log lines from servers, containers, and applications into one searchable store. It restarts for upgrades, scaling, config changes, and node failures, so the memory question is practical. When Loki comes back, what does it still hold, and what was never stored in the first place? The documented answer splits cleanly in two. Loki remembers log data very well: lines survive cra