13.4. Data Sources

Data Sources is a container page for the preferences of the individual data source types. Expand its node in the preferences tree to edit the preferences for Docker, Filesystem, Kubernetes and Windows Event Log.

13.4.1. Docker

Docker is a tool that makes it easier to create, deploy and run applications using containers. To discover Docker components and to fetch log data, Retrospective must find the docker command line interface (CLI) locally.

Docker preference page

Fig. 13.3 The Docker preference page.

Command Line Interface (CLI)

Option

Description

docker

Location of the docker CLI (docker.exe on Windows). Add its directory to the PATH environment variable. Or specify its location explicitly with i-browse-file Choose docker.exe File to the right of the field. On macOS you can also select the application bundle, for example Docker.app. Retrospective then uses the CLI inside it. The current version status is shown below the field. While Retrospective checks a changed location, Apply and Apply and Close are unavailable. A location that does not work is outlined in red. The reason is shown at the top of the page and in the tooltip of the error icon in the field. A CLI that does not answer within 20 seconds counts as not working. If a saved location stops working, the page reports it as soon as it is opened. The default docker is accepted even when it cannot be found.

Container Selection

Option

Description

Open last accessed directory

Determines if the container selection dialog reopens at the last accessed directory.

Log Entry Timestamps

When a container is started or stopped, Docker usually produces log data of a different format than the application it contains. A timestamp added to each delivered log entry helps Retrospective split and sort the log entries accurately.

Note

The added timestamp is produced by the Docker daemon. It can differ from the date/time logged by the application running in the container. Containers have their own time zone, which is UTC for most popular Docker images.

Option

Description

Let Docker add timestamps

Instructs Docker to add a timestamp to each delivered log entry. To do so, Retrospective invokes the docker logs command with the --timestamps option. This is a default option that can be changed for individual data sources. There, a toggle button lets you enable i-container-add-timestamps or disable i-container-no-timestamps Docker timestamps.

Time zone fallback

Determines if the container time zone is used as a time zone fallback. It applies to log entry timestamps that do not contain a time zone themselves. Has no effect when the container has the same time zone as the local computer.

While both options are selected, a warning icon appears beside Time zone fallback. Its tooltip notes that this combination can lead to an unexpected result.

Note

These are default options. Changing them leaves existing Docker data source configurations unchanged.

13.4.2. Filesystem

File Selection

Option

Description

Open last accessed directory

Determines if the file selection dialog reopens at the last accessed directory.

Ignore hidden files

When selected, hidden files and directories are ignored. They do not show up in the UI, such as the File Browser, and are skipped during search and monitoring. When unselected, they are treated like any other file or directory.

Initial file selection mode (dialog)

Default selection mode used when the file selection dialog is opened.

Initial file selection mode (browser)

Default selection mode used in the File Browser.

ZIP Files

Option

Description

Alternate decoding character set

Character set used to decode ZIP file entry names when decoding with the default UTF-8 character set is not successful. The default is Cp437.

13.4.3. Kubernetes

Kubernetes is a system for automating deployment, scaling and management of containerized applications. To discover Kubernetes components and to fetch log data, Retrospective must find the kubectl command line interface (CLI) locally.

Command Line Interface (CLI)

Option

Description

kubectl

Location of the kubectl CLI (kubectl.exe on Windows). Add its directory to the PATH environment variable. Or specify its location explicitly with i-browse-file Choose kubectl.exe File to the right of the field. On macOS you can also select the application bundle, for example Docker.app. Retrospective then uses the CLI inside it. The current version status is shown below the field. While Retrospective checks a changed location, Apply and Apply and Close are unavailable. A location that does not work is outlined in red. The reason is shown at the top of the page and in the tooltip of the error icon in the field. A CLI that does not answer within 20 seconds counts as not working. If a saved location stops working, the page reports it as soon as it is opened. The default kubectl is accepted even when it cannot be found.

Container Selection

Option

Description

Preselected root directory

Root directory preselected when the Kubernetes source selection is opened. The default is Namespaces.

Open last accessed directory

Determines if the selection reopens at the last accessed directory.

Include label selectors in directories history

Determines if label selectors are included in the history that provides quick access to previously selected directories.

Log Entry Timestamps

Option

Description

Let Kubernetes add timestamps

Instructs Kubernetes to add a timestamp to each delivered log entry. To do so, Retrospective invokes the kubectl logs command with the --timestamps option. This is a default option that can be changed for individual data sources. There, a toggle button lets you enable i-container-add-timestamps or disable i-container-no-timestamps Kubernetes timestamps.

Time zone fallback

Determines if the container time zone is used as a fallback. It applies to log entry timestamps that do not contain a time zone themselves. Has no effect when the container has the same time zone as the local computer.

While both options are selected, a warning icon appears beside Time zone fallback. Its tooltip notes that this combination can lead to an unexpected result.

Note

These are default options. Changing them leaves existing Kubernetes data source configurations unchanged.

13.4.4. Windows Event Log

The Windows Event Log is a detailed, chronological record of system, security and application messages stored on Windows operating systems. To discover event logs and providers and to fetch events, Retrospective must find a PowerShell command line interface (CLI) locally. On Windows the built-in Windows PowerShell is enough. We recommend installing the cross-platform PowerShell version 7.4 or higher, which Retrospective then uses in preference.

Note

PowerShell 7 reads event logs faster than the built-in Windows PowerShell. The built-in one takes about one and a half times as long for most logs. For the Security log, it takes three to four times as long. If you cannot install software, PowerShell 7 is also available as a self-contained archive that needs no installation. Unpack it and enter the full path to pwsh.exe in the PowerShell field below.

