6.1. Search Definition Toolbar¶
The search definition area sits at the top of every search tab. There you define a search or monitoring run. The drop-down list on the left shows all data profiles and temporary selections of data sources. Base your run on one of them. Use the buttons below to choose the data sources, define the search criteria, set the options and start the run.
Fig. 6.5 The search definition area: the profile drop-down list and data source buttons (left), the search criteria (middle), and the options and the start button (right).¶
Button |
Description |
|---|---|
Opens the Add Data Source(s) dialog, where you choose file data sources. To keep the choice for later sessions, select Save Definition to Profile. |
|
Opens the Add Data Source(s) dialog, where you choose container (Docker or Kubernetes) data sources. To keep the choice for later sessions, select Save Definition to Profile. |
|
Opens the Add Data Source(s) dialog, where you choose Windows Event Log data sources. To keep the choice for later sessions, select Save Definition to Profile. |
|
Opens the Compose Data Source(s) dialog (see Composing Data Sources from Profiles). Available when at least one saved profile exists. |
|
Edits the selected data sources. Unavailable when no profile or a system profile is selected.
|
|
Point to this bullet to see information about the selected profile
or temporary selection. When the selection cannot be searched, for
example because no data source is enabled, the bullet turns into a
red |
|
Opens a pop-up with the date/time search criteria to choose from (see Defining Search Criteria). Not available for monitoring: switching to Monitor removes the date/time criteria, and switching back to Search restores them. |
|
Adds a filter on Windows event properties (see Event Log Search Criteria). |
|
Adds a text search criterion (see Defining Search Criteria). |
|
Match all (AND) / Match any (OR) |
Specifies how Retrospective combines the search criteria. The two options appear when there is more than one criterion.
|
Hide search criteria / Show search criteria |
Collapses the criteria into a one-line summary, or expands them again. The link appears when there is more than one criterion, and while monitoring. Press Ctrl+O (on macOS, Cmd+O). |
Overrides the Kubernetes context for the next run (see
Overriding the Kubernetes Context). Available when the selected
profile uses exactly one configured Kubernetes context, further
|
|
|
Specifies whether Retrospective reads files and containers that appear after monitoring has started. Available in Monitor mode only. |
Specifies whether Retrospective runs Autofind on newly discovered files and containers when their entry separation (newline, date/time and so on) is not found in the first part of the log data. Available in Monitor mode with dynamic discovery on. Note If you adjusted the log entry separation of a data source manually, block Autofind for dynamically discovered data sources. Otherwise Autofind replaces your manual configuration. |
|
Specifies whether Retrospective detects new name/value fields during search and monitoring. You can then assign detected fields to custom columns. Warning Field detection can slow down search and monitoring considerably. With large data volumes, the user interface can also respond slowly. To reduce the load:
|
The tooltip of each toggle names the action a click performs. The three toggles are unavailable during a run. Their initial state comes from the Preferences dialog (see Search/Monitor and Field Detection), and each tab keeps its own setting.
The profile buttons are unavailable during a run, and so are their items in the Search/Monitor menu.
Selecting Save Definition to Profile in the Add Data
Source(s) or Configure Data Source(s) dialog proposes the name
Profile, or the next free Profile 01, Profile 02 and so on. The
name must not be empty or already used by another profile, regardless of
case. Otherwise the field is marked, its marker explains why, and
OK stays unavailable.
6.1.1. Composing Data Sources from Profiles¶
The Compose Data Source(s) dialog lists the saved profiles with
their data sources. Select the data sources you want to use. To keep the
selection as a new profile, select Save Definition to Profile
and enter a name. If a profile with that name exists,
Duplicate Profile Name asks before it is overwritten. Without a
saved profile, the selection is temporary and is named after its first data
source, followed by + and the number of further data sources.
OK is available when at least one data source is selected and,
if you save it, the name is valid.
6.1.2. Starting a Search or Monitor¶
When the data sources and the search criteria are defined, start the run with the split button at the far right of the search definition area. Its main part shows the mode icon and the action. Its arrow opens the mode menu with the entries Search and Monitor. The entry for the current mode is unavailable.
Click
Start Search, or press
Ctrl+Enter (on macOS, Cmd+Enter), to start a search.
Retrospective scans the current content of the selected data sources and
presents the matching log entries.Choose Monitor from the mode menu, then click
Start Monitor to start monitoring.
Retrospective keeps watching the selected data sources and appends newly
arriving log entries as they appear.
While a run is in progress, the button reads Stop Search or Stop Monitor. Click it to stop the run. The profile drop-down list, the data source buttons, the search criteria and the option buttons are unavailable until the run ends.
The start button is available only when the profile and all criteria are valid and no Autofind is running; while it is unavailable, its tooltip lists these conditions. Once a result exists, changing the profile, the data sources, the criteria or a custom column shows a warning icon left of the start button. Its tooltip Search definition and result data are not in sync anymore. lists what changed.
Fig. 6.6 The warning tooltip Search definition and result data are not in sync anymore.¶
6.1.3. Overriding the Kubernetes Context¶
A profile with Kubernetes data sources records the kubectl context
under which it was created. Use
to run the same
profile against another cluster. The profile itself does not change. The
next search or monitoring run reads its containers through the chosen
context.
The button is available when the following conditions are met: the selected
profile uses exactly one configured Kubernetes context, kubectl provides
more than one context, and no run or Autofind is in progress. Click the
button to open a menu with all available contexts. The profile’s own context
is followed by configured in parentheses. While an override is
active, the chosen context is followed by overriding in
parentheses, and the button shows the
icon. The
configured and the active context cannot be chosen.
Choose a context from the menu to activate the override.
Choose Stop overriding K8s cluster to return to the configured context. The item appears only while an override is active.
The override applies to the current tab only. It is not saved in the
profile or the session. Restarting Retrospective clears it. Selecting a
profile that does not use exactly one configured Kubernetes context also
clears it. Retrospective reads the contexts with kubectl config
get-contexts when you select a profile or return to the tab. If
kubectl cannot list them, a warning appears in the message bar at the
top of the search tab. Its Kubernetes preferences link opens
in the Preferences dialog (see
Kubernetes).
6.1.3.1. When the Recorded Cluster No Longer Exists¶
A recorded context stops being usable when the cluster is renamed or
removed from the kubectl configuration. Suppose no override is active
and kubectl config get-contexts no longer lists the recorded context.
Then the run falls back to the current context. The run can then read a
different cluster than the one recorded. The host column of the
result table names the cluster the run actually used.
If kubectl names no current context, the run uses the recorded context
unchanged and fails. It also fails when kubectl cannot be read. The
profile itself never changes: its data source list in the Profile Manager
keeps showing the recorded context, and the override menu still marks it
configured.
Autofind, field detection and the sample load of the Configure source dialog use the same fallback to the current context. They also leave the profile unchanged.













