4.1. Hosts, Data Sources and Profiles

This chapter defines hosts, data sources and profiles, the three concepts Retrospective uses to describe the log data you want to read.

A profile with its data sources and custom columns, and the host each kind of data source needs

Fig. 4.1 Profiles, data sources and hosts.

  1. A profile.

  2. Its data sources.

  3. Its custom columns.

  4. A log file on this computer needs no host.

  5. A log file on a Linux machine, or another Unix system, needs an SSH host.

  6. A container needs the docker or kubectl command on this computer, not a host.

  7. The event logs of this computer need no host.

  8. The event logs of another Windows machine need a Windows host.

4.1.1. Hosts

A host is a machine that Retrospective must log into to read its log data. You describe each one once in the Host Manager tab (see Host Manager): where it is, how to reach it and which credentials to use. From then on its log data is available like any other. Hosts can be grouped into folders. They are used both for data sources defined on the fly (ad-hoc) and for those bundled within a profile.

There are two kinds. You choose SSH Host or Windows Host when you add a host.

  • An SSH host is a Linux machine whose log files you want to read; other Unix systems work on a best-effort basis. The same definition is used when you open the built-in SSH Console (see SSH Console).

  • A Windows host is a Windows machine whose Windows Event Logs you want to read. Retrospective reaches it over SSH or WinRM; WinRM works only when your own computer runs Windows.

Note

Docker and Kubernetes are not hosts. Retrospective reaches container logs through the docker and kubectl commands installed on your own computer. It uses the connections these commands are already configured for. For Kubernetes, you choose one of the contexts in your kubectl configuration, usually a remote cluster. There is nothing to define in the Host Manager for them, and Retrospective stores no credentials for them.

4.1.2. Data Sources

Data sources refer to files that contain log data, to containers that produce log data or to Windows Event Logs.

  • File data sources are located on the local file system or on remote SSH hosts. A file data source points to one file, to an archive file, or to a filter such as *.log that matches several files.

  • Container data sources live inside the Docker platform or in the Kubernetes cluster, the two container platforms Retrospective supports. A container data source points to one container, or to a filter that matches several containers. Retrospective reads what docker logs or kubectl logs returns: the standard output and standard error of the container. The whole log is transferred and filtered locally.

  • The Windows Event Log is a detailed and chronological record of system, security and application messages stored on Windows operating systems. You can read the Event Logs of remote Windows computers over SSH, also when your own computer runs macOS or Linux. The Event Logs of your own computer are available only when it runs Windows.

The table below lists every way log data can reach Retrospective, ordered from the least to the most setup. Only the last two need a host definition.

What you want to read

What you need

Where it is set up

Log files on this computer

Nothing

Not needed

Log files on another Windows machine

A mapped or mounted network share

Not needed

Docker containers

The docker command on this computer

File ‣ Preferences ‣ Data Sources ‣ Docker (see Docker)

Kubernetes containers

The kubectl command on this computer, pointed at your cluster

File ‣ Preferences ‣ Data Sources ‣ Kubernetes (see Kubernetes)

Windows Event Logs on this computer (when it runs Windows)

The PowerShell built into Windows. For the local computer, PowerShell 7 is used by default when it is installed.

File ‣ Preferences ‣ Data Sources ‣ Windows Event Log (see Windows Event Log)

Log files on a Linux, macOS or Unix machine

An SSH host, defined once

View ‣ Host Manager (see Host Manager)

Windows Event Logs on another machine

A Windows host, defined once. Over SSH, Windows PowerShell 5.1 runs unless the host is set up otherwise.

View ‣ Host Manager (see Host Manager)

Data source definitions provide Retrospective with the following information.

  • The files, containers or Event Logs that need to be included in the search or monitoring process.

  • The file or data encoding, for example UTF-8 or ISO-8859-1. Retrospective needs it to read the file content or the log stream correctly. The encoding setting does not apply to Event Logs; they are always read as UTF-8.

  • How to split the result data into individual entries, for example at a new line character or at a date/time pattern. Each entry then appears in its own result table row.

  • The date pattern to be used for converting the log entry timestamp into a date/time instance that can be used for proper sorting and filtering.

A data source definition covers all these aspects. You can either let Retrospective discover the relevant information automatically with the Autofind procedure (see Autofind), or provide the information by hand in the Configure source wizard.

4.1.2.1. Log Files from a Syslog Server

Retrospective does not receive syslog messages itself. A syslog server receives them and, depending on its configuration, writes them to plain text files. Those files are file data sources like any other.

On Windows, WinSyslog (https://www.winsyslog.com/) by Adiscon is such a server. It stores received messages in text files, optionally one file per day. Retrospective reads them on the computer that runs WinSyslog, or from another computer through a mapped or mounted network share. Add the log folder as a data source and choose the selection mode Select items using filter, so that a new daily file is included as well (see Define Data Sources). When Enable Dynamic Discovery is selected (the default), dynamic discovery follows a file that appears after monitoring has started (see Core Processing Engine).

4.1.3. Profiles

Profiles group data sources, so that you define precisely which log files, containers or Event Logs are processed. They also contain information on how the data is presented in the result table. You can also work with data sources that are created on the fly (ad-hoc); a profile lets you run a search again on exactly the same set of data sources.

You create profiles in the Profile Manager (the Profiles tab, View ‣ Open Profile Manager); see Profile Manager.