7.1. Log Event Correlation¶
Log event correlation examines logs from different sources (servers, files, containers, applications) to find connections between events that are not obvious in the result table. Log events are linked through specific named data they contain, for example a correlation ID or an event ID.
Retrospective collects all log events from the result table that carry the same value as a selected log event. It splits them into buckets by a context column and presents them as a web page that opens in your default browser. The page contains a scatter time chart with one point per log event and a table with the full content of every correlating event.
Fig. 7.2 How log event correlation links entries.¶
Entries from several hosts, files or containers.
The selected entry’s value in the Correlate by column.
Every entry that carries the same value.
One lane per value of the Context column: a custom column, the host or the path.
The HTML report with a scatter time chart and a table of the events.
Fig. 7.3 A correlation report. Each context value has its own line in the chart, and the rows of a clicked point are framed in green.¶
Correlation can be started in three ways, all based on the selected result entry:
Select
Find correlating log events from the
result table context menu.Press
Find correlating log events on the
result detail pane toolbar. It is the last control of the left-hand
group, behind its own separator.
The context-menu item and the detail-pane button are enabled only when the selected entry can be correlated; the context-menu item also needs exactly one selected entry. Retrospective uses the profile the search ran with, even when another profile has been selected since. The entry must carry at least one non-empty, visible custom column. It also needs a second one, or a visible Host or Path column. The menu item is always available; without a valid license it asks for registration first. Otherwise Retrospective checks the following, in this order, and stops with a message in the status bar:
Log events cannot be correlated while data is being collected.
Currently, there is no result data available that could be correlated.
Log events cannot be correlated with local filters other than the time filter. This also applies while a Delayed Log Events reveal is active.
No result entry is selected that can be used to search for correlating entries.
The selected result entry needs a non-empty custom column that can be used for finding correlating entries.
An active local date/time filter narrows the correlation: only events
inside the filtered time range are collected. The options dialog
shows the applied range below the correlation columns, as
Local Date/Time Filter followed by both ends. An open end shows
as ….
7.1.1. Correlation Definition¶
Fig. 7.4 The Log Event Correlation dialog with a Host context.¶
The Log Event Correlation dialog defines what to correlate and how the report is formatted. Its banner reads Define log event correlation options, then press ‘OK’. The options sit in the groups Correlation, Format and Text Markers.
Option |
Description |
|---|---|
Correlate by |
The non-empty custom columns of the selected result entry that are visible in the result table. The value of the chosen column, taken from the selected entry, is shown beside the list. All log events with the same value are collected. |
Context |
The column whose value splits the collected events into buckets. It is a non-empty custom column that is visible in the result table, or the Host or Path column if visible. Each bucket becomes a swim lane in the chart. |
Condensed |
Appears only for a Host or Path context. For a host, only the base part is used as context; the username and port are removed. For a path, only the raw file name is used, without the extension and any rotation number or date. The defaults come from the Log Event Correlation preferences page. |
Data Formatting |
None (the default), |
Add Chart |
Adds the scatter time chart to the web page. Selected by default. |
Offline Mode |
Embeds the JavaScript chart libraries shipped with Retrospective instead of loading them from the internet. Such pages work without internet access but cannot be shared with others. Only available while Add Chart is selected. On the first run in a search tab, Retrospective checks whether it can reach the internet and selects this option when it cannot, unless you have already changed it. |
Text markers |
|
On the first run in a search tab, both column lists start empty, and the banner reads Both correlation columns must be defined. Later runs in the same tab restore the last choice. Until the two columns are set and differ, Correlation columns must be different or the first message stays in the banner.
The marker choices and the Data Formatting choice are remembered for the search tab. The JSON/XML options start from the formatting preferences on every run and apply to this report only. The preferences themselves do not change.
While Retrospective collects the events, a progress dialog shows Correlating log events….
Report limits. Before the web page is written, Retrospective estimates its size. When the report would exceed the configured limits (by default 1000 log events or 25 MB), nothing is written. A warning titled Log Event Correlation explains how to reduce the report. It always suggests to narrow the result with a local date/time filter. It suggests to set Data Formatting to None or to switch the text markers off only while these options are in use. The limits are set in the Report Limits group of the Log Event Correlation preferences page.
7.1.2. Correlation Result¶
The finished web page opens in the default browser. The status bar
reports Log Event Correlation - Data was saved to <path>. The
file is logEventCorrelation-<UUID>.html in the temporary folder of
the operating system. Below a product header, the page is titled with
the correlation column and its value. It has two sections.
The scatter time chart shows a point for each log event on a time line, with one swim lane per context value:
The Legend checkbox, selected by default, shows or hides the legend. Clicking a legend label hides or shows the events of that context.
The Adjust Labels checkbox, cleared by default, switches the time axis to labels taken from the data, drawn at a slight angle.
Hovering over a point shows a tooltip with the context and timestamp; nearby points are combined into one tooltip.
Clicking a point scrolls the table to the related log events and outlines them with a green border.
A range slider below the chart narrows the visible time period. Both ends can be moved, and the selected range can also be dragged as a whole to another position. The Reset control restores the full range. The chart canvas can be resized by dragging its bottom-right corner.
Fig. 7.5 The same page over a longer period, with the range slider narrowed to part of the time line.¶
The result table contains all correlating log events with their full content in the profile’s visible columns. It has its own vertical scroll bar and its header stays visible while scrolling. Log levels and the chosen text markers are rendered as in the result table of the application; see Text Markers.



