Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To provide paging/tailing abilty over logs #31

Open
enxebre opened this issue Oct 7, 2015 · 0 comments
Open

To provide paging/tailing abilty over logs #31

enxebre opened this issue Oct 7, 2015 · 0 comments

Comments

@enxebre
Copy link
Contributor

enxebre commented Oct 7, 2015

At the moment when streaming the logs we have a pretty basic approach so we are tailing a fixed size of the file resulting in only 15 last minutes of logs being available to the user.

We should be able to provide paging and tailing ability for showing differents chunks of the log file under demand, i.e when scrolling up/down.

At the moment we are needing two request for streaming the last chunk of the log file:
/files/read.json?path=/master/log&offset=-1 -> gives the size of the file
/files/read.json?path=/master/log&offset=' + size-60000 + '&length=' + offset+100000 -> shows the last maximum lenght

This ticket should also reduce the number of request to one.

See:
https://github.com/apache/mesos/blob/master/src/webui/master/static/pailer.html
https://github.com/apache/mesos/blob/master/src/webui/master/static/js/jquery.pailer.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant