You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "vinoyang (Jira)" <ji...@apache.org> on 2019/09/10 11:52:00 UTC

[jira] [Comment Edited] (FLINK-13987) add new logs api, see more log files and can see logs by pages

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

vinoyang edited comment on FLINK-13987 at 9/10/19 11:51 AM:
------------------------------------------------------------

[~lining] Thanks for creating this issue. We have implemented a similar feature before.


was (Author: yanghua):
[~lining] Thanks for create this issue. We have implemented a similar feature before.

> 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.2#803003)