feat: Structured Log Store + Interactive Log Explorer#20
Open
rh-rahulshetty wants to merge 7 commits into
Open
feat: Structured Log Store + Interactive Log Explorer#20rh-rahulshetty wants to merge 7 commits into
rh-rahulshetty wants to merge 7 commits into
Conversation
Signed-off-by: Rahul Shetty <rashetty@redhat.com>
Signed-off-by: Rahul Shetty <rashetty@redhat.com>
Signed-off-by: Rahul Shetty <rashetty@redhat.com>
Signed-off-by: Rahul Shetty <rashetty@redhat.com>
Signed-off-by: Rahul Shetty <rashetty@redhat.com>
Signed-off-by: Rahul Shetty <rashetty@redhat.com>
Signed-off-by: Rahul Shetty <rashetty@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After a
logan analyzerun there was no way to browse, search, or filter individual log lines without re-running analysis or grepping raw files. The summary page's golden signal timeline merged all input files onto a single time axis, making it unreadable when files covered different time periods. The file filter on the summary page also only affected the table, not the chart.What Does This PR Do
New Log Explorer page — interactive browser backed by DuckDB WASM running entirely in the browser (no server needed). Supports full-text search, filter by signal / source file / template, and a sortable paginated feed (newest first, oldest first, or original log order).
Offline asset bundling — at
logan analyzetime, DuckDB WASM and its dependencies (Apache Arrow, tslib, flatbuffers) are downloaded once, cached in~/.cache/logan/, and copied into the output directory so the explorer works without internet access at view time.Parquet log store — log entries and templates are persisted as
log_entries.parquetandtemplates.parquetand queried directly by DuckDB WASM, replacing large in-memory JSON loads.Template badges — each template gets a sequential number label (T1, T2 …) with a unique colour. The first 16 use a curated palette; beyond that the golden-angle hue formula ensures every template gets a distinct colour with no repeats.
Source filter propagates to templates — selecting a source file in the sidebar filters the template list to only show templates that appear in that file.
Per-file timeline binning — the golden signal chart on the summary page now bins each file independently based on its own time range, with a source selector dropdown to switch between files. Previously all files shared one axis, leaving large empty gaps when file time ranges differed.
UX fixes — switched to Inter + JetBrains Mono for better readability; removed the duplicate parsed timestamp from log entry headers (it showed UTC while the raw log line shows local time, causing a visible mismatch).
What PR Reworks
Testing
logan analyze -f your.log -o ./output logan view -d ./output # open http://localhost:8000/output/log_diagnosis/explorer.html