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

Asking for non existing logs keeps the fetching process running endlessly #304

Closed
noisegrrrl opened this issue Feb 18, 2019 · 3 comments · Fixed by #415
Closed

Asking for non existing logs keeps the fetching process running endlessly #304

noisegrrrl opened this issue Feb 18, 2019 · 3 comments · Fixed by #415
Assignees
Labels

Comments

@noisegrrrl
Copy link

When logs don't exist (for instance if asking for logs older than 5 days) the cli is stuck saying waiting for application logs and never gives back control to the user.

@noisegrrrl noisegrrrl changed the title Asking for non existing logs keeps running endlessly Asking for non existing logs keeps the fetching process running endlessly Feb 18, 2019
@KannarFr
Copy link
Member

Maybe it can be useful to use the logs retention duration. The LogsAPI has HTTP GET /v2/logs/retention endpoint without authentication. It returns { "durationInDays": x} with x an Integer.

@KannarFr
Copy link
Member

More, the retention duration in days includes the current days. So if we are the 16th February, with a logs retention of 3 days, the availables indexes are the 16th, 15th, 14th February.

@hsablonniere
Copy link
Member

FYI, this was a more general bug: whatever the options, the command would never give back the process.

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

Successfully merging a pull request may close this issue.

3 participants