Repository navigation
Releases
Releases · lsariol/blackbox
v0.0.2
v0.0.2 (2026-11-18)
Error counts and repeated errors, for the CLI and for Vista, Spark's dashboard, which becomes the API's second consumer.
Added
- Vista can use the API, with its own token in
SHARED_BLACKBOX_VISTA_TOKENand the same read access as the CLI. GET /v1/stats/errorscounts error and warning lines per project, per hour or day, with each project's totals.GET /v1/stats/errors/groupsgroups repeated lines by project, service, level and fingerprint: the message and itserrfield, with ids and numbers taken out. Each group has a count, when it was first and last seen, and its newest line, forcontext. Both endpoints cover the last 24 hours unless given a range, and at most 31 days.- The CLI's
errorscommand lists the repeated errors, most frequent first;--level warnadds warnings. - An MIT
LICENSE.
Changed
blackbox-apineeds a token for every consumer to start, now includingSHARED_BLACKBOX_VISTA_TOKEN.- The image runs as user 10001; only
blackbox-proxyruns as root, set in the compose file, to read the Docker socket. - Blackbox's start line no longer repeats its version and environment, which are read from Docker.
- Go 1.27.4.
- The README is rewritten, with the features, the API and every setting.
Fixed
- A service that stops on an error logs why at
ERROR, instead of as plain text with no level, so searches and error counts include it. - A shutdown that runs past its time limit is logged instead of ignored.
v0.0.1
v0.0.1 (2026-11-02)
Small fixes from Blackbox's first day collecting real logs.
Changed
- The API moved to port 3190 (
blackbox-api:3190onspark), and to 3191 for local development. It stays unpublished in prod.
Fixed
- Ordinary sentences about cookies are no longer hidden: chat lines such as "Your daily cookie: …" were redacted as if they were
Cookie:headers. Real cookie headers andcookie=values still are. - Tabs in log lines show as spaces in the CLI, not
?. Multi-line Postgres statements are readable now.
v0.0.0
v0.0.0 (2026-11-02)
First version: every container's logs, collected, kept for 30 days and searchable from the CLI.
Added
blackbox-proxy: the only part with the Docker socket. It has no network, lists containers without their environment or mounts, and passes log bytes through without reading them.blackbox-collector: follows every container, running or stopped, unless it's labelledcom.mobasity.logs=off. Each line's project, service and version come from Docker's labels.- Lines are parsed from JSON,
slogtext, Go'slog, cloudflared and Postgres. Anything else is kept as plain text with levelunknown. - Secrets in lines are hidden: bearer tokens, passwords in URLs,
AuthorizationandCookievalues, and values under sensitive names. - Each batch of lines is saved in one transaction with its containers' checkpoints, so a restart or an outage loses nothing and repeats nothing.
- Known and possible loss is recorded as a gap: a container removed before it was read, the collector being down, or a Docker log damaged by a power cut.
- Retention of 30 days, with a 1 GB cap that removes the oldest records first.
blackbox-api: authenticated search, single records, surrounding lines, sources, gaps and status, onblackbox-api:2600.- The CLI:
search,show,context,status,sources,gaps,consumers,migrate status,version,help. - Blackbox's own logs follow Spark's logging standard, through
blackboxlog.