Add a syslog receiver and test realtime timeline updates end to end
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
server/syslog-receiver.mjs listens on UDP and TCP (RFC 5424, RFC 3164, RFC 6587 framing) and appends each message as a moment through the API with an API key, at its exact Unix time, tagged by severity, facility, host and app. Routing rules choose timelines by host, app and msgid patterns, facility and minimum severity, with fan-out and a default. Saves are batched per timeline with the current revision; conflicts refetch it, outages and rate limits retry with backoff from a bounded queue, and IDs fixed on receipt make retries idempotent. An optional Compose profile runs it next to the platform. test/syslog-live-postgres.mjs drives syslog through the receiver, API, PostgreSQL and live event stream into an open editor: routing, live display, Follow latest, catch-up after a server restart, and a soak that checks every message is stored once and measures viewer latency (npm run bench:realtime). It runs in the PostgreSQL CI job. Fixes #49 Fixes #50 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ti36soiZpKdSxKfvQLEcfY https://github.com/openchronology/timeline-app/commit/055e5d6f163eda5f71bcf519919a258ed56bdd88
Related
Open Add a syslog receiver and test realtime timeline updates end to end in the timeline