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

feat(logcli): extended tailing #737

Closed
wants to merge 1 commit into from

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Jul 10, 2019

Runs a regular query before tailing the websocket.
This enables a more docker / kubectl like behaviour, which is what a regular user expects:
A configurable amount of historic messages printed and new messages following up at the bottom.

BREAKING: tailing now prints some historic log messages. Use --count 0 to suppress.

Fixes #726

Runs a regular query before tailing the websocket.
This enables a more docker / kubectl like behaviour, which is what a regular
users expects: A configurable amount of historic messages printed and new
messages following up at the bottom.

BREAKING: tailing now prints some historic log messages. Use `--count 0` to suppress.
Copy link
Contributor

@sandeepsukhani sandeepsukhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see 2 problems here:

  1. It prints log entries received from non-tailing query in the descending order while tailing prints in ascending order.
  2. Entries pushed between non-tailing query and tail request would go missing.

For first as of now, there is no way to do a backward query and then print them in forward order.
I think the right way to implement this would be tail query itself doing this on the server. This would also keep behaviour same for other consumers of tail request not using logcli.

@sh0rez sh0rez closed this in #764 Jul 19, 2019
@sh0rez sh0rez deleted the logcli-extended-tail branch August 15, 2019 20:56
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

Successfully merging this pull request may close these issues.

logcli query: respect --since and --limit when tailing
2 participants