Updated on 2022-02-22 GMT+08:00

Online Log Searching

Scenarios

FusionInsight Manager supports online search and displays component logs for log viewing scenarios, such as fault locating.

Procedure

  1. Log in to FusionInsight Manager.
  2. Choose O&M > Log > Online Search.
  3. Set the parameters listed in Table 1 based on the logs to be queried. You can select a log generation time range, the default time ranges are 0.5 hour, 1 hour, 2 hours, 6 hours, 12 hours, 1 day, 1 week, and 1 month, or click to customize Start Date and End Data.

    Table 1 Log search parameters

    Parameter

    Description

    Search Content

    Specifies the keywords or regular expressions to be searched for.

    Service

    Specifies the service or module for which you want to query logs.

    File

    Specifies the log file to be searched when only one role is selected.

    Lowest Log Level

    Specifies the lowest level of the logs to be queried. After selecting a level, logs of this level and higher are displayed.

    The log levels from low to high are as follows:

    TRACE, DEBUG, INFO, WARN, ERROR, and FATAL

    Host Scope

    • You can click to select the hosts.
    • Enter the host name of the node for which you want to query logs or the IP address of the management plane.
    • Use commas (,) to separate IP addresses. For example, 192.168.10.10,192.168.10.11.
    • Use hyphens (-) to indicate an IP address segment if the IP addresses are consecutive. For example, 192.168.10.[10-20].
    • Use hyphens (-) to indicate an IP address segment if the IP addresses are consecutive, and use commas (,) to separate IP address segments. For example, 192.168.10.[10-20,30-40].
    NOTE:
    • If this parameter is not specified, all hosts are selected by default.
    • A maximum of 10 expressions can be entered at a time.
    • A maximum of 2000 hosts can be matched for all entered expressions at a time.

    Advanced Configurations

    • Max Quantity: specifies the maximum number of logs that can be displayed at a time. If the number of queried logs exceeds the preset value, the earliest logs will be ignored. If this parameter is not set, the maximum number of logs that can be displayed at a time is not limited.
    • Timeout Duration: specifies the log query timeout duration. This parameter is used to limit the maximum log query time on each node. When the query times out, the query is stopped and the query results are still displayed.

  4. Click Search to start the search. Table 2describes the fields in the query result.

    Table 2 Search results

    Parameter

    Description

    Time

    Specifies the time when a piece of log is generated.

    Source Cluster

    Cluster where logs are generated.

    Host Name

    Specifies the host name of the node where the log file that records the line of log is located.

    Location

    Specifies the path of the log file that records the line of log.

    Click the location information to go to the online log browsing page. By default, 100 lines of logs before and 100 lines after the line of log are displayed. You can click More on the top or bottom of the page to view more logs. Click Download to download the log file to the local PC.

    Line No.

    Specifies the line number of a line of log in the log file.

    Level

    Specifies the log level.

    Log

    Specifies the log content.

    You can click Stop to forcibly stop the retrieval. The retrieved results are displayed in the list.

  5. Click Filter to filter the logs displayed on the page. Table 3 lists the fields that you can use to filter logs. After setting these parameters, click Filter to search for logs meeting the search criteria. You can click Reset to clear the entered information.

    Table 3 Filter

    Parameter

    Description

    Keywords

    Specifies the keywords of the logs to be searched for.

    Host Name

    Specifies the name of the host to be searched for.

    Location

    Specifies the path of the log file to be searched for.

    Started

    Specifies the start time for logs to be searched for.

    Completed

    Specifies the end time for logs to be searched for.

    Source Cluster

    Specifies the cluster of the logs to be searched for.