6.6. Result Visualization (Result Table)

Search and monitoring results are shown in the result table, where distinct information such as date/time, log level, and data appears in individual columns.

When a row is selected, its content appears in the result detail pane just underneath the table. When several rows are selected, the result detail pane shows the content of the topmost selected row.

By default, search entries are sorted chronologically, with the most recent entries at the bottom. You can change the sorting at any time, as described under Sorting.

Entries arrive in the order the data sources deliver them. When a search finishes, Retrospective puts them into chronological order. On a large result this runs in the background. The status bar shows Indexing disk storage with a Cancel button. You can keep scrolling and reading the table; the entries appear in arrival order until the ordering completes. While it runs, saving the result and exporting it to Koia are unavailable.

Whatever you had selected stays selected while that ordering runs, and the result detail pane keeps showing it. The same holds while monitoring: when the Disk storage limit is reached, Retrospective drops the oldest entries and re-indexes the rest. Your selection survives these re-indexes. It is released when you sort or filter yourself, or when the entry itself is removed: by Remove Selected, by Clear result, or because the storage limit discarded it. Scrolling away and back shows the entry still selected. A row you click while such a re-index is running is deselected when it completes, so select it again.

If you press Cancel, the entries keep their arrival order and the Date/Time column shows no sort arrow. Any local filter you had set stays applied. You can put the entries into chronological order later by clicking the Date/Time column header.

Monitoring entries are appended to the bottom of the table as they arrive, regardless of their date/time. Columns cannot be sorted while results are still loading or being indexed, or while monitoring runs. When monitoring stops, Retrospective sorts the entries chronologically once.

A search tab with a populated result table and the result detail pane

Fig. 6.24 A search tab with results: the search definition area and the statistics chart on top, then the result table toolbar, the result table with one row selected, and the result detail pane showing that row’s content.

6.6.1. Result Table Toolbar

Retrospective provides a toolbar on top of the result table that gathers the controls for filtering, highlighting, navigating and exporting the entries. For a toggle, the tooltip names the action a click performs; the table quotes the default state.

Button

Description

i-clear-results Clear result

Removes all entries from the result table. Available while monitoring runs.

Result count

A status label that reports how many entries the table holds. It reads N Items, or F / N Items while a local filter hides the non-matching rows; with a single entry it reads 1 Item. Its tooltip repeats the total item count and adds the Disk Space Usage of the collected data.

i-scroll-lock Toggle scroll pause on/off

Pauses the automatic scrolling of the table to the last discovered log entry. While scrolling is paused, the button shows i-scroll-play and its tooltip reads Scroll is paused. Click it again to resume automatic scrolling.

i-multi-line-cells Switch to multi line cells

Switches the result table between two row layouts.

  • Single line cells (the default): every row has the same height, and content too long for its column is truncated with an ellipsis.

  • Multi line cells: the Data column wraps at word boundaries and the row grows to fit its content. The column then also shows the data formatting and the markers of the result detail pane. The Date/Time, Host, Path and custom columns wrap too, and a word longer than its column breaks between characters. A row is as tall as its tallest cell. The Level column stays on one line. A very long value in a column other than Data ends in an ellipsis; its tooltip shows it in full.

In the multi-line layout the row’s highlighting color is shown behind the level name in the Level column, so the wrapped content stays on a plain background. The tooltip then reads Switch to single line cells. The button icon shows the layout a click switches to (i-multi-line-cells or i-single-line-cells); the arrow selects a layout directly. Every tab starts in the single-line layout.

i-highlight-loglevels Define highlighting

Sets the highlighting applied to result rows and to text in the result detail pane. The button icon reflects the current option; by default, rows are highlighted by their log level (i-highlight-loglevels). Click the button to open the instant highlighting pop-up (Ctrl+Shift+I). Click the arrow, or press Ctrl+Shift+H, to choose another option. On macOS, use Cmd instead of Ctrl.

  • i-highlight-enabled Instant Result Highlighting: a one-off matcher for this tab.

  • i-highlight-loglevels by log levels (Ctrl+Shift+L): rows are colored by their log level category, ERROR and WARN by default, with the colors set on the Log Level Definitions page.

  • By Highlighting Set: a submenu that lists the defined sets, each with its own icon, or No Set Defined.

  • i-highlight-disabled Disable (Ctrl+Shift+D): turns highlighting off.

  • Edit: opens the Log Level Definitions or the Highlighting Sets preferences page for this tab. If the tab is highlighted by a set, the Highlighting Sets page opens with that set selected. When you click Apply and Close, the tab is highlighted by the first selected set, or not at all if no set is selected. Opened on Log Level Definitions, Apply and Close switches the tab to highlighting by log levels. Apply, Restore Defaults and Cancel leave the highlighting of the tab unchanged.

