fix: log digests strip the dates, so a failed-then-fixed error looks live #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
knox_search(scope=logs)returns a digest like:Everything that makes an error diagnosable has been normalized away, including when it happened. A disk-full failure from Oct 22 (fixed the same day) and a provider billing rejection from Nov 1 render as identical-looking lines, so a resolved fault reads exactly like a live one. Dating them required going back to the raw log.
Cause
normalizeLogLinestripstimestamp=first (tsPrefixRE=^timestamp=\S+\s*), so the day is gone before signatures are de-duplicated and rendered. The timestamp is the one volatile field that carries meaning: it is what separates "still happening" from "already fixed".Expected
2026-10-22 level=ERROR ...when seen once,2026-10-01..2026-11-01 level=ERROR ...for a range.err:sample shows what is live now instead of what sorts first alphabetically.log-parser/v3.Already in
main:log-parser/v3,TestLogDigestKeepsDates, and the{text, first, last}signature rendering all landed with the #45 squash, so PR #40 had an empty diff against main.Verified just now:
go test ./internal/ingest -run 'LogDigest|LogContentHash'passes, including the day-range rendering. Closing the PR and this issue — no work remains.(
git log -S TestLogDigestKeepsDatesattributes it to00f277c, which is why the open PR looked mergeable on Gitea and empty locally.)