13.2. Autofind

Autofind automatically detects the file encoding and establishes a strategy for log entry separation and date/time recognition. The Autofind page of the preferences tree defines its default behavior.

Options in the Log Entry Split Strategy group:

Option

Description

Maximum number of sources to be analyzed

Maximum number of files or container log streams that Autofind analyzes during the Autofind procedure. The default is 20, and the value must be at least 1. Otherwise, the page reports Maximum number of sources must be a positive integer.

The limit applies when a data source resolves to several files or containers, for example through a wildcard, a directory or a container selector. It also limits how many individually selected Windows event logs or providers are analyzed per host and type. The others take over the result of an analyzed one.

The same limit applies to the number of files or containers whose initial part the Configure Data Source(s) dialog shows for manual analysis. It also limits the number analyzed to detect name/value fields.

  • A lower value shortens Autofind. Use it if you are sure that all files in your selection have the same encoding and the same log entry format.

  • A higher value increases the chance to discover data sources of different encoding or data format. This helps you define individual data sources for different groups of files.

Use Windows Event Log default strategy

Determines whether the default split strategy is applied to Windows Event Log sources. Never always detects the strategy from the collected data. Fallback uses the default strategy only when no strategy can be detected, for example for an empty data source. Always uses the default strategy without analyzing the data, and is the default.

An event-log entry never holds only part of an event, even when a line of its message looks like a timestamp.

Options in the Container Log Data group:

Option

Description

Analyze most recent log data

When selected, Autofind analyzes only the most recent part of a container’s log data instead of reading it from the beginning. Cleared by default.

Start … lines before log end

Number of log lines from the end of the stream that Autofind starts analyzing from. The default is 1000, and the value must be at least 100. Otherwise, the page reports ‘Start lines before log end’ must be at least 100. Only active when Analyze most recent log data is selected.

13.2.1. Date/Time Detection

Date/Time Detection, a sub-page of Autofind, defines which locales Retrospective considers when it detects date/time patterns in log data. The page shows the Locales group with two lists: Available on the left and Selected on the right.

Date/Time Detection preference page

Fig. 13.2 The Date/Time Detection preference page.

Move a locale between the lists with i-prefs-move-right Move right and i-prefs-move-left Move left, or double-click it. Order the selected locales with i-prefs-move-up Move up and i-prefs-move-down Move down. At least one locale always stays selected.

By default, the Selected list holds the locale of the operating system formats and the default locale of the operating system. These are followed by English (United States), English (United Kingdom), Japanese (Japan), Chinese (China), Korean (South Korea), Spanish (Spain), Portuguese (Brazil) and German (Germany). Each locale appears only once.

Note

Both the number and the order of the selected locales matter. If several locales detect a date/time format of the same quality, the locale with the highest rank wins. The more locales you select, the longer the detection takes. Place the locales you expect most often at the top, and avoid selecting locales you do not need.

A log whose month names are written in a language that is not selected has only its time detected, not its date. If Autofind returns a time-only date format for such a file, add that language here and run Autofind again.