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

Push all available logs on container start #8

Open
GuiSim opened this issue Oct 4, 2016 · 1 comment
Open

Push all available logs on container start #8

GuiSim opened this issue Oct 4, 2016 · 1 comment

Comments

@GuiSim
Copy link

GuiSim commented Oct 4, 2016

Could it be possible to go "back in time" when the logmatic-docker is started to grab all logs from currently running containers?

This would make it harder to lose logs and would eliminate potential issues when a new machine is started and it contains multiple docker containers. The logmatic-docker container might not be up fast enough to grab all logs from other containers.

Example:

  1. Container A starts and logs something.
  2. logmatic-docker container is started
  3. Logs from container A that were made at boot time are lost. New logs are correctly captured.
@GuiSim
Copy link
Author

GuiSim commented Oct 5, 2016

This should be possible using GET /containers/{id}/logs

It also supports the ?since parameter which allows you to set the timestamp to use.

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