Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-cloudwatch]

The tag has no usage guidance.

0
votes
1answer
41 views

(CRON) info (No MTA installed, discarding output)j though there is no cron job is scheduled

In my /var/log/syslog file I can see the above log is entered in every minute. Though I have checked my crontab and found nothing configured there to run. My /var/log/syslog is as follows: And the ...
0
votes
1answer
28 views

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 ...
2
votes
0answers
20 views

How to log AWS SES event details

For some reason I'm having trouble connecting the dots on how to do what seems pretty simple. How do I log all e-mail sent through the AWS Simple Email Service with specific message details? That ...
0
votes
0answers
67 views

Trouble with Cloudwatch Event Targeting SSM Automation

I want to be able to shut down any ec2 instances with a certain tag, triggered by a scheduled cloudwatch event. However, when i choose SSM Automation as a target and choose the StopEC2Instance ...
2
votes
1answer
144 views

CodeBuild behind VPC can't access CloudWatch endpoint

I have a CodeBuild project that is setup to use a VPC so it can access RDS. I setup a "VPC Endpoint" for com.amazonaws.us-east-1.s3 so CodeBuild can access CodePipeline output artifacts. This is ...
0
votes
1answer
118 views

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 ...
3
votes
1answer
83 views

what is “period” column represent in AWS cloudwatch metric graph?

I created the number metric graph for lambda function like latency, the total number of invocation etc. I also created a custom metric filter which will give me errors and warnings count in logs for ...
0
votes
1answer
95 views

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 ...
3
votes
2answers
39 views

Cloudwatch logs - audit user access

I have a list of users in .passwd and access_log being uploaded to Cloudwatch. I need to make weekly report who from this list did access to server. Is there any way to automate this rather than ...
0
votes
1answer
188 views

Send Kube logs to Cloudwatch using fluentd

My cluster is on AWS and I've used kops to build by cluster. I'm trying to send the kubernetes logs to AWS Cloud-watch using fluentd. I was able to stand-up the fluentd pods. I am seeing the below ...
3
votes
1answer
205 views

AWS cloudwatch not triggering lambda function

I am trying to create a scheduling system for my EC2 instances using lambda functions to start/shutdown the instances and Cloudwatch to trigger and schedule them. The problem is Cloudwatch, not ...
1
vote
0answers
38 views

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 ...
0
votes
0answers
80 views

Modify datapoints value in cloudwatch alarm with cloudformation

The number of datapoints that must be breaching to trigger the alarm can be configured and its documented in the PutMetricAlarm API reference but it's missing from the CloudFormation docs. I tried to ...
1
vote
1answer
706 views

Audit logs for RDS MySQL not appearing in CloudWatch

I've been trying to get a MySQL instance on Amazon's RDS to send logs to CloudWatch: in particular, both error logs and audit logs. Error logs work fine, they're appearing in CloudWatch, no issues at ...
0
votes
1answer
17 views

Hot to create a 'no http response' alarm in AWS CloudWatch?

I'm using Amazon CloudWatch in order to configure some alarms on my EC2 Intance. My main concern is the system downtime. I configure a Status Check for the server. However it seems that the 'status ...
1
vote
1answer
89 views

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, ...
1
vote
1answer
165 views

Cloudwatch event for changes in ALB target groups

