13.7. Log Level Definitions

The Log Level Definitions page of the preferences tree lets you define individual log level definitions. Every definition specifies how Retrospective interprets log entries to find and extract the appropriate log level. It also specifies how the result table displays entries with an assigned log level. Definitions are composed of the hierarchy Configuration > Category > Level > Pattern.

The Log Level Definitions preferences page

Fig. 13.4 The Log Level Definitions page with its Configuration > Category > Level > Pattern hierarchy.

A toolbar above the tree acts on the selected node. From left to right, it holds these buttons:

  • i-prefs-export Export selected log level configuration

  • i-prefs-import Import log level configuration

  • i-prefs-set-default Set as default configuration

  • i-prefs-photo Change icon

  • i-prefs-add Add new element

  • i-prefs-clone Copy selected configuration

  • i-prefs-delete Delete selected element

  • i-prefs-move-up Move up and i-prefs-move-down Move down

The Delete key also deletes the selected element. Double-click a configuration or level to rename it. Category names cannot be changed. The table below describes each hierarchy level and the buttons that apply to it.

Level

Description

Configuration

Root node of the tree.

  • The configuration marked as default is the one currently in use. Its folder icon differs from the others. All other configurations are ready to be used on request. Select one and press i-prefs-set-default Set as default configuration to use it instead.

  • i-prefs-add Add new element inserts a new, unnamed configuration below the selected one. Type its name right away.

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

  • i-prefs-delete Delete selected element removes the selected configuration. The default configuration and the last remaining one cannot be deleted.

  • i-prefs-move-up Move up and i-prefs-move-down Move down change the order of the configurations.

  • i-prefs-export Export selected log level configuration saves the selected configuration to a file for backup or sharing. It stays disabled until the configuration holds at least one pattern. An invalid configuration is refused with its error message.

  • i-prefs-import Import log level configuration adds a shared configuration from a file. An imported configuration is never the default. When its name is already in use, Retrospective appends the next free number in parentheses, for example (2).

Every configuration contains the three categories ERROR, WARN and OTHER. You cannot add or delete categories.

Category

Groups log levels and defines the background color of the corresponding log entries in the result table. Categories are also used to group log levels in the statistics chart shown above the result table. The tree shows a category as Category ERROR, Category WARN or Category OTHER.

With a category selected, i-prefs-add Add new element adds a level to it.

Level

Defines the name, icon and priority used to represent and filter the corresponding log entries. A log level can be identified through one or several patterns. The priority (also called severity) depends on the level’s overall position.

  • i-prefs-add Add new element first opens the icon chooser. After you pick an icon, Retrospective adds a new level to the category. Type its name right away.

  • Change the priority by moving a level with i-prefs-move-up Move up or i-prefs-move-down Move down. A level moves only within its category.

  • Change the level’s icon with i-prefs-photo Change icon. Choose an icon from the dialog that appears.

  • i-prefs-delete Delete selected element removes the selected level.

Note

The position of log levels matters when you locally filter result entries by log level. An RQL query with a bounding operator (<, <=, >, >=), such as Level>=fine, makes Retrospective compare the priorities with the priority of the level whose name or pattern the term gives.

Pattern

A case-insensitive word that must be present in a log entry for it to match a specific log level. By default, a pattern contains letters of either case and digits only. It must not contain blanks or other special characters.

Note

The patterns INFO and info are identical and must not appear together within the same configuration.

The Patterns panel carries its own toolbar. An i-info-bullet information bullet at its left end repeats the case-insensitivity rule. The buttons act on the patterns of the selected level:

  • i-prefs-add Add new pattern adds a pattern. It needs a selected level.

  • i-prefs-delete Delete selected pattern removes the selected pattern.

  • i-prefs-move-up Move up and i-prefs-move-down Move down change the order of the patterns.

The two checkboxes below the pattern table apply to all patterns of the selected configuration. A warning icon beside each one explains its performance impact.

  • Non-alphanumerically delimited: clear this checkbox to accept a matching text regardless of the type of surrounding characters. Clearing it can slow down log level detection.

  • Allow all characters: allows patterns that contain any kind of character, even spaces. Selecting it can slow down log level detection.

Retrospective checks the definitions while you edit them. A blank name, a duplicate name, a level without patterns or a duplicate pattern makes the page invalid. The first problem replaces the page title, for example Level ‘…’ has no patterns. Fix it before you apply the changes.

Option

Description

Maximum text length for detecting log level

Maximum number of characters analyzed per log entry, from the beginning, when determining its log level. The default is 300, and the minimum is 1.

  • A small number guarantees low processing time but prevents detection of log levels located beyond the analyzed section.

  • A high number ensures log levels are detected even far from the text beginning, but may slow processing in cases of high throughput.

An i-info-bullet information bullet beside the field repeats this explanation.

13.7.1. Windows Event Log Levels

A Windows event log entry takes its level from the event’s own numeric level, not from the entry text. Retrospective adds the levels below to the active configuration when it runs the search: Critical, Error, Warning, Success, Information, Verbose, Audit Success and Audit Failure. Each one ranks beside the configured level that carries its English name as a pattern: Error just below ERROR, Critical and Audit Failure just above it, Warning just above WARN, Success, Information and Audit Success just above INFO, and Verbose just above VERBOSE.

The result table, the level filter, aggregations and the HTML, CSV and Excel exports show these levels in the interface language. The Level value in JSON files and in Koia keeps the English name. The language of the Windows host does not matter.

A level that an event provider defines above 5 is shown as Verbose. Level 16 is Success in the Microsoft-Windows-HelloForBusiness/Operational and Microsoft-Windows-WebAuthN/Operational logs.

In the Security log the audit keywords decide the level instead. The Report keywords in ‘Level’ column option controls this behavior, see Event Format.

Each added level carries its own icon. Error, Critical and Audit Failure join the ERROR category, Warning joins WARN, and the remaining four join OTHER. Only ERROR and WARN carry a row color.

Note

These levels are not shown in the tree and cannot be edited.