Which parts it is made of, where each one runs, what it reads and writes, and the exact path a record takes out of Graylog and back. Everything here describes what the code actually does.
One Python service next to Graylog. It reads Graylog through its API and OpenSearch, keeps its own SQLite database and archive files, and writes to Graylog only when you ask it to.
jt-glogarch.service
jt-glogarch
systemd-journal group so the System Logs page can read the journal/opt/jt-glogarch (settings, database, certificates) and the archive pathbesides your own schedules
Two readers, one writer: both modes stream into hourly .json.gz files and share the same coverage rule, so they can be switched at any time.
must_not, so archived records are never fetched._count first, so the scan can prove it returned every document.search_after cursor per shard, pinned to the primary, merged back into time order.An export is a guest on Graylog's cluster. It watches the host and gives way.
Why: on busy or HDD-backed storage a heavy export loads the same OpenSearch cluster Graylog indexes into, and can wedge Graylog until it is restarted. Every fast path — OpenSearch Direct export and Bulk import included — is throttled the same way; Bulk watches OpenSearch heap and this host’s free memory.
Before anything is sent, the target is checked and prepared; afterwards the result is reconciled.
Every message goes through Graylog's input, pipelines, extractors and stream routing again. TCP gives backpressure, so nothing is dropped silently; a reconnect during the send means the result is not called “verified”.
Writes through the index set's deflector alias so Graylog finds the data at once, with gl2_message_id as the document ID (no duplicates) and a marker field. The response is checked document by document.
Compliance goal: zero lost messages and zero indexer failures. Archives are read in batches, never loaded whole — customer archives reach 1.2 GB compressed. Import slows down and shrinks its batch when the target’s journal, buffers or heap, or this host’s memory, are under pressure.
Every archive can prove it is the file that was written.
JT_HMAC_KEY or a 0600 key file.A Data Node is Graylog-managed OpenSearch that accepts client certificates only. Measured on Graylog 6.3, 7.0, 7.1 and 7.2.
POST /api/ca/clientcert as a Graylog admin: Graylog's CA signs a 90-day certificate and maps it to all_access.certs/datanode/<server>/, replaced atomically.Each jt-glogarch server gets its own certificate name, so two servers on one cluster never revoke each other. A server with a connected Data Node cannot be deleted before Disconnect.
A scheduled run, off by default, that reads counts from Graylog with the detector's own server connection.
POST /api/search/aggregate per probe: grouped counts, never message text.A loop between your question, the model and read-only tools, sized to the model you run.
Customers upgrade unattended and the first scheduled run fires at night with nobody watching. Four rules override convenience.
A change applied to state written by an older version may only go in the safe direction automatically: a cleanup never starts deleting what the previous version kept.
The service must start and serve; /api/health must report the new version before a release counts as done.
Every schedule must survive and be registered; the first 03:00 run after an unattended upgrade must work.
When Ubuntu moves Python 3.10 → 3.12 the installed package cannot be imported; every step before the reinstall uses only bash and the standard library.
sqlite3 if the package cannot load).git pull, or the offline bundle; a clone that diverged from the published history is reset safely.pip install --force-reinstall, so the service never runs stale code./api/health must answer with the new version; the PDF engine is tested by rendering a real page.A tool that reads your whole logging platform should be clear about what it touches.