I have a lambda function that copies the targets (IP addresses in this case) from one target group to another (deleting any in the second target group that don't appear in the first). This gives us 2 ...
1
vote
1answer
209 views

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 ...
0
votes
1answer
153 views

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 ...
0
votes
0answers
88 views

How to refer Elastic beanstalk resources in Alarm

Below is the code snippet which I am using to create an elastic bean stalk. I have deleted some part of the code but I have ran this code and beanstalk is created. BeanStalkApplciation: Type: '...
0
votes
0answers
40 views

Stream CloudWatch log of an ECS task to console

There is log entries in the logs section of a container: This log is not refreshing in real time and the space there is pretty limited. I would like to stream it to the Terminal console so it works ...
1
vote
0answers
152 views

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. ...
1
vote
0answers
314 views

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 ...
0
votes
1answer
154 views

AWS CloudWatch Events trigger SNS on STS role assuming for cross account

I have a cross-account architecture and I'm setting up a CloudWatch event for the STS role assuming into another account. I have CloudTrail enabled on the account, the logs from CloudTrail are stored ...
0
votes
2answers
120 views

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 ...
0
votes
0answers
94 views

Configure CloudWatch stream name using ECS Container Name

I'm using awslogs for Docker containers within ECS, and I would like to use the image name as the stream name in CloudWatch. However, I'm not sure where this logic should be placed. /etc/docker/...
0
votes
0answers
14 views

Cloudwatch AND/IF/OR statement

I'm looking for a way to alert if all of the consumers for particular a SQS queue is down over an interval of time. The thought I had was to compare messages available to messages deleted. For example,...
1
vote
2answers
2k views

How to use Input Transformer for CloudWatch Rule target SSM Run Command - AWS-RunShellScript

I am attempting to execute a script on one of our instances whenever a container's state changes. I am creating a target SSM Run Command with the document being AWS-RunShellScript (Linux) I would ...
0
votes
0answers
227 views

Cloudwatch rule for instances with tag?

I would like to have an Instance State-Change rule created in cloudwatch, but I only want it to trigger for instances with a particular tag. Ultimately, I want an SSM command document to fire off. I ...
1
vote
1answer
128 views

Creating a CloudWatch Scheduled Event with arbitrary data in the `detail` field

I'd like to run a Lambda task on a fixed schedule, with some configuration passed into it by the CloudWatch Scheduled Event that triggers the task. Looking at the documentation here, I can see that ...
0
votes
1answer
579 views

Missing metrics in CloudWatch/Grafana

I'm setting up some dashboards in Grafana using data from AWS CloudWatch for an EB application. It works fine for getting EnvironmentHealth, however for anything else I get "No data point". I have ...
1
vote
0answers
192 views

How do I combine multiple SQS metrics with Lambda?

I have SQS monitoring for some services we have. We have two metrics that I'm looking to combine. "Receives" and "Empty Receives". Is it possible to use something like amazon lambda to create an ...
0
votes
1answer
248 views

cloudwatch missing metrics

I'm probably missing something extremely obvious but I only see 6 metrics on my cloudwatch -- 4 EC2 (all about CPU Credits) and 2 for S3 (bucket size and # of objects). It feels like there should be ....
0
votes
1answer
44 views

How to setup AWS cloud watch for RAM and EBS capacity usages?

I wonder, how to setup AWS cloud watch for RAM and EBS capacity usages? As I have not seen any metrics for the same. I have seen some python scripts which need to setup as CRON, is that safe in ...
0
votes
2answers
1k views

How to configure Cloudwatch events to trigger on IAM API calls?

So I'm having trouble setting up Cloudwatch events to trigger a Lambda function. In the current scenario I want to trigger a Lambda when anyone/thing changes anything in IAM. Currently I have a ...
0
votes
0answers
50 views

2017-10-09 AWS Cloudwatch metrics older than 63 days are missing

Is anyone else experiencing this? AWS Cloudwatch Metrics are supposed to be saved for 15 months. 1 minute metrics are rolled up into 5 minute metrics after 2 weeks, and 5 minute metrics are rolled up ...
1
vote
2answers
3k views

syslog direct to AWS cloudwatch?

Is there a way to push POSIX syslog records directly to AWS cloudwatch? I know Cloudwatch can be rigged to look at the /var/log/messages files and similar. But is there a way -- a sylog.conf(5) ...
0
votes
1answer
578 views

How to set different destination ('region') of an aws cloudwatch logging agent inside a docker image?

Here is my dockerfile. FROM 796678920264.dkr.ecr.us-west-1.amazonaws.com/myproject/base:latest COPY /* / RUN python awslogs-agent-setup.py --non-interactive -c /aws-log.myservice.cfg --region us-...
1
vote
0answers
99 views

cloudwatch log to kinesis and s3

I want to use my cloudwatch logs which are basically website access logs. Need to use these cloudwatch logs for data analytics with kinesis stream since firehose and analytics service is not ...
2
votes
2answers
1k views

Amazon AWS Elastic Beanstalk EBS Logs To Cloudwatch (Multi Docker Env)

I would like to view all my logs in cloudwatch. I currently have a multi-docker Elastic beanstalk environment. I have selected for the logs to push to cloudwatch by going to Elastic Beanstalk > ...
1
vote
1answer
920 views

All requests go into ELB surge queue

A problem: It seems like every single request to our application ends up in ELB surge queue Example of a surge queue chart: We have a classic ELB on AWS with multiple EC2 boxes behind it. ELB ...
1
vote
1answer
680 views

Monitoring Memory usage of EC2 Windows Server- There is no “CloudWatch log” option in EC2Config anymore

I'm gonna monitor Memory usage of an EC2 windows server R2 2012. I have installed the latest version of EC2Config which is 4.9.2061 by downloading it from here: https://docs.aws.amazon.com/AWSEC2/...
2
votes
0answers
37 views

Service Availability monitoring on AWS

Is it possible to display Service Availability (%) for metric i have on AWS, I am able to get graphs, but can't get availability for period selected.
1
vote
1answer
425 views

What do cloudwatch s3 metrics count as an object?

I was recently using the metrics under the management tab in the aws s3 console and notices that for a few of my buckets the NumberOfObjects (count / day) graph seemed to be way off. I had roughly 50 ...
1
vote
1answer
365 views

How to use CloudWatch or Stackdriver to verify cron job ran?

One particular use case applying to this question is that we have some resources in AWS EC2 and Google Cloud Compute with a cron job to do a nightly disk snapshot. Is there a way to use Stackdriver ...
0
votes
1answer
24 views

AWS Cloudwatch unable to retrieve Billing data

I was setting up the cloudwatch to monitor the Billing information. However, after the preference option is enabled, no data is retrieved and displayed on CloudWatch. What has been done: the "...
0
votes
2answers
261 views

How to send alert for AWS EBS impaired volume?

What is the best method to send an alert via SNS for an AWS EBS volume that has been marked as "impaired"? Within Console > EC2, under Instances > Status Check tab, you can set a CloudWatch alert. ...
0
votes
2answers
595 views

AWS Alarm email being received every 5 minutes

I set up an alarm to alert me if my AWS instance sends more than 100MB within an hour. Traffic last night caused the threshold to be crossed. But instead of getting one notification, my inbox got ...
0
votes
0answers
60 views

route53 healthcheck always healthy

I am trying to use Route53 for automatic failover. The problem I am having is that even though the CloudWatch alarm I am using in the health check is in an Alarm state, the health check is still ...
5
votes
2answers
3k views

What is the equivalent of 'sudo yum install -y awslogs' for apt-get?

According to aws documentation, this is the command to install the aws-log agent: sudo yum install -y awslogs However since I am using ubuntu, I have to use apt-get. But the aws-log package is not ...