You can view boot and operational logs for a running deployment. This topic shows you how.
Background information
|
Type |
Description |
|
boot log |
A Note
The |
|
operational log |
An |
Prerequisites
The deployment must be running.
Usage notes
Logs are paginated. Each page displays up to 1 MB of data (about 8,000 to 9,000 entries), which is typically sufficient for troubleshooting. If you cannot identify the issue on the first page, navigate to subsequent pages.
View boot logs
-
Log on to the Realtime Compute for Apache Flink console.
-
Find the desired workspace and click Console in the Actions column.
-
In the left-side navigation pane, choose .
-
Click the name of the desired deployment.
-
Click the Logs tab.
-
On the Startup Logs tab, view the boot log.
seconds: [900] end new OSSLogClient endTimeInMs:[xxx 47], costInMs:[22 ms]end new AbstractVvpLogAppender endTimeInMs:[17222176513...] 09:47:31,625 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - ------------------------------------------------------------------------------------------------------------------------------ xxx 09:47:31,643 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - Preconfiguration: xxx 09:47:31,644 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - RESOURCE_PARAMS extraction logs: jvm_params: -Xmx469762048 -Xms469762048 -XX:MaxDirectMemorySize=134217728 -XX:MaxMetaspaceSize=268435456 dynamic_configs: -D jobmanager.memory.off-heap.size=134217728b -D jobmanager.memory.jvm-overhead.min=201326592b -D jobmanager.memory.metaspace.size=268435456b -D jobmanager.memory.heap.size=469762048b -D jobmanager.memory.jvm-overhead.max=201326592b logs: WARN [] - Error while trying to split key and value in configuration file /flink/conf/flink-conf.yaml:59: Line is not a key-value pair (missing key-value separator after ':'?) INFO [] - Loading configuration property: table.exec.operator-name.max-length 10240
View operational logs
On the Logs page
-
Log on to the Realtime Compute for Apache Flink console.
-
Find the desired workspace and click Console in the Actions column.
-
In the left-side navigation pane, choose .
-
Click the name of the desired deployment.
-
Click the Logs tab.
-
On the Logs tab, select the running deployment from the drop-down list next to Deployment.
-
View the logs for the JobManager and TaskManagers.
-
View JobManager logs
On the Job Manager tab, click Logs.
-
View TaskManagers logs
-
On the Running Task Managers tab, click a Path, ID.
-
Click Logs.
The page displays the operational log for the selected TaskManager. To filter the logs by level, select an option such as INFO from the drop-down list.
-
In the Flink UI
-
-
Log on to the Realtime Compute for Apache Flink console.
-
Find the desired workspace and click Console in the Actions column.
-
In the left-side navigation pane, choose .
-
Click the name of the desired deployment.
-
On the Status page, click Flink UI.
-
In the left-side navigation pane, click Task Managers or Job Manager.
-
Click Task Managers, and then click a Path, ID to view that TaskManager's logs.
-
Click Job Manager and view its logs on the Logs tab.
-