Updated on 2024-09-27 GMT+08:00

Searching for Running Logs

After associating a component with an LTS log group, you can set a keyword and time range to search for logs.

Prerequisites

The component has been associated with a log group. For details, see Associating an LTS Log Group.

Searching for Running Logs

  1. Log in to ServiceStage.
  2. Use either of the following methods to go to the Running Logs page.

    • On the Application Management page, click the application to which the component belongs, click the target component in Component List, and choose O&M Configurations > Logs in the left navigation pane.
    • On the Component Management page, click the target component and choose O&M Configurations > Logs in the left navigation pane.

  3. On the Running Logs page, select a log stream from the drop-down list.
  4. Select a time range in the upper right corner.

    • From now: queries log data generated in a time range that ends with the current time, such as the previous 1, 5, or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from now, the charts on the dashboard display the log data that is generated from 18:20:31 to 19:20:31.
    • From last: queries log data generated in a time range that ends with the current time, such as the previous 1 or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from last, the charts on the dashboard display the log data that is generated from 18:00:00 to 19:00:00.
    • Specified: queries log data that is generated in a specified time range.

  5. On the log details page, you can search for logs using the following methods:

    • Enter a keyword in the search box and click Search, or select a historical record, index field, or keyword from the displayed drop-down list.
    • On the Raw Logs tab, hover the cursor over a field in the log content, click it, and choose Copy, Add To Search, or Exclude from Search from the displayed menu.
    • In the displayed drop-down list, press the up and down arrows on the keyboard to select a keyword or search syntax, press Tab or Enter, and click Search.