In the single-line layout the color fills the whole row. In the multi-line layout it marks the matched text and is shown behind the level name in the Level column. Switching layouts never changes what is highlighted.

i-delayed-log-events Start analyzing delayed log events

Finds the log events that were written with the longest delay after their preceding event and reveals them in the table. See Delayed Log Events. The icon shows a green bullet while a reveal is active, and the tooltip then reads Stop analyzing delayed log events; clicking the button again removes the reveal.

i-filter-datetime Filter result by date/time

Filters the result entries locally by the value shown in the Date/Time column. Matching entries are filtered; non-matching entries are hidden (filtered-out) by default. See Local Date/Time Filter. The icon shows a green bullet (i-filter-datetime-active) when a date/time filter is defined.

i-filter-loglevel Filter result by log level

Opens a pop-up listing all distinct normalized log levels present in the result. Clear the levels you want to filter out. The icon shows a green bullet (i-filter-loglevel-active) when a log-level filter is defined.

i-filter-custom-columns Filter result by custom columns

Opens a pop-up with one filter row per visible custom column of the current profile. An entry is filtered if every defined custom-column filter, together with the local filter text, matches its content. The icon shows a green bullet (i-filter-custom-columns-active) when at least one custom-column filter is defined. A text column’s filter can be made case-sensitive, each row keeps its own history, and each row has a toggle whose tooltip reads Define filter as ‘not empty’. It keeps the entries whose column holds any value.

Local filter field

Filters the result entries locally by the entered phrase. See Local Filter Field. An arrow button to the right of the field recalls previously used filter texts. The RQL field has a clear button.

i-timestamp-excluded Include original timestamp from log entry content when locally filtering

Determines whether the original timestamps are considered when the local filter is applied. Timestamps are excluded by default. While they are included (i-timestamp-included), the tooltip reads Exclude original timestamp from log entry content when locally filtering. Include them when you search for a number or word that may appear in the timestamp rather than the log payload.

i-case-insensitive Make local filter text case-sensitive

Determines whether the local filter phrase is case-sensitive. The filter is case-insensitive by default. While it is case-sensitive (i-case-sensitive), the tooltip reads Make local filter text case-insensitive.

i-hide-filtered-out Don’t filter out (show also non-matching) result entries

Available while a local filter is active. By default the non-matching entries are hidden; the initial state comes from Hide filtered-out entries on the Local Filter preferences page. Click the button to show all entries (i-show-filtered-out). The matching entries are then highlighted with a green background, and the tooltip reads Filter out (hide non-matching) result entries. The applied filter combines the text, date/time, log level and custom-column filters.

i-prev-filtered Previous filtered entry / i-next-filtered Next filtered entry

Select the previous or next matching entry while all entries are shown. Press Ctrl+↑ or Ctrl+↓ (on macOS, Cmd+↑ / Cmd+↓ while no text field has the focus). At the first or last match, Retrospective offers to continue from the other end.

i-aggregate Aggregate result data

Counts and reports the distinct values of result-table columns or full-text fields. See Result Data Aggregation.

i-create-snapshot Create result data snapshot

Creates an immutable copy of the current result data. Snapshots appear in the Result Snapshots view, from where a search tab can be restored at any time. Restored tabs are backed by another copy, so a snapshot stays unchanged after creation.

i-save-html Save to HTML file

Saves the data of the desired columns to a file. The button shows the icon and name of the selected format. The first format comes from Default Save File Type on the Result Options preferences page. Its arrow selects another format, and the tab remembers your choice.

  • i-save-html Save to HTML file: a formatted HTML document.

  • i-save-text Save to Text file: the unchanged original content of each entry, without custom columns or additional information.

  • i-save-csv Save to CSV file: values separated by the configured separator; a value that contains the separator, a double quote or a line break is quoted.

  • i-save-excel Save to Excel file: .xlsx / .xls workbooks (decorated or plain); row backgrounds reflect the log level.

  • i-save-json Save to JSON file: self-describing JSON text.

i-koia Analyze result data in Koia

Writes the result data to a database so it can be further analyzed in the Koia web application. Configure the connection on the Result Options ‣ Koia Data Analysis preferences page.

Choosing Instant Result Highlighting, or pressing Ctrl+Shift+I, opens a pop-up where you define a single one-off matcher. The first button sets its background color; new rules start with a color from a rotating palette. The second button sets the font and the text color together. The pattern field previews the choice and holds the term to match. Three toggles follow:

  • Include original timestamp from log entry content when evaluating highlighting: the original timestamp counts as part of the evaluated content.

  • Interpret definition as regular expression (Regex): the term is a regular expression.

  • Make text case-sensitive: matching respects upper and lower case.

