7.2. Result Data Aggregation¶
Result data aggregation counts and reports the distinct values of a field across all entries of a result table. The values can come from two sources:
Columns of the result table. Column summaries are fast because all selectable columns are indexed in the underlying database.
Fields extracted from the full log data with an expression you define. Full text summaries scan the complete content of every entry.
The Data Aggregation preferences page holds the defaults that control both variants.
An aggregation can be started in two ways:
Select from the application main menu.
Press
Aggregate result data on the
right-hand side of the result table toolbar. The button is unavailable
while the result table is empty.
The aggregation covers every entry of the result table, narrowed only by an active date/time filter. Without a valid license, Retrospective asks for registration first. It also refuses to start, with a message in the status bar, in these cases:
Data is still being collected.
The result table is empty.
A local filter other than the date/time filter is active, or a Delayed Log Events reveal is active. Remove such filters first.
7.2.1. Defining the Aggregation¶
The Aggregate Result Data dialog offers a Columns tab and a Full Text tab. Its banner reads Define aggregation options, then press ‘OK’. The active tab decides which kind of summary is produced when you press OK. The Count Distinct Values section below the tabs applies to both. OK stays unavailable while the banner shows At least one column must be selected or A valid expression must be entered.
When you reopen the dialog for the same result tab, it comes back on the tab you last used. The entries of both tabs and the Count Distinct Values settings are restored as they were when you pressed OK. This applies to Modify (see Aggregation Result) and to a fresh start from the menu or the toolbar. Cancelling changes nothing. Each result tab remembers its own options, and forgets them when the tab is closed.
7.2.1.1. Column Summaries¶
Fig. 7.6 The Columns tab of the Aggregate Result Data dialog.¶
The Columns tab lists the visible columns of the profile the search ran with, even when another profile has been selected since. The Date/Time column and the Data column are not listed: date/time values are covered by the Group by option, and the full log data is covered by the Full Text tab.
No column is checked when the dialog first opens. Check at least one column. When you check several columns, Retrospective produces a separate report for each of them.
7.2.1.2. Full Text Summaries¶
Fig. 7.7 The Full Text tab with a name/value field expression.¶
A full text summary extracts a field from the complete content of every log entry and counts its distinct values. The extraction rule is an expression: either plain text with wildcards or a regular expression (regex). The tab contains the following elements.
Choose predefined field matcher offers
prepared expressions, so you do not have to write a regular expression
yourself. While the Select Field dialog is open, Retrospective
scans the collected result data for name/value pattern fields and shows
Discovering fields. The scan limits are defined on the
Data Aggregation preferences page. The
dialog lists:
Detected in Data: fields found in the collected result data that are not yet assigned to a column. The group appears only when there are such fields.
Between Brackets: values between square, round, curly or pointy brackets.
Name/Value Pair, Date/Time and Internet: predefined expression sets.
Fig. 7.8 The Select Field dialog.¶
Selecting an entry fills Description with the field name and Expression with the expression. It also switches regular-expression mode on and sets Data Type. You can adjust the expression afterwards.
7.2.1.3. Count Distinct Values¶
Option |
Description |
|---|---|
Group by |
The chronological unit the distinct values are grouped by: no grouping, second, minute, hour, day, month or year. |
Ignore missing values |
Checked by default. When checked, log entries that do not contain the aggregated field are ignored. When unchecked, those entries are counted as well and reported under the placeholder text defined on the Data Aggregation preferences page. This option applies only without grouping. When you choose a Group by unit, Retrospective checks this option and grays it out. Its tooltip then reads Missing values are always ignored when the distinct values are grouped. When you switch back to no grouping, your own setting returns. |
Max. reported values |
The maximum number of distinct values in the report, between 2 and 10000. When more distinct values exist, the most frequent ones are kept. The default comes from the preferences. A value outside the range shows Max. reported values must be between <min> and <max>, and OK is unavailable. |
While Retrospective computes the aggregation, a progress dialog shows Aggregating result data…. It closes on its own when the result is ready.
7.2.2. Aggregation Result¶
Fig. 7.9 The Aggregated Result Data dialog for a single column.¶
The Aggregated Result Data dialog shows one report per aggregated column or field. Its banner reads Customize the aggregated result data to your needs and then export it., or No data matches the entered expression. when nothing matched. When several columns were selected, the reports appear as tabs at the bottom of the dialog. Each report starts with a bold title: the column name, or the description and the expression of a full text field. It then has two sections.
The Summary section reports Total Rows (entries in the result table), Total Values (entries that contain the field, with the percentage of the total) and Total Distinct Values. For a text field it also reports the Lowest and Highest value; for a number field the Minimum, Average and Maximum.
When no value was found, the Summary shows only Total Rows and Total Values.
The Distinct Values section lists each value with its count. It opens sorted by Count, highest first; the second column is headed with the field or column name. Click any column header to re-sort the table by that column, and click it again to reverse the order. The period column sorts chronologically rather than by the text of its label. A Number field sorts numerically (see Data Type above). With a Group by unit chosen, the section is titled Grouped Distinct Values. It opens sorted by period and shows a flat table with one row per period and value. A single toggle button then switches the presentation:
Switch to matrix shows the values as a
matrix, with one row per period and one column per distinct value.The button then shows
Switch to flat
table, which returns to the flat table.
Each section has a
Copy to clipboard
button that copies the section’s table as tab-separated text, in the
order currently displayed. Saving to a file (below) always writes the
aggregation’s own order, whatever the table is sorted by. It uses the
flat or matrix layout that is shown when you save.
The remaining controls of the dialog:
Control |
Description |
|---|---|
Save the aggregation result to HTML, text, CSV or Excel files (see Saving the Aggregation Result). |
|
Modify |
Returns to the Aggregate Result Data dialog with the previous choices preserved, so you can refine the options and run the aggregation again. |
Close |
Closes the dialog. It is the default button, and Esc does the same. |
7.2.3. Saving the Aggregation Result¶
Every save button first opens a file chooser. The proposed file name is
aggregation_<profile name>_<yyyyMMdd_HHmm> with the extension of the
chosen format; when no profile is selected, result takes the place of
the profile name. Change the location and name as needed. The file types
offered are Web Page (*.html) for HTML, Plain Text (*.txt) or
Log File (*.log) for text, and CSV (*.csv) or Plain Text (*.txt)
for CSV. After the options dialog, when any file the save writes already
exists, Retrospective asks once before replacing them and lists the
existing files. With one file per column, these are the per-column files,
not the entered name.
When several columns were aggregated, the HTML, text and CSV formats write one file per column by default. The entered file name then serves as a template, and the options dialog of the format decides how the individual names are derived:
With Append column name to file name checked, the column name is appended:
aggregation_billing_20260805_0930-Level.csv.Otherwise a sequence number is appended from the second file onwards:
aggregation_billing_20260805_0930(2).csv.
The Excel format instead writes a single workbook with one worksheet per aggregated column.
After the file chooser, an options dialog specific to the chosen format appears. Each of these dialogs has a Don’t show again option: when selected, the dialog is skipped for further aggregation saves of the same format and the last defined options are reused. The Show dialogs again button on the General preferences page brings the dialogs back. The status bar reports the written files as Aggregate Result Data: Analysis was saved to <files>. Files are opened in their associated application when the corresponding option is checked.
7.2.3.1. Save to HTML File(s)¶
Writes web pages that can be viewed in any browser.
Fig. 7.10 The Save to HTML dialog of an aggregation export.¶
Option |
Description |
|---|---|
Include search context |
Writes the profile name, data sources, search criteria and local filters at the top of each page. Checked by default. |
Add Chart |
Adds an interactive chart of the distinct values to each page (see below). Checked by default. With several columns, this option requires individual files per column: selecting it also selects Create individual files per column, and clearing that option also clears it. |
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 checked. Each time the dialog opens, Retrospective checks whether it can reach the internet and selects this option when it cannot, unless you have already changed it. |
Create individual files per column |
Shown only for a multi-column aggregation: writes one file per column instead of a single file. Checked by default. |
Append column name to file name |
Shown only for a multi-column aggregation: appends the column name instead of a sequence number. Cleared by default. |
Open file after creation |
Opens the written page in the default browser. Checked by default. The option reads Open files after creation while individual files per column are written. |
The first three options sit in a Format group. The banner names the target as the file, the initial file or the base file name, depending on how many files are written.
Fig. 7.11 An exported aggregation page with the optional Distinct Values chart.¶
7.2.3.1.1. Distinct Values Chart¶
The optional chart on an exported web page is interactive:
The Previous Chart (
<) and Next Chart (>) buttons cycle through the chart types: scatter, line, area, bar, pie, doughnut, radar and polar area. For a grouped aggregation, only scatter, line, area and bar are offered.The Legend checkbox shows or hides the legend; clicking a legend entry hides or shows that element in the chart. It starts cleared and is checked automatically for bar, pie, doughnut and polar area charts.
The Labels checkbox shows the count next to each chart element.
For values that are all numbers, a Linear checkbox switches from category spacing to a linear value axis.
For grouped aggregations, a Stacked checkbox stacks the per-value series.
The Change Colors button changes the chart colors.
A slider below the chart narrows the range of values shown, and tooltips appear when the mouse pointer hovers over a chart element.
7.2.3.2. Save to Text File(s)¶
Writes plain text files; a colon separates the label and value cells:
Column Level
============
Summary...
Total Rows: 75981
Total Values: 75981 (100% of Total Rows)
Total Distinct Values: 3
Lowest: ERROR
Highest: WARN
Distinct Values...
Count: Value
40523: INFO
25327: WARN
10131: ERROR
The options dialog offers the file options described above: Create individual files per column, Append column name to file name and Open file after creation.
Fig. 7.12 The Save to Text dialog of an aggregation export.¶
7.2.3.3. Save to CSV File(s)¶
Writes comma-separated files where each record is one row of the report. Retrospective quotes a value that contains the separator, a double quote or a line break. In addition to the file options described above, the dialog offers:
Option |
Description |
|---|---|
Separator |
The character or string that separates the exported names and
values. The default is |
Fig. 7.13 The Save to CSV dialog of an aggregation export.¶
7.2.3.4. Save to Excel File(s)¶
Writes a single workbook, either Excel Workbook (.xlsx)
or Excel 97-2003 Workbook (.xls) — the choice is made in
the file chooser. Each aggregated column gets its own
worksheet with the summary and the distinct-values table; the table
header row carries an auto-filter.
Fig. 7.14 The aggregation export dialog for an Excel Workbook.¶
Option |
Description |
|---|---|
Include search context |
Writes the profile name, data sources, search criteria and local filters at the top of each worksheet. Cleared by default; it sits in a Format group. |
Open file after creation |
Opens the workbook in the application associated with Excel files. Checked by default. |
Fig. 7.15 One worksheet of an exported aggregation workbook; each aggregated column has a worksheet of its own.¶






