Searching in the log viewer

In the log viewer, you can perform searches, filter search results, and specify match criteria to refine a search.

To perform a search

  1. Start the Maintenance Tool utility.

    You can run the Maintenance Tool in a graphical user interface or from the command line.

    To run the Maintenance Tool in a graphical user interface

    • (Windows) From the location where you downloaded the installation files inside the utility folder, run the productMaintenanceTool.cmd file.
    • (Linux) From the location where you downloaded the installation files inside the utility directory, run the ./productMaintenanceTool.sh file.

    To run the Maintenance Tool from the command line

    • (Windows) From the location where you downloaded the installation files, open the utility folder, and run <product>MaintenanceTool.cmd with the -silent option.
    • (Linux) From the location where you downloaded the installation files, open the utility directory, and run ./<product>MaintenanceTool.sh with the -silent option.

    To learn about command-line options

    To learn about available command-line options, use the -help or -? option when you run the command.

    Examples:

    • TrueSightPServerMaintenanceTool.cmd -help
    • ./TrueSightPServerMaintenanceTool.sh -?

  2. In the log viewer window, click Edit.
  3. Select Find or Filter from the menu to choose the search type, or click the  and icons:
    • If you select Find, the log viewer displays all available log entries, but highlights (in blue) the ones that meet the selected filter and match type criteria.
    • If you select Filter, the log viewer displays only those entries that meet the selected filter and match type criteria.
  4. To set or change the filter option, right-click the current filter in the Find dialog box, and select the new one from the list.
    The following table lists the available filter options and their associated match types.

    Filter option

    Available match types

    AND

    Use this option to create a more complex search condition by combining two or more filter criteria.

    OR

    Use this option to create a more complex search condition by combining two or more filter criteria.

    NOT

    Use this option to create a more complex search condition that inverts a single, contained criterion.

    Time

    =
    >
    >=
    <
    <=
    The Match Type panel also includes a calendar to select a date and time field to specify the exact hour, minute, and second.

    Severity

    SEVERE
    WARNING
    INFO
    CONFIG
    FINE
    FINER
    FINEST

    Details

    contains
    starts with
    ends with
    equals
    regex

    Source

    contains
    starts with
    ends with
    equals
    regex

    Exception

    contains

    starts with
    ends with
    equals
    regex

    Note

    Use the regex match type to locate log entries that contain a regular expression. For example, if you enter ^LOG* in the Find field, the log viewer searches for all log entries that start with the word LOG.

  5. (Optional) In the Find dialog box, further refine the search by selecting the following options:

    Option

    Description

    Match Type

    Filters the search according to the criteria that you enter. The options are:
    contains
    startsWith
    endsWith
    equals
    regex (a search based on a regular expression)

    Select one of these options, and enter a string in the Find field.

    Case sensitive

    Matches the search case to the case of the string entered in the Find field

    Wrap Search

    Continues searching from the first log viewer tab when you click Find Next after searching through the last tab. This option is available only when you choose Find in the Edit menu.

    Direction

    Performs a forward or backward search, relative to the currently selected log entry

    Other log sessions might or might not be included in the search, depending on whether Wrap Search is selected.

  6. Click Search to begin searching for all log entries that meet the search criteria.
Was this page helpful? Yes No Submitting... Thank you

Comments