How are we doing? Please help us improve AWS. Take our short survey

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

I would like to understand Elastic cache metrics in AWS

I would like to understand what all these metrics means in elastic cache metrics in AWS. Network Bytes In Network Bytes Out Network Packets In Network Packets Out Network Bandwidth In Allowance ...
Farhan's user avatar
  • 109
0 votes
0 answers
18 views

How Can I setup Cloudwatch Alarms on SNS Retry and DLQ Entry?

How can I setup a cloudwatch alarm which should trigger when a SNS topic message is being retried or when there is an entry in my dead letter queue? Both AWS console setup or cloudformation ...
Muhammad Muiz Ather's user avatar
0 votes
0 answers
9 views

AWS Dashboard query to find max,min AND count of all items above and below a threshold

Im currently trying to create a dashboard for me to track a very critical feature. I found out it has a xx percentile billed durations which are pretty significant. Im trying to find out how bad it is....
jurasans's user avatar
  • 151
0 votes
0 answers
10 views

AWS EMR - Using Cloudwatch Agent with step concurrency > 1

We are currently trying to take our EMR cluster logs and store them in Cloudwatch. I found this solution written by AWS where you basically just install the Cloudwatch Agent in the bootstrap step, but ...
Jake Boomgaarden's user avatar
0 votes
0 answers
11 views

How can I set up alarm in CloudWatch for SMSMonthToDateSpentUSD?

I'm trying to create an alarm on CloudWatch with SMSMonthToDateSpentUSD. However, when selecting the metric, this metric does not appear. I've tried several ways, but nothing happens. Does anyone know ...
Ednilson Amaral's user avatar
0 votes
0 answers
6 views

Elastic Beanstalk structured logs not parsed by CloudWatch Log Insights

I have an elastic beanstalk application that logs output to console in JSON format. However, in Log Insights, the fields are not discoverable. I noticed that CloudWatch seems to prefix every log line ...
Ben Zuill-Smith's user avatar
1 vote
1 answer
27 views

Testing S3 Replication Failure CloudWatch Alarm

Scenario: I have S3 replication set up so when a file lands in our active region bucket it is replicated to our passive region bucket. I would like to create a CloudWatch Alarm to raise an alert when ...
seba1685's user avatar
0 votes
0 answers
8 views

CloudWatch alarm in alarm state when it shouldn't be

We have an error alarm over API calls in Cloudwatch which tracks the sum ERROR, FAILURE and FAULT metrics for the API. Each of the metric statistic is SUM and the overall metric on which alarm is ...
Vegan Vegeta's user avatar
0 votes
1 answer
24 views

AWS Cloudwatch list-metrics in CDK

Is there is a way to automatically get all the dimensions of a metrics from CW in AWS CDK code? There is a cli command (aws cloudwatch list-metrics) and SDK API (list-metrics) too.. I am unable to ...
Scooby's user avatar
  • 635
0 votes
0 answers
5 views

How to know when a full DMS reload began via CloudWatch logs?

The AWS documentation describes a Task Status of "Starting", however searching that in the CloudWatch results in a lot of noise. Is there a targeted CloudWatch search which will retrieve ...
Paradox's user avatar
  • 4,517
0 votes
0 answers
20 views

Lambda Invocation User [duplicate]

i am trying to get a user who invokes a lambda function through the console using boto3. Tried using cloud watch and Event bridge to get the user and passing it to the function. Also tried getting the ...
azeez101's user avatar
0 votes
0 answers
11 views

Heartbeat for autoscaled service

I'm publishing custom metrics to cloudwatch as the heartbeat and I want to set an alarm to check for it every 1 hour. But how can I verify that I got the metrics from all the running instances(...
Santhosh's user avatar
0 votes
0 answers
48 views

Deletion of AWS resources status delayed

Using AWS Cloudwatch metrics stream integration with New Relic, some resources like EC2, ELB/ALB, and RDS deletion status is delayed for about 30 minutes to one hour. What is the cause of this delay? ...
Efox's user avatar
  • 681
0 votes
0 answers
10 views

AWS Cloudwatch Metric Math, Group Measuremnts and return Max for each group

I have a metric in AWS for my SQS "NumberOfMessagesReceived". I grab the Sample Count in a period of 1 min over a time frame of 3 hours. How can I group these measurements in groups of 5 min,...
QOps1981's user avatar
0 votes
1 answer
27 views

Trigger AWS Lambda function on DynamoDB record deletion by TTL

I have a DynamoDB table where TTL is enabled. I want to trigger a Lambda function whenever an record is deleted due to TTL. Here's what I have tried: 1. Adding DynamoDB as an AWS trigger is not ...
Tarkeshwar Kumar's user avatar
0 votes
0 answers
18 views

Django request logs: Can't get them to appear in Cloudwatch

I'm struggling to get simple GET requests to show up in Cloudwatch. It seems that all that's appearing are some WARNING and INFO log items, not GET requests. The GET requests ARE appearing in my ...
AlxVallejo's user avatar
  • 3,085
0 votes
0 answers
42 views

extract date from timestamp in log insights

