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 yyyy-MM-dd HH:mm:ss,SSS. Use the pattern letters from the SimpleDateFormat documentation. An empty or invalid format makes the page invalid.

Font

Font used for the result table and detail view. Press i-prefs-font Font to open a dialog that picks the font and, optionally, the result table text color. Leave the Foreground box clear to keep the color of the current theme. The name of the chosen font appears beside the button.

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 ↩ followed by a space.

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 i-mark-search-criteria search criteria, i-mark-highlighting-terms highlighting terms, i-mark-fields custom fields and i-mark-local-filters local filters. Each toggle switches to its off state, shown by i-no-mark-search-criteria i-no-mark-highlighting-terms i-no-mark-fields i-no-mark-local-filters, 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 \n and \t, with their actual characters. This improves readability but produces invalid JSON, as a warning icon beside the checkbox explains. The default is off.

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 &lt; and &gt; with < and >. The default is on.

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.

The Highlighting Sets preferences page

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:

  • i-prefs-export Export selected highlighting sets saves the selected sets to a file for backup or sharing.

  • i-prefs-import Import highlighting sets adds shared sets from a file. When a name is already in use, Retrospective appends the next free number in parentheses, for example (2).

  • i-prefs-photo Change icon changes the icon of the selected set. The set icon helps you quickly identify the set and the type of matchers it contains.

  • i-prefs-add Add new highlighting set inserts an empty set with a random icon below the selection. Type its name right away.

  • i-prefs-clone Copy selected highlighting set appends a copy named <name> - Copy.

  • i-prefs-delete Delete selected highlighting sets deletes the selected sets without asking for confirmation.

  • i-prefs-move-up Move up and i-prefs-move-down Move down change the position of the selected set. The order is reflected in the menu that lets you choose the highlighting of the current result table.

While any set is invalid, i-prefs-add Add new highlighting set, i-prefs-export Export selected highlighting sets and i-prefs-import Import highlighting sets stay disabled.

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 i-info-bullet information bullet that explains the wildcard rules. Its buttons follow from left to right:

  • i-prefs-color Choose background color opens the Choose color dialog for the background color.

  • i-prefs-font Choose font adjusts the highlighting font and text color in a dedicated dialog.

  • i-prefs-description Show description opens the Description dialog. The description appears in the matcher tooltip when you hover over the table cells.

  • i-prefs-add Add new matcher inserts a matcher below the selection, with a new background color. Type its name right away.

  • i-prefs-clone Copy selected matcher inserts a copy below the selected matcher, with a unique name and a new background color.

  • i-prefs-delete Delete selected matchers deletes the selected matchers without asking for confirmation.

  • i-prefs-move-up Move up and i-prefs-move-down Move down change the position of the selected matcher.

While a matcher of the set is invalid, i-prefs-add Add new matcher and i-prefs-clone Copy selected matcher stay disabled.

Select several highlighting sets to list all their matchers together. i-prefs-color Choose background color, i-prefs-font Choose font and i-prefs-delete Delete selected matchers then apply to the selected matchers of every set. Adding, copying and moving a matcher needs a single selected set.

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 * matches any number of characters and the question mark ? matches a single character. To match these characters literally, quote them with a backslash. Write \*, \?, and \\ for a backslash itself.

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.

  • First match wins: matchers are evaluated top-down. The first match in an entry determines the highlighting of the row.

  • Largest match wins: the matcher with the largest cumulated size of conforming text sections determines the highlighting of the row.

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 i-koia 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 localhost. We recommend starting with a local installation (localhost or 127.0.0.1).

Port

Port used to access CouchDB, between 1 and 65535. Choosing a protocol resets the port to its default: 5984 for HTTP and 6984 for HTTPS.

User

Name of the admin user defined during the CouchDB “Single-Node-Setup”. The default is admin.

Password

Password of that admin user. The default is admin. A warning icon beside the field explains how the password is protected: see the note below.

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.

13.8.4. Local Filter

Option

Description

Text Filter Type

Selects how the local filter text is interpreted. The choices are Classic “Contains” Filter and Retrospective Query Language (RQL). A classic filter matches the text as is; it may contain spaces and the wildcards * and ?. An RQL filter interprets the text as an RQL query. The default is Retrospective Query Language (RQL).

Note

If this option is changed, it becomes valid for new search tabs only. A warning icon beside the field says so.

Filter apply delay

In the Classic “Contains” Filter group. Time, in milliseconds, observed after you stop typing before the entered filter is automatically applied. It applies to the classic filter only. Allowed are values between 0 and 10 000, in steps of 100; the default is 1000. Becomes valid for new search tabs only.

Immediately apply recovered filters

In the Retrospective Query Language (RQL) group, but valid for both filter types. When checked, filters selected from the history drop-down list are applied immediately. Otherwise they are applied only when you press Enter. The default is on.

Default Type

In the Date/Time Filter group. Type used by default when defining a new local date/time filter. Press i-configure-datetime Change default Date/Time filter to choose a different default type. The choice offers Date Frame and Date/Time Frame only. The default is “Between (seconds)”.

Hide filtered-out entries

When checked, only entries that match the local filter are shown in the result table. When unchecked, all rows remain visible and the matching ones are highlighted (green background). The default is on. This is a default setting that can be changed at any time on individual search tabs.