All Products
Search
Document Center

Realtime Compute for Apache Flink:View the startup logs and operational logs of a deployment

Last Updated:Dec 22, 2023

When a deployment is running, you can view the startup logs and operational logs of the deployment. This topic describes how to view the startup logs and operational logs of a deployment.

Background information

Item

Description

Startup logs

After a fully managed Flink deployment is started, the startup logs of the current deployment are generated. The startup logs are generated from the time fully managed Flink is initialized to the time the JobManager is started. For more information about how to view the startup logs of a deployment, see View the startup logs of a deployment.

Note

The startup logs do not include scheduling logs. You can view the scheduling logs on the Events tab in the console of fully managed Flink. The scheduling logs contain issues, such as insufficient resources and insufficient IP addresses of the vSwitch.

Operational logs

You can view the logs of JobManager and TaskManagers on the Diagnostics tab in the console of fully managed Flink or on the Flink web UI. For more information about how to view the operational logs of a deployment, see View the operational logs of a deployment.

Prerequisites

The job is in the Running state.

Precautions

Logs are displayed by page. Each page can display up to 1 MB of logs and approximately 8,000 to 9,000 rows of logs. In most cases, you can locate an issue based on the logs that are displayed on the first page. If you cannot locate the issue based on the logs that are displayed on the first page, go to the next page.

View the startup logs of a deployment

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.

  3. In the left-side navigation pane, click Deployments.

  4. Click the name of the desired deployment.

  5. Click the Diagnostics tab.

  6. On the Startup Logs tab, view the startup logs of the deployment.

    Image 7.png

View the operational logs of a deployment

View the operational logs of a deployment on the Diagnostics tab.

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.

  3. In the left-side navigation pane, click Deployments.

  4. Click the name of the desired deployment.

  5. Click the Diagnostics tab.

  6. Click the Logs tab. Then, select the deployment that is running from the Job drop-down list.

    image.png

  7. View the logs of the JobManager and TaskManagers

    • View the logs of the JobManager

      On the Job Manager tab, click the Logs tab.JM日志

    • View the logs of TaskManagers

      1. On the Running Task Managers tab, click the value in the Path, ID column.单击pathid

      2. Click Logs.logs

    View the operational logs on the Flink web UI

  1. Log on to the Realtime Compute for Apache Flink console.

  2. On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.

  3. In the left-side navigation pane, click Deployments.

  4. Click the name of the desired deployment.

  5. On the Status page, click Flink UI.

  6. In the left-side navigation pane, click Task Managers or Job Manager.

    • After you click Task Managers, find the desired deployment and click the value in the Path, ID column to view the logs of TaskManagers for the deployment.

    • After you click Job Manager, view the logs of the JobManager for the deployment on the Logs tab.