You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
1 error occurred:
* option "logs --since" on context type ECS.: unsupported flag
Describe the results you expected:
I expected that the since option would work correctly and provide recent logs, instead of the only option being to dump the entire logs since the creation of the stack (which for long running stacks is a huge problem).
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker-compose --version:
docker-compose --version
Docker Compose version dev
Command "info" not available in current context (aws), you can use the "default" context to run this command```
**Additional environment details (AWS ECS, Azure ACI, local, etc.):**
AWS ECS
The text was updated successfully, but these errors were encountered:
are all useful features of docker compose logs, but none are implemented for the ECS context.
For example:
1 error occurred:
* option "logs --tail" on context type ECS.: unsupported flag
The logs are drawn from Cloudwatch. My workaround (for a staging environment) has been to apply a retention policy to the Log Group; but this doesn't really solve the problem.
An alternative would be to query the logs directly from Cloudwatch, but that starts to dilute the benefit of ECS/Compose.
The AWS Go SDK includes FilterLogEvents which, among other things, supports startTime and endTime which look like a good fit for the since and until CLI parameters.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
ECS context logs does not support --since option
Steps to reproduce the issue:
docker context use aws
docker compose --verbose -f docker-compose.yml logs --follow --since 1m
Describe the results you received:
Describe the results you expected:
I expected that the since option would work correctly and provide recent logs, instead of the only option being to dump the entire logs since the creation of the stack (which for long running stacks is a huge problem).
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker-compose --version
:Output of
docker version
:Output of
docker context show
:Output of
docker context inspect context-name
:Output of
docker info
:The text was updated successfully, but these errors were encountered: