13.8. Result Options¶
The Result Options page of the preferences tree controls how Retrospective keeps collected result data and how the result table presents it. Its sub-pages cover formatting, highlighting sets, the Koia data analysis and the local filter.
Result Model
Option |
Description |
|---|---|
Disk storage limit |
Maximum amount of result data, in MB, kept in disk storage per search or monitoring tab. When the limit is exceeded, the oldest results are removed. Disk storage lets entries removed from memory be reloaded later, for example when you scroll to a different section of the result table. Allowed are values between 100 and 100 000; the default is 1024. In unregistered mode, the field is disabled. A warning icon beside it states the cap of 100 MB per tab. |
Extended sort limit |
Maximum number of result entries up to which the extended (smart) sort is applied. Extended sort considers several visible and hidden columns besides the main column and gives a more accurate order. A high value can make sorting large amounts of data much slower. Allowed are values between 0 and 10 000 000; the default is 100 000. |
Result Table
Option |
Description |
|---|---|
Default Save File Type |
Default file type preselected when saving result data: HTML, Text, CSV, Excel or JSON. The default is HTML. |
Date/Time format |
Format used for the result table’s Date/Time column. The default is
|
Font |
Font used for the result table and detail view. Press
|
Newline control character substitute |
Text that replaces newline control characters so multi-line
log entries stay on a single result table row. The
default is |
Tab control character substitute |
Text that replaces tab control characters in the result table. The
default is a space followed by |
Max. length of ‘Data’ column cells |
Maximum number of characters displayed in a Data column cell. Longer content ends with an ellipsis. Allowed are values between 4 and 1000; the default is 500. |
Max. length of custom column cells |
Maximum number of characters displayed in a custom column cell. Longer content ends with an ellipsis. Allowed are values between 4 and 1000; the default is 200. |
Note
The four options above shape the Data and custom column cells of the single-line result table only. Switch the table to the multi-line row layout and those cells show the entry with its real newlines and tabs, wrapped to the column width. Cell tooltips always carry the untouched text, whatever the layout.
13.8.1. Formatting¶
Formatting, a sub-page of Result Options, holds default options that you can change in specific contexts, for example on individual search tabs. The first HTML or Excel export of a tab also starts from them.
Common
Option |
Description |
|---|---|
Word wrap |
Determines if long lines in the result detail view, and in the cells of the multi-line result table, are wrapped at word boundaries. The default is on. |
Tab size |
Tab width, measured in characters, for data shown in the result detail view. Allowed are values between 0 and 999; the default is 6. |
Data Formatting |
Default formatting of the data shown in the result detail view: None, JSON or XML. The default is JSON. |
Text Markers
Four toggles select which kinds of match are marked in the result detail view
and the result table. They cover
search
criteria,
highlighting terms,
custom fields and
local filters. Each
toggle switches to its off state, shown by
, when the family is not marked.
All four are on by default. The state set here is the one every new result
starts with. The families and their colors are described under
Text Markers.
The JSON options below apply whenever the detail view shows JSON content. The XML options apply whenever it shows XML content. This holds whatever Data Formatting you choose as the default, and in the File Scroller too. A toggle you change in the detail toolbar stays with its format in that tab. Retrospective never saves such a change.
JSON
Option |
Description |
|---|---|
Highlight syntax |
Highlights the JSON syntax using predefined colors. The default is on. |
Pretty-print |
Formats (indents) JSON data in the result detail view, using the settings below. The default is on. |
Format standalone flat arrays |
Formats standalone JSON arrays that contain nothing but primitive values or nulls, instead of leaving them on a single line. The default is off. |
Un-escape control characters |
Replaces escaped control characters, such as |
Restore nested JSON |
Restores and formats JSON that is embedded as an escaped string inside another JSON document. The default is on. |
Indentation |
Number of spaces used per indentation level when JSON data is pretty-printed. Allowed are values between 0 and 99; the default is 4. |
XML
Option |
Description |
|---|---|
Highlight syntax |
Highlights the XML syntax using predefined colors. The default is on. |
Pretty-print |
Formats (indents) XML data in the result detail view, using the settings below. The default is on. |
Replace XML entities |
Inlines CDATA sections and replaces XML character entities such as
Note Replacing such entities in text embedded in an XML document can break the document’s well-formedness. Pretty-print and syntax highlighting then no longer work. A warning icon beside the checkbox says so. |
Indentation |
Number of spaces used per indentation level when XML data is pretty-printed. Allowed are values between 0 and 99; the default is 4. |
13.8.2. Highlighting Sets¶
This page lets you define highlighting sets. Apply a set to any result table to highlight terms or sections of interest in different colors. Each highlighting set contains one or several highlighting matchers. Retrospective ships a few predefined sets that illustrate how matchers can be defined. Adapt them or create new ones that fit your needs.
Fig. 13.5 The Highlighting Sets page: the highlighting sets on the left and their matchers on the right.¶
Element |
Description |
|---|---|
Highlighting Set |
A collection of distinct matchers, ready to be chosen at any time for highlighting the result table. The toolbar above the sets holds these buttons, from left to right:
While any set is invalid, A result tab that is highlighted by a set keeps that set when you rename it. If you delete the set, the tab is no longer highlighted, unless another set of the same name remains. |
Matcher |
A matcher defines an expression (text or regular expression) for finding a phrase of interest, and the color it is
highlighted with. The Matchers toolbar starts with an
While a matcher of the set is invalid, Select several highlighting sets to list all their matchers
together. Warning Depending on the selected strategy, all matchers within a set may be evaluated for every result entry. Avoid filling sets with matchers that are not needed in the current context. Prefer several small sets for specific purposes and switch between them at any time. The matcher table has four editable columns: Name, Expression, Match Case and Regex. Select Match Case to compare the expression case-sensitively; leave it clear to ignore case. The Name cell of an invalid matcher starts with a red error icon. The row tooltip of an invalid matcher shows the reason. For a valid matcher, it shows Text Expression or Regular Expression, the expression and the description. Text Matcher. When Regex is not selected, the
expression is plain text. You may use wildcards anywhere in the
expression: the asterisk Regex Matcher. When Regex is selected, the expression is a regular expression (see the Pattern documentation). Be careful: poorly written regular expressions can be very expensive and slow down search and monitoring. |
Strategy |
Defines how the matchers of a set are evaluated and applied to result table rows.
With several sets selected, a chosen strategy applies to all of them. (mixed) shows when the selected sets use different strategies. Note Highlighting within the result detail view does not depend on the strategy. Search criteria, custom columns, local text filters and all matchers are highlighted simultaneously, and overlapping sections are merged. |
Include Date/Time |
Determines if highlighting includes the Date/Time part of result entries. Valid for all matchers in the same set. With several sets selected, the checkbox shows a dash when only some of them include the Date/Time part. A click applies the new state to all of them. |
13.8.3. Koia Data Analysis¶
Press the
button on the result table toolbar to export result data
to a CouchDB database and analyze it further in the Koia
web-application. To do so, install and configure CouchDB on your computer or a computer in a trusted
environment.
The page has two groups, CouchDB and Koia. All fields are mandatory; an empty field makes the page invalid.
Option |
Description |
|---|---|
Protocol |
Hypertext transfer protocol used to reach CouchDB, HTTP or HTTPS. The default is HTTP. With HTTPS, a warning icon beside the field lists the required settings. CouchDB’s certificate must be issued for the configured host and trusted by Windows or by the Java runtime. To trust it in Windows, install the certificate or its issuing CA under Trusted Root Certification Authorities. Any other certificate is refused. |
Host |
Host where CouchDB is installed. The default is |
Port |
Port used to access CouchDB, between 1 and 65535. Choosing a
protocol resets the port to its default: |
User |
Name of the admin user defined during the CouchDB
“Single-Node-Setup”. The default is |
Password |
Password of that admin user. The default is |
Test connection |
Verifies, with the same check the export runs, that CouchDB can be reached with the configured settings and returns its database list. The test gives up after 5 seconds without a response. |
Koia URL |
URL of the Koia web application. The default is the official URL, https://www.koia.io. You may also host Koia in a trusted environment. A Koia you host yourself must be 1.0.0 or later. Retrospective passes the connection in the part of the URL that the browser does not send to the web server. With the HTTP protocol, a warning icon beside the field repeats the note below. |
Note
Retrospective stores the password encrypted. It sends the password to CouchDB with basic authentication, which encodes but does not encrypt it. Therefore, use HTTPS or run CouchDB in a trusted and protected environment only.
Note
When using https://www.koia.io or any other site accessed through HTTPS, your CouchDB must be installed on the local computer. Otherwise the browser blocks access to CouchDB as an insecure request from a page loaded over HTTPS.












