Giter VIP home page Giter VIP logo

Comments (5)

julienfdev avatar julienfdev commented on June 19, 2024

i'm sorry but why is it a bug ? the log group still exists, thus, the logs tail --follow does not exits.
an ECS task finishing has absolutely nothing to do with the state of your log group / stream.

If you need to do something programmatically, either trigger an SNS event when the task is finished or monitor its status inside your app

from aws-cli.

tim-finnigan avatar tim-finnigan commented on June 19, 2024

Thanks for reaching out and your patience here. The tail command documentation notes the following for the --follow parameter:

--follow (boolean) Whether to continuously poll for new logs. By default, the command will exit once there are no more logs to display. To exit from this mode, use Control-C.

So if there are no more logs then I would expect the command to exit. Is this issue consistently reproducible? And outside of Fargate as well? Have you tried testing on more recent versions of the CLI? (The latest version per the CHANGELOG is 2.15.51.)

There may be a delay in the ingestion of logs from the Fargate task to the CloudWatch Logs service. It's also possible that the log stream associated with the Fargate task is not being properly terminated or marked as complete, causing the aws logs tail command to continue waiting for more logs indefinitely.

If you can provide debug logs (with sensitive info redacted) by adding --debug to the command then that might help provide more insight into the issue. Otherwise using the get-log-events command could serve as a workaround.

from aws-cli.

github-actions avatar github-actions commented on June 19, 2024

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

from aws-cli.

BeyondEvil avatar BeyondEvil commented on June 19, 2024

Sorry for the late response.

I'll make sure I'm on the latest version(s) and repro with the --debug flag.

Stay tuned.

from aws-cli.

github-actions avatar github-actions commented on June 19, 2024

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

from aws-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.