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

copilot svc logs has multiple minute delay #5926

Open
rynonl opened this issue Aug 30, 2024 · 2 comments
Open

copilot svc logs has multiple minute delay #5926

rynonl opened this issue Aug 30, 2024 · 2 comments

Comments

@rynonl
Copy link

rynonl commented Aug 30, 2024

I am wanting to tail my AWS logs in my terminal, so I am using copilot svc logs. The logs eventually come, but at a 3-4+ minute delay. They show up in the AWS UI basically instantaneously.

Is this a known issue, or is there perhaps some configuration somewhere I should be looking at to eliminate this delay using the CLI?

@iamhopaul123
Copy link
Contributor

iamhopaul123 commented Aug 30, 2024

hello @rynonl. It's probably because you have too many log streams (each task create its own and they won't get deleted with a task's stop). You can run svc status to get running tasks and do the log again and filter by specific running task copilot svc logs --tasks xxx.

Alternatively you can use cloudwatch logs insight which i believe would be much nicer to use for some major use cases

@rynonl
Copy link
Author

rynonl commented Sep 3, 2024

Hmm, I'm only showing 1 running task so I think it's probably not that?

Service: web
Task Summary

  Running   ██████████  1/1 desired tasks are running
  Health    ██████████  1/1 passes HTTP health checks
            ██████████  1/1 passes container health checks

Tasks

  ID        Status      Revision    Started At      Cont. Health  HTTP Health
  --        ------      --------    ----------      ------------  -----------
  59a426f8  RUNNING     452         23 minutes ago  HEALTHY       HEALTHY

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

2 participants