Comments (5)
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.
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.
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.
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.
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)
- Local environment variables interfere with tests HOT 1
- create fsx lustre file system is not working HOT 4
- AWS Chatbot commands not working yet? Could not connect to the endpoint URL HOT 5
- "aws ecr describe-image-scan-findings --max-items" does not work for enhanced image scan configuration HOT 4
- aws s3 recursive copy errors out HOT 2
- Packaging of AWS::CloudFormation::Stackset resource using AWS CLI clouformation package command HOT 2
- sso_region is ignored when region differs in profile HOT 4
- aws ecr describe-image-scan-findings with no recommendations HOT 6
- sso-region incorrect HOT 1
- Alpine 3.20 release HOT 8
- cannot import name 'SSOTokenFetcher' from 'botocore.utils' (C:\Python\Python310\lib\site-packages\botocore\utils.py) HOT 1
- aws ec2 import-snapshot does not set the snapshot description
- Assume Role With Web Identity doesn't respect region HOT 3
- libpython3.11.so.1.0: pwritev2: symbol not found HOT 3
- Duplicate Example headings - sync HOT 1
- Segmentation Fault on ArmV8 with Crypto Extensions HOT 2
- Inaccurate AWS Bedrock User Guide HOT 3
- ec2 subcommand fails when given --tag-specifications HOT 1
- aws cli glue HOT 2
- ec2 modify-instance-attribute not working with binary file (fileb://) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cli.