You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (Jira)" <ji...@apache.org> on 2020/08/07 06:11:00 UTC
[jira] [Closed] (FLINK-15792) Make Flink logs accessible via
kubectl logs per default
[ https://issues.apache.org/jira/browse/FLINK-15792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Metzger closed FLINK-15792.
----------------------------------
Resolution: Fixed
Merged to master in
6e8dd29eebf1bc51e7fb6d2322a0b9f41f01fd9a
541bc38b20b7a8656bcf995e4a7af15a74850515
ae9db19b061b39f98ac688247c7a57b108547888
ab77a25a60aac10d650ba2d0819d349cf59aad38
> Make Flink logs accessible via kubectl logs per default
> -------------------------------------------------------
>
> Key: FLINK-15792
> URL: https://issues.apache.org/jira/browse/FLINK-15792
> Project: Flink
> Issue Type: Sub-task
> Components: Deployment / Kubernetes
> Affects Versions: 1.10.0
> Reporter: Till Rohrmann
> Assignee: Yang Wang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0
>
>
> I think we should make Flink's logs accessible via {{kubectl logs}} per default. Firstly, this is the idiomatic way to obtain the logs from a container on Kubernetes. Secondly, especially if something does not work and the container cannot start/stops abruptly, there is no way to log into the container and look for the log.file. This makes debugging the setup quite hard.
> I think the best way would be to create the Flink Docker image in such a way that it logs to stdout. In order to allow access to the log file from the web ui, it should also create a log file. One way to achieve this is to add a ConsoleAppender to the respective logging configuration. Another way could be to start the process in the console mode and then to teeing the stdout output into the log file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)