8. Remote Hosts

This chapter is about the machines Retrospective has to log into. You describe each one once in the Host Manager, and from then on it is just another place to search. Log files on your own computer need nothing from this chapter, and neither do container logs reached through the docker and kubectl commands. See Data Sources for the full picture of where log data can come from.

There are two kinds of host, and the difference decides everything else.

SSH host

Windows host

What you read

log files

Windows Event Logs

The machine is

Linux; other Unix systems on a best-effort basis

Windows

How Retrospective connects

SSH — a shell session

SSH or WinRM — either one carries a PowerShell script; there is no shell session

Where it shows up

File Browser, SSH Console, profiles

Event Log Browser, profiles

Needed on the machine

SSH access, and the standard *NIX tools that are already there

OpenSSH Server or WinRM, and the PowerShell built into Windows

Installed by Retrospective

nothing

nothing

Why “SSH” appears in both columns. It is the same protocol doing two different jobs. For a Linux or Unix host, SSH gives Retrospective a shell: it runs grep, tail and similar tools on the machine and reads back what they print. For a Windows host, SSH is only the pipe: a read-only PowerShell script travels through it and the events come back. Nothing is installed in either case. A Windows host has no shell session, so none of the shell-related settings — sudo, execution priority, terminal encoding — exist for it.

Retrospective reaching Linux and Windows hosts directly, through jump servers and proxies, with an identity change

Fig. 8.1 How Retrospective reaches each kind of host.

  1. A Linux or Unix host: SSH opens a shell, and Retrospective runs standard tools such as grep and tail there.

  2. A Windows host over SSH: the connection only carries a read-only PowerShell script.

  3. A Windows host over WinRM: the same PowerShell script, carried by WinRM instead of SSH.

  4. Jump servers: SSH hosts that forward the connection, any number of hops. A Windows host can use them over SSH.

  5. A proxy server (HTTP, SOCKS 4 or SOCKS 5), directly before the host that uses it.

  6. An identity change with sudo or sudo su on a Linux or Unix host.

  7. WinRM starts from the local PowerShell, so it is available only when this computer runs Windows.

Supported host systems

Retrospective supports:

  • Linux hosts connected over SSH, including embedded and appliance Linux with a reduced (busybox) tool set

  • the Windows Event Logs of remote Windows machines, read over WinRM or SSH through the PowerShell that is part of Windows

Other Unix systems — macOS, FreeBSD, Solaris, AIX and HP-UX — are not supported. Retrospective still recognizes them, and they can work when the host provides the tools Retrospective needs; the host compatibility check reports whether it does. They are not tested for this release, and problems specific to them are addressed on a best-effort basis, without a guarantee of a fix.

Cygwin, Git Bash and MSYS/MinGW are not supported, because they do not provide a ps that Retrospective can use. To search a Windows machine’s Event Logs, add it as a Windows host. Log files on a remote Windows machine can be opened through a shared network folder in the File Browser.