13.11. Search/Monitor

The Search/Monitor page of the preferences tree sets the defaults that Retrospective applies when you search log data and when you monitor it.

Date/Time Search Criteria

Option

Description

Show by default

Determines whether a date/time criterion of the default type is added when a new search tab is created. Off by default.

Default type

Date/time search criteria type added on new search tabs. Applies only if Show by default is selected. Click i-configure-datetime Change default Date/Time search criteria to choose a different default type. The button is available only while Show by default is selected.

Windows Event Log

Option

Description

Apply search criteria to event attributes

Determines if text search criteria are also matched against the attributes of Windows event log entries. On by default. When off, a search finds an event only by its message and event details. The attributes are still shown, and result filters and highlighting still read them.

Searching

Option

Description

Consider file modification date

Excludes files from a date/time-based search if their modification date is earlier than the specified time criteria. Such files cannot contain matching entries. On by default.

Enable file time range optimization

Determines whether Retrospective checks the dates of log files before searching them. It analyzes the first and last entries of a file and excludes the file if both are outside the time range. For a remote file, it also narrows the search to the part of the file that can match. On by default.

Monitoring

Option

Description

File Start Offset

Amount of existing data, in bytes, delivered when file monitoring is started. It corresponds to the -c option of the Linux tail command. Allowed are values from 0 to 8192; the default is 0. Enter 0 to start without delivering any existing data.

Container Start Offset

Number of existing log lines delivered when container monitoring is started. It corresponds to the -n option of tail. Allowed are values from 0 to 100; the default is 0. Enter 0 to start without delivering any existing lines.

Windows Event Log Start Offset

Number of the most recent existing events delivered, oldest first, when Windows Event Log monitoring is started. Allowed are values from 0 to 100; the default is 0. Enter 0 to start without delivering any existing event.

For performance, the search engine bundles or splits the selected event logs depending on the situation. The number applies to each bundle. Therefore, the total number of existing events delivered for several event logs cannot be predicted.

When Ignore debug and analytic logs is off and the monitored logs include such a log, those logs are read in full first. This can take a while for large logs before the first new events arrive.

Enable Dynamic Discovery

Determines if Retrospective fetches data from files and containers that did not exist when monitoring started. When enabled, newly appearing files and containers are dynamically included. On by default. This is a default option that can be changed on individual tabs. Enable i-dynamic-discovery-enabled or disable i-dynamic-discovery-disabled it with the toggle button above the start button. See Dynamic Discovery.

and allow Autofind

Determines if Autofind is run for dynamically discovered files and containers. It runs when the defined entry separation cannot be found in the initial part of their log data. On by default. Available only while Enable Dynamic Discovery is selected. This is a default option that can be changed on individual tabs. Enable i-autofind-enabled or disable i-autofind-blocked it with the toggle button above the start button. See Autofind.

Note

You may have adjusted the log entry separation of a data source manually. Then you most probably do not want Autofind to run on dynamically discovered files and containers. Autofind would ignore your manual configuration.

Show Warnings for Compressed File

Compressed files cannot be monitored. When selected, a warning is shown for every compressed file that the monitoring process omits. On by default.

13.11.1. Log Entry Separation

Accumulated Unsplit Content

Option

Description

Max. size

Maximum size of accumulated unsplit content. If exceeded, a warning is displayed and the search or monitoring process is aborted. This can occur if individual log entries are very large, for example with a JSON or XML payload. Increase this option and restart, or adjust the log entry separation. Allowed are values from 1 to 100 MB; the default is 10 MB.

Max. size at beginning when monitoring

Maximum size of accumulated unsplit content at the beginning of a data source when monitoring. If exceeded, monitoring is aborted. This can occur if the log entry separation was misconfigured. Allowed are values from 1 to 1000 KB; the default is 100 KB.

13.11.2. System Resources

System Resources preference page

Fig. 13.6 The System Resources preference page.

System Resources

Option

Description

Max. threads for local file searching/monitoring

Maximum number of simultaneous threads used for searching and monitoring files on the local computer. Allowed are values from 1 to 10.

Max. threads for searching/monitoring in Docker

Maximum number of simultaneous threads used for searching and monitoring containers from the Docker subsystem. Allowed are values from 1 to 15.

Max. threads for searching/monitoring in Kubernetes

Maximum number of simultaneous threads used for searching and monitoring containers from the Kubernetes subsystem. Allowed are values from 1 to 15.

Event Logs (PowerShells)

Maximum number of simultaneous PowerShell processes used to fetch Windows event logs of the local computer (Windows only). Allowed are values from 1 to 10. Each remote Windows host carries its own limit; see Windows Hosts.

Starvation warning interval

Interval, in seconds, between warnings about a resource starvation situation. Such a situation occurs when all threads of a pool, or all permitted connections to a host, are in use. Allowed are values from 10 to 1000 seconds; the default is 10.

Note

Changing a thread-count option has no immediate effect on running activities. Retrospective creates and uses a new thread pool after the option is saved, while threads from the old pool gradually expire. The lower the maximum thread number, the higher the probability of a starvation situation. In this situation, activities idly wait for a thread to become free. Retrospective periodically warns you about starving activities.

Optimized Event Log Sources

Option

Description

Max. allocated PowerShells

Maximum number of PowerShell processes allocated for optimized Windows event log sources of the local computer (Windows only). Allowed are values from 1 to 5. Each remote Windows host carries its own limit; see Windows Hosts. A single local event log of 10 000 or more events is read in up to this many non-overlapping parts at once. This applies when the log is searched on its own, or alone in its part of a wildcard or folder source.