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

Piotr Godek commented on FLINK-2732:
------------------------------------

great.

Here's what I propose in terms of request:
- route: 
/logs/taskmanagers/:taskmanagerid
- params:
from: starting timestamp
to: ending timestamp
limit: limit results nr

- order: timestamp DESC
- without params, return an arbitrary number of most recent log messages
- with limit only, return the most recent ones limited to 'limit'
- from < timestamp <= to
- with 'to' omitted, return from 'from' to the most recent

response:
[
  { 
     message: log message
     level: log message level
     timestamp: unix timestamp 
  },
  {
    ...
  },
...
]

I could parse the log lines but using the proposed way we're independent of the 
log format.

What do you think?


> Add access to the TaskManagers' log file and out file in the web dashboard.
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-2732
>                 URL: https://issues.apache.org/jira/browse/FLINK-2732
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Webfrontend
>    Affects Versions: 0.10
>            Reporter: Stephan Ewen
>             Fix For: 0.10
>
>
> Add access to the TaskManagers' log file and out file in the web dashboard.
> This needs addition on the server side, as the log files need to be 
> transferred   to the JobManager via the blob server.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to