If you cannot identify an issue based on the INFO logs, change the log level to DEBUG. This topic describes how to change the level of logs for a running job, along with related limits and usage notes.
Background
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 of interest. |
WARN | Records the information about potential issues. |
ERROR | Records the information about occurred errors and exceptions. |
Limits
You can change the log level to INFO or DEBUG. 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.
Setting the log level to DEBUG may affect the job performanc. If you do not need to identify issues, we recommend that you set the log level to INFO.
Procedure
Log on to the Realtime Compute for Apache Flink console.
Click Console in the Actions column of the target workspace.
In the left-side navigation pane, click .
On the Deployments page, click the target deployment name.
Click the Logs tab.
In the left-side pane, click the Logs tab and select the job that is running from the Job drop-down list.
Change the log level of the JobManager or a TaskManager.
Change the log level of the JobManager
On the Job Manager tab, click the Logs tab.
Click Edit.
In the message that appears, click OK.
Select the log level that you want to set from the Log Level drop-down list.
Click Confirm.
Change the log level of a TaskManager
On the Running Task Managers tab, click the value in the Path, ID column.
Click the Logs tab.
Click Edit.
In the message that appears, click OK.
Select the log level that you want to set from the Log Level drop-down list.
After you change the log level, click Confirm.