[ https://issues.apache.org/jira/browse/FLINK-13987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16932004#comment-16932004 ]
vinoyang commented on FLINK-13987: ---------------------------------- [~lining] Right, IMO, the existed implementation is not meaningless. It would be better reuse it(line range) and some exist implementation(for example, our log file list feature) to promote this big feature fastly. WDYT? [~till.rohrmann] > add new logs api, see more log files and can see logs by pages > --------------------------------------------------------------- > > Key: FLINK-13987 > URL: https://issues.apache.org/jira/browse/FLINK-13987 > Project: Flink > Issue Type: New Feature > Components: Runtime / REST > Reporter: lining > Priority: Major > > As the job running, the log files are becoming large. > Current log api returns all contents,it will block or not work when file is > large.It's unfriendly for user. > As application runs on jvm, sometime user need see log of gc, but there > aren't this contents. > Above all, we need new apis: > * list taskmanager all log file > ** /taskmanagers/taskmanagerid/logs > ** > {code:java} > { > "logs": [ > { > "name": "taskmanager.log", > "size": 12529 > } > ] > } {code} > * see taskmanager log file by range > ** /taskmanagers/taskmanagerid/logs/:filename?start=[start]&count=[count] > ** > {code:java} > { > "data": "logcontent", > "file_size": 342882 > } > {code} > * list jobmanager all log file > ** /jobmanager/logs > ** > {code:java} > { > "logs": [ > { > "name": "jobmanager.log", > "size": 12529 > } > ] > } > {code} > * see jobmanager log file by range > ** /jobmanager/logs/:filename?start=[start]&count=[count] > ** > {code:java} > { > "data": "logcontent", > "file_size": 342882 > } > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)