Questions tagged [amazon-cloudwatch]

Amazon CloudWatch provides monitoring for AWS cloud resources and the applications customers run on AWS. Use this tag when asking about CW features such as metrics or alarms. Use amazon-cloudwatchlogs instead when asking about log groups, log streams, and metric filters.

From the web site:

Developers and system administrators can use it to collect and track metrics, gain insight, and react immediately to keep their applications and businesses running smoothly. Amazon CloudWatch monitors AWS resources such as Amazon EC2 and Amazon RDS DB instances, and can also monitor custom metrics generated by a customer’s applications and services.

Usage Guidance

  • Use this tag when asking about CW metrics or CW alarms, the CW API, etc.
  • Do not use this tag when asking only about log groups, log streams, metric filters, etc; use instead.
  • Use both if asking about both (for example, if asking about a CW Logs metric filter that aggregates in a CW custom metric that triggers a CW alarm)

Resources

4155 questions
12
votes
1 answer

AWS API Gateway $input variable in CloudWatch

Is it possible to log the $input variable (body variables) of a request to API Gateway from CloudWatch? The Log format of the Custom Access Logging doesn't seem to accept $input.body or any of the other $input functions: {"requestId":…
12
votes
2 answers

Can we set cloudwatch log retention days in /etc/awslogs/awslogs.conf

As we know we can put something like this in awslogs.conf file: [/var/log/mylog] file = /var/log/mylog.log log_group_name = mylog log_stream_name = mystream datetime_format = %Y-%m-%dT%H:%M:%S.%f What other parameters can we set in this file? I am…
12
votes
4 answers

Can a CloudWatch Event in one region trigger a Lambda in another region of AWS?

Can an AWS CloudWatch event in region us-east-1 trigger a lambda in us-west-2? Or do I have to deploy my lambda in both regions?
Subtubes
  • 15,851
  • 22
  • 70
  • 105
12
votes
2 answers

Change log format of Cloudwatch logs from Lambda (Node.js)

If I do console.log('message') in my code, it shows up in Cloudwatch as 2017-03-16T18:58:21.823Z 863c835c-0a7a-11e7-9140-e5018d6e5029 message. Is there any way to remove the automatic formatting so that Cloudwatch just displays the argument I pass…
12
votes
3 answers

Can I use AWS LightSail with AWS CloudWatch?

I've recently started testing out LightSail, but I would like to keep my logging centralized in CloudWatch, but cannot seem to find anything that would enable this. Interestingly LightSail instances do not appear in the EC2 Dashboard. I thought they…
12
votes
2 answers

Is it possible to embed AWS Cloudwatch dashboards in a webpage for internal company use?

I really like the AWS Cloudwatch dashboard feature, but it would be far more useful if I could increase visibility to it to let others in our company who might not know AWS. Is there any way of displaying it outside of the AWS website?
David
  • 1,648
  • 1
  • 16
  • 31
12
votes
2 answers

Can I plot multiple statistics for one metric on the same axis in a Cloudwatch Dashboard?

I want to look at the min, max, and average statistics for each time interval for a particular custom metric. In this case it's the size of each file my system is ingesting. Currently I can do this in a CloudWatch Dashboard with three separate…
Jay Carlton
  • 1,118
  • 1
  • 11
  • 27
12
votes
10 answers

Amazon EC2 AutoScaling CPUUtilization Alarm- INSUFFICIENT DATA

So I've been using Boto in Python to try and configure autoscaling based on CPUUtilization, more or less exactly as specified in this example: http://boto.readthedocs.org/en/latest/autoscale_tut.html However both alarms in CloudWatch just…
11
votes
1 answer

AWS - Difference between ELB_5XXs and HTTP_5XXs

In AWS Cloud watch, what is the difference between ELB_5xx and Http_5xx errors? And then there is also Backend_connection_errors.
peakit
  • 28,597
  • 27
  • 63
  • 80
11
votes
2 answers

How to trigger an AWS Event Rule when a S3 key with a specific suffix gets uploaded

I'm trying to create an AWS Event Rule that is only triggered when a file with a specific suffix is uploaded to an S3 bucket. { "source": [ "aws.s3" ], "detail-type": [ "AWS API Call via CloudTrail" ], "detail": { …
11
votes
1 answer

How to setup AWS CloudWatch's agent at Ubuntu to get (correct) custom metrics like cpu, memory and disk usage %

I'm running an AWS EC2 m5.large (a none burstable instance). I have setup one of AWS CloudWatch's default metrics (CPU %) + some custom metrics (memory + disk usage) in my dashboard. But when I compare the numbers CloudWatch report to me they are…
PabloDK
  • 2,181
  • 2
  • 19
  • 42
11
votes
3 answers

How to aggregate logs by field and then by bin in AWS CloudWatch Insights?

I'm trying to do a query that will first aggregate by field count and after by bin(1h) for example I would like to get the result like: # Date Field Count 1 2019-01-01T10:00:00.000Z A 123 2 2019-01-01T11:00:00.000Z A …
Orest
  • 6,548
  • 10
  • 54
  • 84
11
votes
2 answers

Enable SNS Delivery Status Logging configuration in cloudformation

I'm trying to set up an SNS topic with AWS CloudFormation. I'm able to get the topics and its SQS subscriptions up and running, but I couldn't find a way to specify the delivery status logging options (the ones that tell the topic to write its logs…
SebaGra
  • 2,801
  • 2
  • 33
  • 43
11
votes
3 answers

Where to find the logs for Lambda@Edge?

As one of the steps for the previous problem I've faced, I need to see the logs for some Lambda@Edge but I cannot find them anywhere. According to the documentation on Lambda@Edge: When you review CloudWatch log files or metrics when you're …
Mehran
  • 15,593
  • 27
  • 122
  • 221
11
votes
3 answers

Customize alarm message from AWS Cloudwatch

I got some alarm notifications from AWS Cloudwatch to my email but they are usually sent in a JSON format and the problem is that some of those emails are getting received by non-technical people in my company. I was wondering if that is possible to…
VaTo
  • 2,936
  • 7
  • 38
  • 77