7.5. Exporting Result Data¶
Retrospective saves the log entries of a result table to files of different formats, or exports them to Koia, an open-source web application for data visualization and analysis. Export always works on the entries that are currently in the result table and pass the local filters; entries that were filtered out are not exported.
7.5.1. Saving to Files¶
Saving result entries to a file can be started in two ways:
Through the application main menu, with and the desired format (HTML file, Text file, CSV file, Excel file or JSON file).
With the split button on the right-hand side of the result table toolbar. It shows the icon of the current format, and its tooltip names that format, for example
Save to HTML file.
The first format comes from
Default Save File Type on the Result Options
preferences page. The button itself saves
in the current format; its arrow opens a menu with all five formats.
Picking a format from the menu also makes it the new default of the
button. Each tab keeps its own choice, and the choice is stored with the
tab, so it comes back with a bookmark, a history entry, a cloned
tab and a restored session.
When the result table is empty, the status bar reports There is
currently no suitable data available for export. and nothing happens.
Otherwise Retrospective may first warn about the data, as described below.
It then opens a file chooser whose title names the chosen format, for
example Save to CSV file. The chooser suggests a location and
a file name. The proposed name is derived from the profile name and ends with the current date/time, for
example customer-service_20260804_1456.csv. Without a profile, the
name starts with result. Change the location and name as needed.
The chooser offers one file type per format: Web Page (*.html),
Plain Text (*.txt), CSV (*.csv) or JSON (*.json). The
extension is added or replaced automatically.
The defined file name is the initial file name only. When the result data is split over several files because of its size, the names of subsequent files are extended with a sequence number in round brackets:
Initial file |
|
2nd file |
|
3rd file |
|
After the options dialog, when the chosen file or any numbered file of the same name already exists, File Exists asks once whether to replace them, listing the existing files. All numbered files of that name count, because how many files an export writes is known only once it has run. No aborts the export.
For the Excel format, the file chooser offers four file types; the choice
determines the workbook format and the options offered afterwards. The
two base types are Excel Workbook (*.xlsx) and
Excel 97-2003 Workbook (*.xls). Each is also offered as a
decorated variant, <type>, Decorated, for example
Excel Workbook, Decorated (*.xlsx), which is the default.
Decorated workbooks are augmented with cell decoration such as log level icons and text markers. Plain workbooks contain raw data intended for further processing in Excel.
After the file is confirmed, an options dialog specific to the chosen format opens (described in the following sections). Its banner reads Save to <format> file(s) and names the initial file.
Each options dialog starts from the options you last confirmed for that format in any search tab, until Retrospective is closed. A File Scroller window keeps its own options. The column selection is kept per search tab until the search runs again, and all formats and Koia share it.
An export describes the search the displayed results came from: its profile, columns and search criteria, even when you changed them afterwards. The Data column contains the original timestamps whenever the result table shows them. HTML, CSV and Excel files show Windows event levels in the interface language that is active when you export.
Every options dialog ends with the same three elements:
Element |
Description |
|---|---|
Don’t show again |
When selected, the options dialog is skipped on future exports of this format and the last defined options are used. All four Excel types share one setting. Show dialogs again on the General preferences page brings the dialogs back. The dialog still opens when no column would be exported. |
OK |
Starts the export with the defined options. |
Cancel |
Aborts the export. No file is written. |
Before or during the export, Retrospective may ask for confirmation:
Before the file chooser, a data warning can appear, with Continue, Cancel and Don’t show again. When the result data is not sorted in ascending order by the Date/Time column, Non-accurate sorting explains that this can cause problems when the exported data is processed further. When you save while a search is still loading data or while monitoring is running, Disk storage not yet indexed says that only the entries already loaded are exported. While a search is still loading, the toolbar save button is unavailable; still works.
While the result table re-indexes after a sort or filter change, the export is refused with Export available after the current indexing cycle completes.
When the export would create more than 10 files, Retrospective asks whether to continue. If you confirm, the files are not opened automatically afterwards, regardless of the Open file(s) after creation option.
The export runs in the background. The status bar shows
Saving… with a
Cancel
button. On completion it reports Table data has been saved to
<path>; after a cancel it reports Save cancelled.
7.5.1.1. Save to HTML File(s)¶
Stores the selected columns of all result entries to one or several formatted HTML files — web pages that can be viewed in any browser. The background color of each row is derived from its log level.
Fig. 7.19 The Save to HTML file(s) dialog.¶
Option |
Description |
|---|---|
Columns |
The visible columns of the result table. Unselect the ones that should not appear in the target file(s). |
Include search context |
Also writes the search context (profile name, data sources, search criteria and local filters) to the top of each web page. Cleared by default. |
Data Formatting |
None (default), |
Text Markers |
|
Max. result entries per file |
The maximum number of result entries written to one file, between 1 and 10,000,000 (default 1,000,000). A new file starts as soon as the number is reached. Very large files can be difficult to open and edit. A value outside the range is reported in the banner, and OK is unavailable. |
Open file(s) after creation |
Opens the generated file(s) in the application associated with HTML files after the export. |
Include search context and Data Formatting sit in a Format group; the last two options sit in a File Generation group. With no column selected, the banner reports At least one column must be selected.
Fig. 7.20 An exported page. Log level colors and text markers are kept.¶
7.5.1.2. Save to Text File(s)¶
Stores all result entries to one or several plain text files. The original content of each entry is written unchanged — without custom columns and without additional information such as host and path. The dialog offers only the File Generation group with the Max. result entries per file and Open file(s) after creation options described above.
Fig. 7.21 The Save to Text file(s) dialog.¶
7.5.1.3. Save to CSV File(s)¶
Stores the selected columns of the result table to one or several
character-separated (CSV) files. Each record represents one log entry; the
fields are separated by the character(s) of your choice. Retrospective
quotes a value that contains the separator, a double quote or a line
break, and doubles the double quotes inside it. A multi-line log entry
therefore stays one record, and spreadsheet programs read the file
correctly. A value that starts with =, +, -, @, a tab or a
carriage return, and is not a plain number, is written in quotes with a
leading apostrophe. A spreadsheet then shows it as text instead of running
it as a formula.
Fig. 7.22 The Save to CSV file(s) dialog.¶
Option |
Description |
|---|---|
Columns |
The visible columns of the result table. Unselect the ones that should not appear in the target file(s). |
Include column header |
Writes the column names to the first line of the target file(s). Selected by default. |
Separator |
The character or string that separates the values (default |
Max. result entries per file / Open file(s) after creation |
As described above. |
Include column header and Separator sit in a Format group.
7.5.1.4. Save to Excel File(s)¶
Stores the selected columns of the result table to one or several Excel
workbooks. Which options appear depends on the file type chosen in the
file chooser: the Cell Decoration group is
offered for decorated workbooks only, and some options exist only for the
newer .xlsx format. In every workbook the background color of a row is
derived from its log level. A decorated workbook additionally carries a
product header and the search context above the data, on every worksheet
of every file.
Fig. 7.23 The Save to Excel file(s) dialog for a decorated .xlsx
workbook.¶
Option |
Description |
|---|---|
Columns |
The visible columns of the result table. Unselect the ones that should not appear in the target file(s). |
Include log level icons |
Adds the log level icon to each row (decorated |
Underline search criteria, filter & highlighting |
Cleared by default. Underlines search text criteria, the local text filter and user
defined highlighting in the workbook (decorated only). A custom
column filter underlines its match in the Data
column, but custom fields are never underlined. A highlighting
matcher also brings its own font — family, size, bold, italic,
underline, strikeout — and its foreground color. Excel cannot
color the background of part of a cell, so a marker is shown as a
double underline; a matcher’s own underline stays single. In an
|
Data Formatting |
None (default), |
Maximum number of worksheets |
How many worksheets one workbook may contain (default 1, maximum 10). When a worksheet is full, the export continues on the next worksheet, then in a new file. |
Max. result entries per worksheet |
The maximum number of entries per worksheet (default 10,000). An
|
Use temporary files |
Lets Retrospective build the |
Open file(s) after creation |
Opens the generated workbook(s) in the associated application after the export. |
The decoration options sit in a Cell Decoration group, and the worksheet and file options in a Workbook Generation group. A plain workbook shows only Columns, Workbook Generation and Open file(s) after creation.
Fig. 7.24 A decorated workbook. The search context precedes the data.¶
Fig. 7.25 A plain workbook. It holds the raw data, without the search context.¶
7.5.1.5. Save to JSON File(s)¶
Stores the selected columns of the result table to one or several JSON
files. Each file contains one main object with an array named
Entries, which holds one object per exported log entry. The attribute
names are English, whatever the application language, so an export reads
the same in every language. The Level value of a Windows event is its English
name too.
Fig. 7.26 The Save to JSON file(s) dialog.¶
Option |
Description |
|---|---|
Columns |
The visible columns of the result table. Unselect the ones that should not appear in the target file(s). |
Include context information |
Adds a top-level array named |
Include column definitions |
Adds a top-level array named |
Generate ID column |
Adds a unique |
Add log-level category column |
Adds an attribute named |
Date/Time as timestamp |
Exports the values of the Date/Time column as numeric timestamps. While selected, the Date/Time Format field is disabled. |
Date/Time Format |
The pattern used to export Date/Time values as strings (default
|
Pretty-print / Indentation |
Formats the exported JSON with line breaks and the given indentation (0 to 99, default 4) instead of one compact line. Indentation is available only while Pretty-print is selected. |
Max. result entries per file / Open file(s) after creation |
As described above. For JSON, generated files are not opened automatically by default. |
All check boxes are cleared by default. The content options sit in a Content group, the date/time and pretty-print options in a Format group.
7.5.2. JSON and XML Data Formatting¶
The same two option groups appear wherever a Data Formatting
drop-down offers JSON or XML: on the Save to HTML
file(s) and decorated Save to Excel file(s) dialogs and on
the Log Event Correlation dialog. They also appear on the Formatting
preferences page, where they set the defaults
for the result detail pane and the starting point of a tab’s first HTML
and Excel export dialogs. Each option shows as a label with a check box
and an information or warning icon.
Fig. 7.27 The JSON Data Formatting group.¶
Options of the JSON Data Formatting group:
Option |
Description |
|---|---|
Highlight syntax |
Highlights the JSON syntax using predefined colors. Selected by default. In export dialogs, syntax highlighting slows down the generation of the file. |
Pretty-print |
Formats detected JSON content with line breaks and indentation. Selected by default. |
Format standalone flat arrays |
Also formats standalone JSON arrays that contain nothing but
primitives or nulls, such as |
Un-escape control characters |
Un-escapes control characters such as |
Restore nested JSON |
Restores escaped JSON that is nested inside string attributes, which makes it considerably easier to read. Selected by default. |
Indentation |
Indentation of pretty-printed JSON data (0 to 99, default 4). |
Fig. 7.28 The XML Data Formatting group.¶
Options of the XML Data Formatting group:
Option |
Description |
|---|---|
Highlight syntax |
Highlights the XML syntax using predefined colors. Selected by default. In export dialogs, syntax highlighting slows down the generation of the file. |
Pretty-print |
Formats detected XML content with line breaks and indentation. Selected by default. |
Replace XML entities |
Inlines CDATA sections and replaces |
Indentation |
Indentation of pretty-printed XML data (0 to 99, default 4). A value outside the range shows Indentation - accepts values between 0 and 99. |
7.5.3. Export to Koia¶
Writes the selected columns of the result table to a CouchDB database so the data can be analyzed in the Koia web application — pivot tables, charts of many types, and more.
The functionality becomes available after two preparation steps:
Install CouchDB by following the instructions at https://github.com/centeractive/koia/blob/master/README.md.
Configure the access to CouchDB and to the Koia web application on the Koia Data Analysis preferences page.
Exporting to Koia can be started in two ways:
Through the application main menu, with .
With
Analyze result data in Koia on the right-hand
side of the result table toolbar.
As for files, an empty result table is reported in the status bar, and
the data warnings described above apply. Retrospective then verifies that
CouchDB is reachable with the configured settings; meanwhile the status
bar shows Saving… with a
Cancel button. A failure is reported in the status bar as a
CouchDB Access Error with the reason and a
Koia preferences link that opens the preferences page. An
export started while another one runs is reported as An export
to Koia is already running. Retrospective then displays the
Save to Koia’s CouchDB dialog:
Fig. 7.29 The Save to Koia’s CouchDB dialog.¶
Option |
Description |
|---|---|
Name |
The name of the Koia scene to create. Proposed from the name of the search tab. When you export the same tab again under the same name, the name you entered last time is proposed. |
Short description |
A description stored with the scene. Proposed as |
Columns |
The visible columns of the result table. Most charts need only a few specific columns, so select only the columns you actually need in Koia. |
Generate ID column |
Adds a unique |
Add log-level category column |
Adds an attribute named |
Max. number of entries to save |
The maximum number of entries written to CouchDB, between 1 and 100,000 (the default). Koia currently allows up to 100,000 data items per scene. |
The options sit in the groups Scene, Columns, Generated Columns and Data Limit. An empty Name or no selected column is reported in the banner, and OK is unavailable.
As in the JSON files, the column names and attribute names are English, whatever the application language. So is the Level value of a Windows event.
Each entry also carries the color of its row in the result table:
bgcolor holds the background and, for a highlighting rule, fgcolor
the text color, as hexadecimal values such as #ff785a. Koia can then
show the entries in the same colors.
After a successful upload, the status bar reports Table data has been saved to <target>, naming Koia’s CouchDB; when the maximum number of entries was reached, the message says so. Retrospective then opens the configured Koia web application in your browser with the new scene preselected and its raw data shown. If no browser can be opened, the status bar shows the address of the scene instead, without the password. After a cancel, the status bar reports Save cancelled. and no browser opens; the entries written so far stay in CouchDB. When the local filters leave no entry, the status bar reports No matched result entries to save. In Koia, you add pivot tables and dashboards as tabs of the scene. On a new dashboard tab, once the data has loaded, Generate Dashboard has Koia compose a dashboard of charts and a summary table from the scene’s columns. Regenerate Dashboard, an icon button in the dashboard toolbar, replaces it after a confirmation.
Fig. 7.30 The exported scene as a Koia pivot table: entries per server and user, by component and log level.¶
Fig. 7.31 A dashboard Koia generated from the exported scene.¶



