All Products
Search
Document Center

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

Last Updated:Mar 25, 2024

If you cannot locate an issue based on the logs at the INFO level, you can change the level of logs to DEBUG. This topic describes how to change the level of logs for a deployment and provides the related limits and precautions.

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 system information.

WARN

Records the information about potential issues.

ERROR

Records the information about errors and exceptions that occur.

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 locate 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.

Precautions

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

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

  • 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 locate issues, we recommend that you set the log level to INFO.

Procedure

  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, choose Deployments.

  4. Click the name of the desired deployment.

  5. Click the Exploration tab.

  6. Click the Running Logs tab. Then, select the running instance of the deployment from the Selected 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. check

      2. Click Edit.

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

      4. Select the desired log level from the Log Level drop-down list.

      5. Click Confirm.

    • Change the log level of the TaskManager

      1. On the Running Task Managers tab, click the value in the Path, ID column. yun

      2. Click Logs. ri

      3. Click Edit.

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

      5. Select the desired log level from the Log Level drop-down list.

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