I need to extract date from timestamp in AWS log insights. The timestamp is in this format: 2023-11-17T08:09:32.382-05:00 I tried |parse @timestamp /(?<date>\d{4}-\d{2}-\d{2})T(?<time>\d{2}...
Kailash kher's user avatar
-1 votes
0 answers
47 views

NoClassDefFoundError: software/amazon/awssdk/awscore/AwsClient after upgrading spring boot from 3.0.6 to 3.1.5 [duplicate]

I understand what the error says, my question is how do I fix it? I cannot seem to get maven to include the package I need. I have a common package that contains micrometer-registry-cloudwatch2 which ...
mal's user avatar
  • 3,090
0 votes
0 answers
5 views

Enabling Cloudwatch cross-account functionality via terraform

I'm looking forward enabling the cross-account cross-region account selector in cloudwatch via terraform. It is called "Enable account switching" in the console. I can't find any related ...
magnetik's user avatar
  • 4,361
-2 votes
0 answers
39 views

Cloudwatch Insight Parse with Regex and count

The actual CloudWatch log is much more unstructured and complex, but I have simplified it to a much more manageable format: [{"Name": "name1", "Non-Unique_ID": "abc&...
user21559858's user avatar
0 votes
0 answers
12 views

Cloudwatch Insight visualization

I have a log with api Names and requestIds and what I am trying to do is to visualize in cloud watch insight. If I run the following query it works to see the table, but not working to visualize. I ...
pralxx's user avatar
  • 67
0 votes
1 answer
51 views

How to resend emails via Amazon SES which didn't go because of rate limiting

I am using Amazon SES to send bulk emails via a cron job. My application is processing around 40-50 emails per second, however I am only allowed to send 22 emails via SES. If I send more than 22 ...
deathByChocolate's user avatar
0 votes
1 answer
40 views

AWS Cloudformation logs

I am using AWS CDK to subscribe Lambda function for Create events from S3. I receive this kind of error. Error: An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration ...
T_Hladiuk's user avatar
0 votes
0 answers
13 views

AWS cloudwatch metric filter

0 I want to filter out the some metrics from the cloud watch logs that are published from EC2 instance and i have already metric filter but when i am filtering out the keyword "Err" with ...
Apoorv Tyagi's user avatar
0 votes
0 answers
39 views

Visualization through CloudWatch Insights

I am logging automation results in CloudWatch logs. The format is like this: (XXXX-XXXX) Endpoint request body after transformations: { "executionDetails": { "executionId&...
Mahima's user avatar
  • 188
0 votes
0 answers
20 views

How to automatically create/schedule a lambda function through amplify.yml (without the CLI)?

Here is a summary of the context for the question: Using a NextJS application; Trying to run builds on AWS amplify; Application depends on a lambda function periodically calling some URLs; We have ...
Thiago Lemos's user avatar
0 votes
0 answers
34 views

Why isn't prometheus cloudwatch metrics exporter pod accessing my aws role and working?

I've been trying for a few days to get prometheus-cloudwatch-exporter to work in my eks cluster but i've exhuasted all debugging option. The pod doesn't write to my prometheus db. I've narrowed it ...
chetlo's user avatar
  • 3
0 votes
0 answers
9 views

Cloudwatch Metric to indicate flakyness/intermittent failures

I have an end to end testing suite that publishes AWS Cloudwatch metrics of all test runs. For example I have a namespace called "Test" under which we have dimensions "ClassName, ...
Kannan Ekanath's user avatar
0 votes
0 answers
8 views

How to create SNS topic based on CloudWatch Container Insights?

I know that we can use Cloud-Watch Container insights to collect and analyse metrics and logs from containers running on EKS or ECS. But is it possible to create a SNS topic and send it to user emails ...
SamDY's user avatar
  • 1
0 votes
0 answers
19 views

Using AWS Firehose to backup CloudWatch Logs to S3 for CI pipeline integration tests

I have AWS infrastructure that is managed by CloudFormation. I have a CI pipeline that spins up an envionment with all the bells and whistles of a customer-facing environment and runs integration ...
Jack Williams's user avatar
0 votes
0 answers
61 views

How to implement cold storage in OpenSearch without using OpenSearch lifecycle policy?

Currently my setup is that there is a subscription filter in CloudWatch connected to OpenSearch. This works well in getting my logs to OpenSearch. However I have to delete my logs after 2 weeks ...
Cornelius's user avatar
  • 351
-1 votes
0 answers
25 views

botocore\regions.py", line 277, in _endpoint_for_partition

I am running a python app on a EC2 windows instance in a venv. At reading the logggin.conf:logging.config.fileConfig(logging_conf_file) I receive this error: botocore\regions.py", line 277, in ...
Rares Eremia's user avatar
0 votes
1 answer
89 views

How can I manually configure the credentials for an CloudWatch agent on a non-EC2 Linux machine?

How can I manually configure the credentials for a CloudWatch agent installed on a Ubuntu server, not running in AWS? I downloaded this dep package for ubuntu and installed it on the server wget https:...
Philipp S.'s user avatar
0 votes
0 answers
18 views

How to extract valueform the loggroup so that it can be plotted in a graph widget in AWS Dashboard?

I want to get the sum of all the successes and sum of all the successes_after_retry which comes from the AWS loggroup and plot it in a grapgh widget in aws dashboard. I am not sure how to use the ...
sage poudel's user avatar
0 votes
0 answers
22 views

Create Alarm in terraform taking into account Category and Metrics Name

I'm using terraform to create different alarms in AWS. I have different metrics separated by Category and Metrics Name. The issue I have is I don't know if I can use Category field in terraform to ...
Allanh's user avatar
  • 475
0 votes
1 answer
39 views

Lambda InvalidParameterException while trying to filter Cloudwatch Logs

I am trying to create a Lambda funtion to search cloudwatch logs for a string. If there are 5 occurrences of that value within 10 minutes send an email or sns. I am not sure if the error is pointing ...
bluewater's user avatar
0 votes
0 answers
10 views

AWS Cloudwatch empirical cumulative distribution function

I've a lambda in my code that logs the average execution time of a particular snippet of code. Let's say that I'll be logging in Cloudwatch values like 180 ms, 179 ms, 180 ms, 3000 ms and so on. Is ...
SavioD's user avatar
  • 11
0 votes
0 answers
41 views

Incorrect application version found on all instances

I have a Node.js application (written in JavaScript) deployed on an Elastic Beanstalk environment using Codepipeline. Which means, on every new git push, Codepipeline deploys a new version of the ...
mayanxoni's user avatar
0 votes
0 answers
65 views

JSON body getting truncated inside aws lambda

I have been getting a weird error in AWS lambda, i have implemented a post function using lambda in nodejs, which recieves an API gateway event, and then does some stuff. Below is the body: { &...
Harit Saxena's user avatar
0 votes
1 answer
189 views

How to stream custom logs to cloudwatch from AL2023 instances

We use amazon-elastic-beanstalk to deploy part of our stack. We have just migrated our base platform from PHP 7.4 which uses Amazon Linux 2, to PHP 8.2 which uses Amazon Linux 2023. Default system ...
Pau Seglar's user avatar
1 vote
0 answers
25 views

Why does SecretManager not have service role wheareas it has interactions with many services?

I'm working on AWS service role. And i was wondering why secretsmanager doesn't have service role... I thought it was the case, for instance secretsmanager has interaction with lambda, kms AWS config,...
Zokulko's user avatar
  • 219
-1 votes
1 answer
31 views

Boto3 - Get when a Lambda function was last ran or executed

I want to know when a Lambda function was last ran (in past 6 days, for example). I wrote the below boto3 code but it is not giving me any data points. Here's the code: metric = cw_client....
Sarat Kota's user avatar
0 votes
0 answers
23 views

GO | opentelemetry | setting xray client name

Sending traces from Go / EKS based microservices via opentelemetry to ADOT collector. Im getting the traces fine but all the services are named "client" in the xray service map and I don't ...
ethrbunny's user avatar
  • 10.4k
0 votes
0 answers
46 views

AWS MWAA Airflow is failing for only some tasks as "Could not read remote logs from log_group"

I have a big Airflow dag in AWS which is failing only for some tasks, other tasks are getting completed and showing logs. *** Reading remote log from Cloudwatch log_group: airflow-a****l-Task ...
Afzal Abdul Azeez's user avatar
0 votes
1 answer
56 views

How to stream Rails app STDOUT to Cloudwatch?

With its recent version Rails by default doesn't write to production.log but to the STDOUT only. Before, I used awslogs.conf to send log/production.log file to the Cloudwatch group. How can I do the ...
user1929618's user avatar
0 votes
0 answers
44 views

Aws cloudwatch contributor insights filtering wildcards

Filtering logs in cloudwatch contributor insights StartsWith filter should support wildcards(as UI suggests), Star wildcard like *usergroup did not work. And when I have special characters like slash ...
kokoska69's user avatar
1 vote
0 answers
77 views

AWS RDS ReplicaLag metric missing?

We have two mariadb instances running that we are trying to monitor replication status of. When I look in cloudwatch I am not seeing the metric for ReplicaLag anywhere. Is it not available for certain ...
mttrthc's user avatar
  • 11
0 votes
0 answers
20 views

Scaling Policy not executed because its effect does not override in-progress scaling actions

I have created auto scaling group with launch template and scaling policy which scale out when cpu utilization is over 50 in cloud watch alarm, every time cpu utilization goes above 50 in cloud watch ...
user3172359's user avatar
1 vote
0 answers
22 views

when object is deleted from s3 bucket and analyze in Cloudwatch log insight?

When i delete object and get object in s3 bucket so that i got in "GetObject" "requestParameters.key" object name and their path similarly when i "DeleteObjects" in s3 ...
amol mandwale's user avatar
0 votes
0 answers
36 views

Optimal Approaches to AWS Glue ETL Job Monitoring with CloudWatch Metrics

I've a glue ETL job which takes files from one folder in S3 and moves them to another S3 folder with partitioning the data by date. I'm looking for a way to monitor the glue job using the cloudwatch ...
Alex Batt's user avatar

1
2 3 4 5
85