Questions tagged [amazon-cloudwatch]

Amazon CloudWatch is a monitoring and management service for Amazon-hosted (AWS) cloud applications.

183 questions
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
  • 158
  • 1
  • 15
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…
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
  • 4
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…
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…
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…
1
vote
1 answer

AWS CloudWatch alerts for disk space metric broken after reboot

I have noticed that when creating an alarm for disk usage monitoring of an ebs volume mounted using nvme on the newer ec2 instance types that the "device" is sent as a metric dimension. The problem is the the nvme device name can change when the ec2…
JamieD
  • 201
  • 1
  • 4
  • 9
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…
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…
1
vote
1 answer

Is it possible to have a Cloudwatch alarm of the 'free memory' of a ElastiCache Redis cluster?

I'm looking to set up a cloudwatch alarm on a Redis cluster in ElastiCache rather than each individual node. Is this possible in cloudwatch? so far I've only found ways to set alarms on each individual node, however that isn't very scalable if in…
1
vote
1 answer

Grafana with cloudwatch at lightsail is possible?

I have an instance on amazon lightsail and I setup grafana with cloudwatch datasource. When I list the regions, I see a few options but i don't see us-east-b (Ohio) where my instance is running. Does cloudwatch only work with EC2? Anybody got to use…
1
vote
0 answers

How do I send logs from a VPC without an internet gateway/VPC endpoint to CloudWatch Logs?

I have a only one VPC which has an internet gateway. We'll call it the main VPC. The other VPCs are connected to the main VPC through a VPC peering connection. There is no public access to those VPCs. I'm not in a region where it is possible to…
the_drow
  • 312
  • 2
  • 4
  • 11
1
vote
0 answers

What are the best practices to configure CloudWatch alarms for a Tomcat webapp?

I have a Tomcat webapp deployed on Elastic Beanstalk for which I want to configure CloudWatch alarms, especially for when the web server is down. The Tomcat container uses Google OAuth2 for authentication and a custom MongoDB Realm for…
1
vote
2 answers

Track the number of EC2 instances created from an AMI in Cloudwatch

Is there a way to display a Cloudwatch metric showing the number of running EC2 instances built from a given AMI at a given time. I'm trying to track the size of a system that scales up and down over the course of the day, and I'd like to add a…
Eric Hydrick
  • 113
  • 7