Click Accept highlighting definition or press Enter to apply the rule, or Cancel (Esc) to leave it unchanged. When you edit an existing rule, Remove highlighting definition deletes it and turns highlighting off. The rule is saved with the tab: it stays active when the search runs again and when the session is restored. A new pop-up starts from the last rule you accepted in this run of Retrospective.

The instant highlighting pop-up

Fig. 6.25 The instant highlighting pop-up: background and foreground color, the match term, and the timestamp, regex and case toggles.

The highlighting drop-down menu

Fig. 6.26 The highlighting drop-down menu, with the By Highlighting Set submenu expanded.

Note

A few result-toolbar controls have moved or changed since the legacy version:

  • Word wrap (i-word-wrap) and data formatting (i-data-formatting: JSON, XML, or none) now live on the detail toolbar of the result detail pane (see Result Details Pane). Their initial state still comes from the Result Options ‣ Formatting preferences page.

  • The legacy Enable disk storage index button is gone: all result data is now always held in the database, so sorting and local filtering always cover the complete result set.

The custom-column filter pop-up

Fig. 6.27 The custom-column filter pop-up: one filter row per visible custom column.

6.6.2. Result Table Headers

Clicking a column header sorts the table by that column, as described under Sorting. The headers of the Data and Path columns carry a drop-down as well.

The Data column can show or hide the original timestamps found in the log entries. The glyph on the column header indicates the current state:

  • i-show-original-timestamp The original timestamps are currently shown.

  • i-hide-original-timestamp The original timestamps are currently hidden.

Click the Data column header to open its drop-down, then choose Exclude original timestamp or Include original timestamp. The entry that matches the current state is unavailable. Exports to CSV, HTML, Excel, JSON and Koia follow this choice; a text file always contains the entries as they are.

Data column header menu

Fig. 6.28 The Data column header menu.

The Path column header carries a second drop-down that sets how much of the path each row reports. Click the icon and arrow at the left of the header to open it; clicking elsewhere on the header sorts. The header shows a glyph for the current mode.

  • Show full path: the complete evaluated path, for example /var/log/app/server.log. This is the default.

  • Show last directory and item: the last directory and the file name, for example app/server.log.

  • Show item only: the file name alone, for example server.log.

Sorting by Path always uses the full path, whatever the column shows. The header tooltip states the current mode.

6.6.3. Local Date/Time Filter

When you click i-filter-datetime Filter result by date/time, a pop-up lets you define a local date/time filter. A new filter starts on the Default Type set on the Local Filter preferences page, when that type is a date frame or date/time frame. Otherwise it starts as Since at second precision. Click Accept to apply it. When you edit an existing filter, Remove deletes it. The display formats are set on the General Preferences ‣ Date/Time preferences page.

Note

The value in the Date/Time column usually differs from the original timestamp in the log entry. Time-zone conversion, the adjusted time offset for remote SSH hosts and your formatting all change it. To filter entries by the original date/time pattern, use the local text filter instead (see Local Filter Field).

Click i-configure-datetime Change local Date/Time filter to choose another filter type from a further pop-up. Week-based types such as Current week start on the First day of week set on the Date/Time preferences page.

The local date/time filter pop-up

Fig. 6.29 The local date/time filter pop-up, here in Since mode.

Tip

The local date/time filter can be defined from the current selection: right-click a result entry and choose Set Local Time Filter with (see Result Table Context Menu).

Tip

You can also set this filter by dragging across the statistics chart above the result table (see Filtering by a Time Range). The chart then shows the filter as a range you can move and resize.

6.6.3.1. Date Frame Filter

A date frame filter (also called a date range) filters entries by a date boundary. The chronological unit in round brackets defines the precision and the display format of the date fields. Once selected, refine it by switching between Since, Between, and Before and by changing the boundaries. To change the display format globally, change Date format on the General Preferences ‣ Date/Time preferences page.

A date-frame filter in Between mode

Fig. 6.30 A date-frame filter in Between mode, with a lower and an upper date boundary.

6.6.3.2. Date/Time Frame Filter

A date/time frame filter (also called a date/time range) works the same way but at time precision: the time unit in round brackets defines the precision and the display format of the fields. To change the display format globally, change Date/Time format on the General Preferences ‣ Date/Time preferences page.

A date/time-frame filter in Between mode

Fig. 6.31 A date/time-frame filter in Between mode, with date-and-time boundaries.

