All Products
Search
Document Center

Realtime Compute for Apache Flink:Change the log level for a running deployment

Last Updated:Sep 12, 2024

If you cannot identify an issue based on the logs whose level is INFO, you can change the level of logs to DEBUG. This topic describes how to change the level of logs for a deployment. This topic also describes the related limits and usage notes.

Background information

The following table describes the supported log levels in ascending order of urgency.

Level

Description

TRACE

Records finer-grained information than DEBUG logs.

DEBUG

Records the status of the system.

INFO

Records important information or information that you want to take note of.

WARN

Records the information about potential issues.

ERROR

Records the information about occurred errors and exceptions.

Limits

  • You can change the level of logs for a deployment only to the INFO or DEBUG level. If you change the level to a higher level, you may not identify issues based on the logs.

  • You can change the log level of the JobManager.

  • You can change only the log level of a single TaskManager at a time. You cannot change the log levels of all TaskManagers at a time. If you want to change the log levels of all TaskManagers, you must separately change the log level of each TaskManager.

Usage notes

  • After you change the log level to DEBUG, logs at the DEBUG, INFO, WARN, and ERROR levels are displayed.

  • After you change the log level to INFO, only logs at the INFO, WARN, and ERROR levels are displayed.

  • After you change the log level, only the new logs that are generated are affected. Existing logs are not affected.

  • If you set the log level to DEBUG, the performance of the deployment may be affected. If you do not need to identify issues, we recommend that you set the log level to INFO.

Procedure

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

  2. find the workspace that you want to manage and click Console in the Actions column.

  3. In the left-side navigation pane, click O&M > Deployments.

  4. On the Deployments page, find the deployment that you want to manage and click its name.

  5. Click the Logs tab.

  6. In the left-side pane, click the Logs tab and select the deployment that is running from the Job drop-down list.

  7. Change the log level of the JobManager or a TaskManager.

    • Change the log level of the JobManager

      1. On the Job Manager tab, click the Logs tab.修改运行作业.jpg

      2. Click Edit.

      3. In the message that appears, click OK.确定

      4. Select the log level that you want to set from the Log Level drop-down list.

      5. Click Confirm.

    • Change the log level of a TaskManager

      1. On the Running Task Managers tab, click the value in the Path, ID column.修改运行作业2.jpg

      2. Click the Logs tab.修改运行作业3.jpg

      3. Click Edit.

      4. In the message that appears, click OK.确定

      5. Select the log level that you want to set from the Log Level drop-down list.

      6. After you change the log level, click Confirm.