You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "John Lonergan (Jira)" <ji...@apache.org> on 2020/04/02 10:20:00 UTC

[jira] [Commented] (FLINK-9536) Rolling logs using log4j.properties, prevents them from showing on the UI.

    [ https://issues.apache.org/jira/browse/FLINK-9536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17073582#comment-17073582 ] 

John Lonergan commented on FLINK-9536:
--------------------------------------

Re access to multiple rolled logs or chunking a single log..
Any suggestions on how folk would like this to work functionally and from the perspective of the UI?
Might do a PR.

> Rolling logs using log4j.properties, prevents them from showing on the UI. 
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-9536
>                 URL: https://issues.apache.org/jira/browse/FLINK-9536
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Web Frontend
>    Affects Versions: 1.4.2
>            Reporter: SUBRAMANYA SURESH
>            Assignee: vinoyang
>            Priority: Major
>
> Based on this https://issues.apache.org/jira/browse/FLINK-9471 we are forced to keep INFO for packages like org.apache.flink.runtime.executiongraph, despite their verbosity. An attempt to roll these logs, so that they do not fill the disk, leads to them not showing up in the UI (JobManager logs or TaskManager logs). The log4j.properties attempted is below. 
>  log4j.rootLogger=WARN, SizeBasedRollingFile
>  log4j.logger.org.apache.flink=INFO
>  # Suppress the irrelevant (wrong) warnings from the Netty channel handler
>  log4j.logger.org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline=ERROR
>  log4j.logger.com.myPackage=INFO, DateBasedRollingFile
>  log4j.appender.SizeBasedRollingFile=org.apache.log4j.RollingFileAppender
>  log4j.appender.SizeBasedRollingFile.File=${log.file}
>  log4j.appender.SizeBasedRollingFile.maxFileSize=10000
>  log4j.appender.SizeBasedRollingFile.maxBackupIndex=10
>  log4j.appender.SizeBasedRollingFile.layout=org.apache.log4j.PatternLayout
>  log4j.appender.SizeBasedRollingFile.layout.ConversionPattern=%d\{yyyy-MM-dd HH:mm:ss} %-5p %-60c - %m%n
>  
> log4j.appender.DateBasedRollingFile=org.apache.log4j.DailyRollingFileAppender
>  log4j.appender.DateBasedRollingFile.File=${log.file}-application
>  log4j.appender.DateBasedRollingFile.DatePattern='.'yyyy-MM-dd-HH-mm-ss
>  log4j.appender.DateBasedRollingFile.layout=org.apache.log4j.PatternLayout
>  log4j.appender.DateBasedRollingFile.layout.ConversionPattern=%d\{yyyy-MM-dd HH:mm:ss} %-5p %-60c - %m%n



--
This message was sent by Atlassian Jira
(v8.3.4#803005)