6.6.3.3. Date/Time Frame Types

The drop-down of the date and date/time frame filter lets you switch between the following types.

Type

Description

Since

Retains entries created at or after the lower boundary.

Between

Retains entries created between the including lower boundary and the excluding upper boundary.

Before

Retains entries created before the excluding upper boundary.

6.6.4. Local Filter Field

Even with precisely defined search criteria, a search can return thousands of entries. You can filter the results locally instead of refining the criteria and fetching the entries from the source computers again. Then only the entries that contain a given text or log level are shown. Matching entries are referred to as filtered; non-matching entries are hidden by default (filtered-out).

There are two types of local filter field:

  1. the Classic “Contains” Filter field, and

  2. the Retrospective Query Language (RQL) field.

Both apply to the raw data of the log entries: what you see in the result detail pane when you select an entry. The active type is chosen on the Result Options ‣ Local Filter preferences page; the RQL field is used by default. A changed type applies to new search tabs. The classic field applies the filter after the Filter apply delay and when you press Enter; the RQL field applies it only when you press Enter. The field keeps a history of previously used filters, recalled through the arrow button to its right.

Two toggles sit to the right of the field and apply to both field types. They decide how the entered phrase is matched, so pressing either one re-applies the current filter. Invalid text is never applied, neither an RQL query (see Validation) nor a classic wildcard:

  • i-case-insensitive Make local filter text case-sensitive: the phrase must match the entry’s capitalization. Off by default; while on, the button shows i-case-sensitive.

  • i-timestamp-excluded Include original timestamp from log entry content when locally filtering: the original timestamp that the log entry carries in its own text counts as part of the filtered content, so a phrase may match it. Off by default; while on, the button shows i-timestamp-included. This is independent of the Data column’s own original-timestamp drop-down, which only changes what the column displays.

6.6.4.1. Classic Contains Filter Field

The classic field filters the result entries by the entered phrase. You can paste a block of text, even with spaces, without surrounding it with quotes. Wildcards are supported:

  • The asterisk (*) matches any number of characters.

  • The question mark (?) matches a single character at a specific position; used alone, it matches non-empty values.

  • To search for one of these characters literally, escape it (\* or \?). A single backslash must be written as \\.

6.6.4.2. RQL Field

The RQL field lets you define local filter criteria using the Retrospective Query Language. By default, the entered terms apply to the Data column; you may also target other columns using the operators =, <, <=, >, and >= (see Columns). Type =, < or > at the start of a term and a drop-down of column names appears. The chosen name is inserted in front of the operator. The list contains the visible standard and custom columns in the order the result table shows them. It omits columns whose name contains a space, the Data column (the implicit default), and the Date/Time column (use i-filter-datetime Filter result by date/time instead). Press a letter key to jump to the first column name starting with it. Each recalled query in the history is preceded by a sign indicating whether it is valid or invalid in the current context.

The RQL field column-name drop-down

Fig. 6.32 Typing an operator in the RQL field opens the column-name drop-down.

6.6.5. Log Level Column

By default, the log level appears in its own column in a normalized form (for example ERROR) regardless of the language it was logged in (for example GRAVE in French). When highlighting by log levels is active, rows of the ERROR and WARN categories get the colors set on the Log Level Definitions page. The single-line layout paints the color behind the whole row; the multi-line layout paints it behind the level name in this column. A log-level-specific icon appears in each row as long as a log level can be detected. Windows event log entries use levels of their own, shown in the interface language, see Log Level Definitions.

The result table can be filtered by log level. Click i-filter-loglevel Filter result by log level to open a pop-up that lists all distinct normalized log levels present in the result. Select the levels to include and click Accept to apply; it appears when more than one level is listed. Remove deletes an active filter, and clicking outside closes the pop-up unchanged. The i-filter-loglevel-active icon indicates that a log-level filter is active.

The levels are listed with the most severe one at the top. If the result contains entries whose log level could not be detected, the list ends with a NONE entry that selects exactly those entries. At least one level always stays selected: clearing the last remaining one has no effect.

The log-level filter pop-up

Fig. 6.33 The log-level filter pop-up listing the normalized log levels present in the result.

6.6.6. Sorting

Result rows can be sorted by the values of individual columns through a mouse click on the corresponding column header. A click on an already-sorted column inverts the order (ascending or descending). Sorting is active for a single column at a time, so clicking a header discards the previous column’s sort. The Data column holds the unstructured content of the entries and cannot be sorted.

Note

