|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Panel for detecting recurring structures and correlations across log events. More...
#include <PatternAnalysisPanel.hpp>


Public Slots | |
| void | Refresh () |
| Recompute all analyses from the current visible event set. | |
Signals | |
| void | TemplateSelected (std::vector< unsigned long > matchingIndices) |
Public Member Functions | |
| PatternAnalysisPanel (db::EventsContainer &events, EventsTableView *eventsView, QWidget *parent=nullptr) | |
Private Member Functions | |
| void | BuildLayout () |
| void | RefreshTemplates (const std::vector< unsigned long > &indices) |
| void | RefreshCooccurrence (const std::vector< unsigned long > &indices) |
| void | RefreshNgrams (const std::vector< unsigned long > &indices) |
| std::vector< unsigned long > | VisibleIndices () const |
Static Private Member Functions | |
| static std::vector< std::string > | Tokenise (const std::string &text) |
Tokenise text on whitespace and common delimiters. | |
| static std::vector< std::string > | MergeTokens (const std::vector< std::string > &a, const std::vector< std::string > &b) |
| Merge two token sequences into a template; differing tokens → "{*}". | |
| static QString | RenderTemplate (const std::vector< std::string > &tokens) |
| Render a token sequence back to a human-readable string. | |
Private Attributes | |
| db::EventsContainer & | m_events |
| EventsTableView * | m_eventsView |
| QTabWidget * | m_tabs {nullptr} |
| QComboBox * | m_msgFieldCombo {nullptr} |
| Which field to use as "message". | |
| QTableWidget * | m_templateTable {nullptr} |
| QSpinBox * | m_windowSpin {nullptr} |
| Time-window size in seconds. | |
| QTableWidget * | m_coocTable {nullptr} |
| QComboBox * | m_ngramSizeCombo {nullptr} |
| Bigram / Trigram selector. | |
| QSpinBox * | m_ngramTopNSpin {nullptr} |
| How many top n-grams to display. | |
| QTableWidget * | m_ngramTable {nullptr} |
| std::vector< std::vector< unsigned long > > | m_templateMatches |
| DrillDownFilter | m_templateFilter |
| The events-view filter set by the last template click. | |
Panel for detecting recurring structures and correlations across log events.
Three analysis modes, all scoped to the currently visible (filtered) event set:
{*}. Clicking a template row filters the events table to the matching events.Algorithm (simplified Drain-inspired):
{*}.Refreshes automatically via MainWindow::modelReset signal.
|
explicit |

|
private |


|
staticprivate |
Merge two token sequences into a template; differing tokens → "{*}".
|
slot |
Recompute all analyses from the current visible event set.


|
private |

|
private |

|
private |

|
staticprivate |
Render a token sequence back to a human-readable string.
|
signal |
Emitted when the user clicks a template row, after the events view was filtered to the matching events (their indices).

|
staticprivate |
Tokenise text on whitespace and common delimiters.
|
private |
|
private |
|
private |
|
private |
|
private |
Which field to use as "message".
|
private |
Bigram / Trigram selector.
|
private |
|
private |
How many top n-grams to display.
|
private |
|
private |
The events-view filter set by the last template click.
|
private |
|
private |
|
private |
Time-window size in seconds.