Default transport for new hosts

Transport used to reach the event log of new hosts: WinRM or SSH. The default is SSH. This choice only presets the transport in the host editor, and you can change it per host. The info icon beside each option shows the same transport description as the host editor. See Choosing How Retrospective Connects for which one to pick.

This group is shown only when Retrospective runs on Windows. On macOS and Linux, WinRM cannot be used at all. There is no default to choose, and new hosts always start on SSH; see On macOS and Linux. The Command Line Interface (CLI) group below is also absent on those platforms. A local PowerShell serves only the local computer’s event logs and the WinRM transport.

Command Line Interface (CLI)

Option

Description

PowerShell

Which PowerShell to run. The default pwsh means use PowerShell 7 where it is installed, and the Windows PowerShell built into Windows everywhere else. On Windows, this normally needs no attention. Enter powershell to always use the built-in one. Or specify a full path to a binary, either by typing it or with i-browse-file Choose PowerShell File. Retrospective resolves a bare name through the PATH environment variable. The version of the PowerShell that answered is shown below the field. Its file name is added when that is not the one you entered. While Retrospective checks a changed location, Apply and Apply and Close are unavailable. A location that does not work is outlined in red. The reason is shown at the top of the page and in the tooltip of the error icon in the field. A PowerShell that does not answer within 20 seconds counts as not working, and the field must not be empty. The bare names pwsh and powershell are always accepted. The PowerShell is needed for the local computer’s event logs and for hosts using the WinRM transport. Hosts using the SSH transport do not use it.

This setting selects the PowerShell on this computer only. Event messages on a remote host are rendered by that host’s built-in Windows PowerShell. If the host’s Use PowerShell 7 if installed option is on, its PowerShell 7 renders them instead. So the setting does not affect how fast a remote Security log is searched.

Event Source Selection

Option

Description

Open last accessed directory

Restores the last visited host and directory when the Event Log Browser tab or the event log selection dialog opens.

Cache metadata

Keeps the fetched event log and provider lists of each host. Requesting them takes time and they rarely change. When unselected, the lists are fetched again whenever the Event Log Browser tab or the selection dialog opens. Reload always fetches them again.

Structured view

Sets the view that the Event Log Browser tab and the event log selection dialog open in. When selected, they open in the structured view, which splits event log and provider names at - and / into a folder hierarchy. When unselected, they open in the flat view. The preference applies only when no last accessed directory is restored. A restored directory keeps the view it was recorded in. A toggle button in both the tab and the dialog switches between the two views at any time.

Non-splittable names

Comma-separated names that the structured view keeps as one folder instead of splitting them, for example Hyper-V. Case is ignored. Only letters, digits, spaces, - and _ are allowed. The names also apply when you switch to the structured view with the toggle button. Therefore, the field stays editable while Structured view is off.

Shrinked view

Removes non-branched directories from the structured view. Their items are renamed and added to the parent directory. Ignored if Structured view is not selected.

Ignore debug and analytic logs

Hides debug and analytic event logs from the selection dialog. Search and monitoring skip these logs as well.

Ignore empty logs

Hides empty event logs from the selection dialog. Event providers are still listed regardless of whether they have created events.

Ignore inactive providers

Hides providers that have no events in any of their event logs. When unselected, all providers are listed without record counts, which can produce wrong results. Leave it selected unless you are debugging.

Store root directories in history

Determines if root directories are included in the history that provides quick access to previously selected directories.

13.4.4.1. Event Format

The Event Format node below Windows Event Log sets how fetched events are reported.

‘Security’ Log

Option

Description

Report keywords in ‘Level’ column

For the Security log, reports the event keywords in the result table’s Level column.

Event Details

Option

Description

Report event details

Appends the event data of each fetched event to its text. The data appears as name/value lines below an Event Details header, each value on one line. Field detection proposes these lines as fields for custom columns, see Field Detection.

Event details prefix

Prefix put in front of the name of each named event detail. The default is Evt-, as in - Evt-SubjectUserName: alice. The prefix is optional; leave it empty for no prefix. Autofind proposes the detail fields with prefixed names, so the Define Custom Columns and Add Field dialogs list them next to each other. The prefix becomes part of the field name, so the default names of custom columns made from these fields get longer. Only letters, digits, - and _ are allowed, and the prefix must not form a word that PowerShell treats as suspicious, such as Emit. Available only while Report event details is selected. Fields and search criteria written for another prefix do not match newly fetched events.

Include binary data

Includes the binary payload of an event in the reported details. This data is often not human-readable. Available only while Report event details is selected.

Event Attributes

Option

Description

Reported attributes

The list of event attributes to be reported for each detected event. The default is Id, RecordId and ProviderName. LevelDisplayName is reported in the language of the Windows host.

Attributes prefix

Prefix prepended to reported attribute names. The default is Evt-, as in Evt-Id=4624. Only letters, digits, - and _ are allowed. The prefix is optional. Autofind proposes the reported attributes as fields with prefixed names, so the Define Custom Columns and Add Field dialogs list them next to each other when you define custom columns. The prefix becomes part of the field name, so the default names of custom columns made from these fields get longer. The prefix must not form a word that PowerShell treats as suspicious, such as Emit. This applies to the prefix alone and together with an attribute name. PowerShell would then log every search as a suspicious script (Event 4104).

Note

Retrospective writes the headings above the event details and the reported attributes in the language of the user interface. The language at the start of a search or monitor counts, for example Ereignisdetails: and Attribute: in German. A search for a heading word finds the attributes heading only when Apply search criteria to event attributes is on. Events you have already fetched keep their headings when you switch the language.