Sorting by the Date/Time column has a caveat. Retrospective has to guess the date (year, month, or day) of certain entries, and that date may not match the real creation date. Guessing happens when an application logs only the time, or when a manually configured data source uses a date format that retains only the time. In such cases the date is deduced as follows:

  • for a file, from the file modification date;

  • for a container, from the log-entry reception date.

6.6.7. Extended (Smart) Sorting

Extended Sorting considers several visible and hidden columns besides the main sort column. This produces a more accurate order, comparable to an SQL query ordered by several columns. It is applied whenever the number of result entries does not exceed the preference option Extended sort limit, and is automatically disabled above that threshold. The sort column itself does not matter: custom columns receive the extended chain just as the standard columns do.

When Extended Sorting is disabled, entries are sorted only by the selected column. For example, sorting by Level leaves all entries of the same level (such as INFO) in database-insertion order. Data collected from multiple hosts is then not necessarily chronological.

When Extended Sorting is applied, sorting also considers secondary columns:

Primary sort column

Secondary sort columns

Date/Time

Path → order of arrival

Level

Date/Time → Path → order of arrival

Host

Date/Time → order of arrival

Path

Date/Time → order of arrival

Any other column

Date/Time → Path → order of arrival

Extended Sorting can take more time, depending on the size of the entries and their date/time distribution. The default Extended sort limit is 100,000 entries: above that, Extended Sorting is not applied. If you need it for larger result sets, raise the limit and observe the effect on performance; if sorting becomes too slow, lower it again and accept the imperfect ordering. When sorting only by Date/Time (the most common case), not having Extended Sorting applied is usually not a problem.

6.6.8. Result Table Context Menu

The context menu appears when you right-click a result row. The ⋮ More actions button at the start of a row opens the same menu. It is composed of the items described below.

Menu item

Description

i-menu-copy Copy

Copies the selected entries to the clipboard (Ctrl+C; on macOS, Cmd+C), entries not yet loaded included. Each entry is a block of labelled lines: Date/Time; then Host and Path, only if the entry comes from an SSH host; then Data, which shows the date and time when the Data column does. A blank line separates the entries.

i-menu-copy Copy Path

Copies the distinct paths of the selected entries to the clipboard, sorted, one per line.

i-show-source-context Show source context

Opens the raw file content around the selected entry; see Show Source Context. Available when exactly one entry is selected and it comes from a file (local or SSH) whose host still exists.

i-find Browse File

Opens the complete file of the selected entry as a scrollable table in a separate window; see Browse File. Available when the selected entries come from one single file (local or SSH) whose host still exists.

i-find Browse File in New Tab

Opens the same file view as a tab in the main window.

i-correlate Find correlating log events

Collects all log events related to the selected entry and presents them as a web page. Available when exactly one entry is selected and it can be correlated with the profile the search ran with. See Log Event Correlation.

i-filter-datetime-active Set Local Time Filter with (submenu)

Sets the local date/time filter from the selection. Since time of selected entry and Before time of selected entry need the selected entries to share one timestamp. Between time of selected entries needs two or more different ones.

i-clock-add Add Time Search Criteria with (submenu)

Adds a new date/time search criterion derived from the selection. Available only when no time criterion exists yet. Unavailable in monitor mode, while a search or monitoring is in progress and while Retrospective indexes the result.

i-clock-replace Replace Time Search Criteria with (submenu)

Replaces all date/time search criteria with one derived from the selection. Available only when a time criterion exists. Unavailable in monitor mode, while a search or monitoring is in progress and while Retrospective indexes the result.

i-search-clock Search with same profile (submenu)

Opens a new search tab on the current profile with only a time criterion derived from the selection; the current text and event-log criteria are not carried over. Its time frames are listed under Based on Result Entries.

i-start-search Search all data in selected path(s)

Opens a new search tab ready to search the path(s) of the selected entries, with no time restriction.

i-search-clock Search in selected path(s) (submenu)

Opens a new search tab on a temporary profile narrowed to the selected paths, with only a time criterion derived from the selection; the current text and event-log criteria are not carried over.

i-ssh-console Tail File in new SSH Console

Opens a new SSH Console and runs a tail command on the selected file. Available for entries collected from an SSH host.

i-ssh-console Tail File in existing SSH Console

Runs a tail command on the selected file within an open SSH Console.

i-clear-results Remove Selected

Removes the selected entries from the table (Delete). Unavailable while a search or monitoring runs or the result is being indexed.

i-clear-results Remove Filtered-Out (not matching)

Removes the entries that the active local filters hide. The confirmation lists each active filter. While delayed log events are revealed, it also lists their entry IDs (see Revealing Delayed Log Events).

The result table context menu

Fig. 6.34 The result table context menu, with the Add Time Search Criteria with submenu expanded.