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

LogCLI instant queries always starts from now #3738

Closed
rsteneteg opened this issue May 17, 2021 · 0 comments · Fixed by #3739
Closed

LogCLI instant queries always starts from now #3738

rsteneteg opened this issue May 17, 2021 · 0 comments · Fixed by #3739

Comments

@rsteneteg
Copy link
Contributor

Describe the bug
When doing instant queries using the logcli client, it passes the timestamp using a parameter called start to Loki, but loki expects that parameter to be named time, so Loki defaults to use now as the start time.

To Reproduce
Steps to reproduce the behavior:

  1. Run LogCLI with an instant query in the past, query will go backwards from now

Expected behavior
Logcli should use the provided timestamp and walk backwards from that time, instead of from now

Environment:

  • Infrastructure: laptop
  • Deployment tool: n/a

Screenshots, Promtail config, or terminal output
If applicable, add any output to help explain your problem.

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 a pull request may close this issue.

1 participant