6.5. Event Log Browser

The Event Log Browser shows the event logs and event providers of a Windows host. Use it to define a new search or monitoring activity on events from the Windows Event Log subsystem. Open it from View ‣ Event Log Browser, with i-event-log-browser Event Log Browser on the main toolbar, or with Ctrl+L. On macOS, press Cmd+L. Only one Event Log Browser tab is open at a time.

You locate the event logs and event providers you are interested in and create new search tabs from them. The browser is laid out as three panes, used left to right.

The Event Log Browser with its panes and toolbar controls called out

Fig. 6.22 The Event Log Browser, here showing the event logs of a Windows host.

  1. Host list: choose the Windows host whose event logs you want to browse.

  2. i-event-log-configure Configure PowerShell: set up the PowerShell CLI when it cannot be found.

  3. Event log navigator: browse the event logs and providers of the selected host, in a structured or flat view.

  4. Item selection: check the event logs or providers to include.

  5. Selection mode and filter: select the items individually or through a filter, and narrow the list by name.

  6. Start search or monitoring: the buttons that open a new search tab for the selected items.

6.5.1. Before You Start

If Retrospective runs on Windows, the computer’s own event logs are available immediately as localhost, with no host to define and nothing to install. Retrospective reads local event logs through a PowerShell command-line interface: the cross-platform pwsh where PowerShell 7 is installed, and otherwise the Windows PowerShell that is part of Windows itself.

To read the event logs of another machine, define a Windows host for it first. You can do that in the Host Manager, or directly in the Event Log Browser with i-file-browser-add-host Add Windows host above the host list. The transport stored in the host definition decides how Retrospective reaches the machine:

  • With SSH, it connects directly and runs the PowerShell built into the target, or PowerShell 7 if Use PowerShell 7 if installed is selected for the host. Nothing has to be installed on either side.

  • With WinRM, it uses the PowerShell on your computer, so these hosts need the local CLI described above.

On macOS and Linux there is no localhost entry, because a local Windows event log does not exist there. Remote Windows hosts work over the SSH transport; WinRM needs a Windows computer running Retrospective.

6.5.2. Choosing a Host

Pick a Windows host in the host list on the left. localhost is available only when Retrospective itself runs on Windows; other hosts come from those defined as Windows hosts in the Host Manager. On selection, Retrospective fetches the host’s Windows Event Log structure and shows it in the navigator. Selecting a cluster folder instead of a host clears the listed event logs and providers until you select a host again.

If a host needs the local PowerShell CLI and none can be found, an error bar above the panes says so and offers a Configure PowerShell link. You can also click i-event-log-configure Configure PowerShell above the host list, which opens Windows Event Log.

Next to it, i-file-browser-add-host Add Windows host defines a new host without leaving the browser. It first asks for the cluster the host belongs to, then opens the connection dialog. The host is stored only when the connection is verified, and it then appears in the host list and in the Host Manager. i-info-bullet right of the two buttons summarizes what the list shows.

Right-click a host and choose Edit host to change its definition without leaving the browser; hosts are deleted in the Host Manager.

Navigate to the level that contains the event logs or providers you want to search or monitor. Double-click an entry to open it; the .. entry at the top navigates to the parent level. The navigator shows the event logs and providers either structured into folders or as a flat list under the root folders Event Logs and Event Providers. i-event-log-structured-view Toggle between structured and flat view switches between the two; its icon shows the view in use (i-event-log-flat-view for the flat view). When you switch to the flat view inside a sub-folder, the navigator returns to its root folder.

The path bar above the directory navigator and the item selection pane shows the current location as clickable segments. Click a segment to go directly to that level. If the path is too long for the window, point to it to read it in full.

6.5.3. Selecting Event Logs and Providers

In the item selection pane you choose the event logs or providers and how they are matched. Right-click an item and choose Start searching or Start monitoring. If no item is checked yet, the item you right-clicked is checked for you; otherwise the checked items are used. You can also select the check boxes of several items. The tab opens in individual mode. i-sel-mode-item offers two ways of selecting:

Icon

Selection mode

i-sel-mode-item

Select items individually: lets you select individual event logs or providers from the open level. A filter narrows the list: an item appears only if its name matches the filter. The filter accepts the wildcards ? and *.

i-sel-mode-group

Select items using filter: selects every item in the open level whose name matches a filter expression. An empty filter or * selects all items; S* selects all whose name starts with S; *service selects all whose name ends with service. The filter accepts the wildcards ? and *.

When your selection is ready, click i-file-browser-search Create new tab for searching in selected data source(s) or i-file-browser-monitor Create new tab for monitoring selected data source(s). Both buttons open the tab on a temporary profile and run Autofind; neither starts the search or the monitor.

In that search tab you can narrow the results by event ID, level or keyword: properties that only event records have; see Event Log Search Criteria.

While a search runs on event logs, the status bar shows how much of the selected event logs has been read. The total is an estimate from each log’s size on the host. The actual amount of data depends on which event properties you have chosen to report. The progress bar starts moving once every source is known and shows how far into each log the search has got. With event ID, level, keyword or time criteria, it advances as matching events are reached.

After working elsewhere in Retrospective you can return to the Event Log Browser at any time and find the context from which you last triggered a search or monitoring action.

Event logs you cannot read. An event log you are not allowed to read shows a forbidden icon. Its tooltip says that access was denied. Checking it opens the Access Denied dialog. On the local computer, run Retrospective as administrator. On a remote host, add the account the host connects with to the Event Log Readers group on that host.

The item table has the columns Name, Modified, Type, Record Count and Size; providers show the name only. The five standard logs are shown in bold.

6.5.4. Toolbar Controls

The toolbar above the panes gathers the configuration, navigation and selection controls.

The Event Log Browser toolbar with its controls called out

Fig. 6.23 The Event Log Browser toolbar: the host and navigation controls (top) and the item selection toolbar (bottom).

  1. i-event-log-configure Configure PowerShell: open the preferences to set up the PowerShell CLI.

  2. Current location: the path of the open level; type it or pick a previously visited location. Picking a location visited on another host switches to that host. Locations of a host that has since been deleted are no longer offered.

  3. i-browser-home Navigate to root: return to the top of the selected host’s event log tree.

  4. i-refresh Reload: reload the event logs and providers of the selected host.

  5. i-event-log-structured-view Toggle between structured and flat view.

  6. i-sel-mode-item Selection mode: select the items individually or through a filter.

  7. Name filter: limit the listed items to those whose name matches the expression (wildcards ? and *); the drop-down lists previously used filters.

  8. Create new tab for searching in selected data source(s).

  9. Create new tab for monitoring selected data source(s).

Two controls beside Configure PowerShell carry no callout: i-file-browser-add-host Add Windows host and i-info-bullet. A further i-refresh Reload, left of the start buttons, reloads the items of the open level.