When a job is running, you can view the startup logs and operational logs of the job. This topic describes how to view startup logs and operational logs of a job.
Background information
Item | Description |
Startup logs | After a fully managed Flink job is started, the startup logs of the current job 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 job, see View the startup logs of a job. 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 Logs 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 job, see View the operational logs of a job. |
Prerequisites
The instance of a 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 job
Log on to the Realtime Compute for Apache Flink console.
On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.
In the left-side navigation pane, choose Deployments.
Click the name of the desired job.
Click the Diagnostics tab.
On the Starting Logs tab, view the startup logs of the job.
View the operational logs of a job
View the operational logs of a job on the Logs tab.
Log on to the Realtime Compute for Apache Flink console.
On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.
In the left-side navigation pane, choose Deployments.
Click the name of the desired job.
Click the Diagnostics tab.
Click the Logs tab. Then, select Job drop-down list.
View the logs of JobManager and TaskManagers
View the logs of JobManager
On the Job Manager tab, click the Logs tab.
View the logs of TaskManagers
On the Task Managers tab, click the value in the Path, ID column.
Click Logs.
View the operational logs on the Flink web UI
Log on to the Realtime Compute for Apache Flink console.
On the Fully Managed Flink tab, find the workspace that you want to manage and click Console in the Actions column.
In the left-side navigation pane, choose .
Click the name of the desired job.
On the Overview tab, click Flink UI.
In the left-side navigation pane of the Flink web UI, click Task Managers or Job Manager.
After you click Task Managers, find the job that you want to view and click the value in the Path, ID column to view the logs of TaskManagers for the job.
After you click Job Manager, view the logs of the JobManager for the job on the Logs tab.