Amazon CloudWatch is a monitoring and management service for Amazon-hosted (AWS) cloud applications.
Questions tagged [amazon-cloudwatch]
191 questions
2
votes
4 answers
How to post logs to Cloudwatch with CLI?
Im tring to create a bash script that checks the status of the website, Im using this command:
This one to create the logstream
aws logs create-log-stream --log-group-name "WebsiteStatusMessage" --log-stream-name $timestamp
This other one to post…

sysalam0
- 71
- 1
- 5
2
votes
1 answer
How can I get AWS cloudwatch logs into GCP stack driver logs viewer?
I have set up the "connector account" thing in Stackdriver, and I'm able to see metrics in GCP, which is super cool! I would now like to also get all cloudwatch logs into google's logging tool. Can this be done with the connector account as well? Or…

Askdesigners
- 131
- 3
2
votes
1 answer
AWS CloudWatch metrics - are there convergence delays?
We are in the process of setting up aws cloudwatch exporter(https://github.com/prometheus/cloudwatch_exporter) to export cloudwatch metrics to our prometheus server. When reading through the documentation, I see a note about convergence of aws…

johnzac92
- 21
- 1
1
vote
0 answers
AWS lambda add-permission --source-arn weirdness
I'm following this guide on setting up a lambda function to subcribe to log events. In step 5 you need to "Grant CloudWatch Logs the permission to execute your function" like this:
aws lambda add-permission \
--function-name "helloworld" \
…

spinkus
- 188
- 2
- 16
1
vote
1 answer
Can I put custom events in the default event bus in AWS EventBridge?
Can I call PutEvents on the default event bus of AWS EventBridge to push custom events?
I am trying at the moment but it doesn't seem to do anything (however I do not get an error). After reading a bit, I am doubting whether it is possible to put…

Matthieu Napoli
- 421
- 1
- 5
- 11
1
vote
2 answers
Create / Destroy EC2 instances for ECS tasks
I have various Fargate tasks. They work fine. I then have a few additional tasks that require more disc space than silly old Fargate will allow. These have to run on EC2 instances that I have assigned to their respective cluster.
I trigger these…

Ben Smith
- 157
- 5
1
vote
1 answer
AWS Cloudwatch log filter on stream name
I'm trying to setup a lambda function to process logs from an AWS instance. To do that I'm configuring a CloudWatch Logs "trigger" as input to my Lambda function. The relevant configuration UI on AWS console is shown in the screen shot below for…

spinkus
- 188
- 2
- 16
1
vote
2 answers
How to auto-terminate EC2 instances after 24 hours?
An auto-scaling group launches EC2 instances and it appears that instances that run roughly >24 hours begin to degrade in performance. The longest one was running for 3 days until I manually terminated it. That seems unusually long in an…

Manuel
- 225
- 3
- 13
1
vote
1 answer
SQS Cloudwatch Metrics: difference between zero and no-data point at all?
Sometimes when looking at the AWS SQS Cloudwatch Metrics graphs like NumberOfMessagesSent, the graph plotted will show an actual data point at zero, and other times it won't show anything at all.
What is the difference between these two measures?

matt freake
- 113
- 5
1
vote
1 answer
Lambda cloudwatch trigger in Terraform for Logzio
I can create a Cloudwatch Log trigger in the Designer section of the Lambda dashboard by following these instructions. Everything works as expected. But, I'm having a very difficult time setting these up in Terraform.
I'm trying to subscribe the…

aberg
- 11
- 1
- 5
1
vote
0 answers
AWS Cron Expression - all days @ 11pm but except last day of the month
I want to write a expression which I want to execute everyday @ 11pm but except last day of the months.
Almost I tried all website I dont get answer to this - saying except last day of the month, it can be 1-30 or 1-29 or 1-28
I tried this…

Kannan Samynathan
- 11
- 2
1
vote
1 answer
Trigger external API Calls with Cloudwatch Events
I am looking for a solution to make a POST Request to an External API when the state of an EC2 Instance changes. I want to use Cloudwatch so that I can pass the InstanceId to the API with the Input Transformer option.
Is there a way to do this…

DTD
- 51
- 8
1
vote
1 answer
Amazon CloudWatch Agent crashes and restarts on Windows
After installing the Amazon CloudWatch Agent on Windows and starting the service, it repeatedly crashes and restarts.
In the Windows Event Log the following events occur with the crash:
Event ID 7031
Error
The Amazon CloudWatch Agent service…

Mark Wragg
- 236
- 2
- 12
1
vote
0 answers
How to get s3 bucket policy update in cloud trail logs
Hi I have created a bucket and enabled cloud trail also including s3 object level api logging.
Now when I create some s3 ACL via UI the I get the logs in cloud trail but when I Create the same ACL via json Bucket->permissions -> bucket policy (And…

Naggappan Ramukannan
- 187
- 1
- 11
1
vote
1 answer
Is there a way to name an EBS snapshot created with a Cloudwatch Rule?
Is there a way to name an EBS snapshot created with a Cloudwatch Rule?
For instance, I have a cron-like rule:
31 10 ? * 3,6 * vol-0e743fcfd2f53198a
Which will create a snapshot of the data volume, every Tue and Fri on 10:31 UTC.
However, the…

boardrider
- 949
- 2
- 18
- 29