Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Cloudwatch dashboard widget: group by calendar day

I have a simple metric (no dimension, unit: count), with usually one data point per day, sometimes more. I want to know the sum of the metric per day. To do this, I have a very basic line widget: ...
Guillaume's user avatar
  • 3,081
0 votes
0 answers
46 views

Can a CloudWatch alarm fire on one condition and resolve only when another condition is met?

I am trying to create a CloudWatch alarm with the following behavior: Fire condition(Exit Alarm): Trigger the alarm when failure_count > Threshold(for X mins). ---> Triggers Pagerduty incident ...
Temp's user avatar
  • 1
0 votes
1 answer
38 views

What is the correct IAM resource for allowing querying on CloudWatch metrics?

I have a nodejs service that queries CloudWatch metrics. Specifically, the AWS/ES namespace. For development I use a poweruser, so the access is straightforward and it works. But in deployed envs I ...
Milkncookiez's user avatar
  • 7,489
-1 votes
1 answer
86 views

AWS Cloudwatch logs search automatically [closed]

Is there a way to search AWS cloudwatch logs automatically thru a script? My requirement is, i've a 20 error patterns need to check logs every one hour once. Currently doing it manually. Can I ...
RK.'s user avatar
  • 611
0 votes
1 answer
51 views

Fargate Cloudwatch CPU Utilisation differs from docker stats

Looking at the CPUUtilized Cloudwatch metric for my Fargate service, it's showing max cpu units used as 1040 over the past 4 weeks, using a sampling period of 1 minute. I have 4 vCPUs provisioned to ...
Seanf123's user avatar
3 votes
0 answers
53 views

Use results of one log group query to query another log group

is there a way the results of Cloudwatch query can be used to parameterise the filter condition of a separate query? So consider I have a query like so to grab some correlationIds out of one log group ...
mindparse's user avatar
  • 7,595
0 votes
0 answers
81 views

CloudWatch RUM | Log Sending Issue from angular application

I am sending data to cloud watch Rum service from my angular application, only for few times it sends data after that it does not send any data, also does not call the dataplan api, I tired to setup ...
Asif's user avatar
  • 73
0 votes
0 answers
55 views

AWS policy: conditionally show resources (RDS, CodePipeline, CloudWatch) using tags

I'm writing a group policy for AWS console access. I want the user to see an RDS (or CodePipeline or CloudWatch) resource only if it has a specific tag. I read the action type for RDS and doesn't seem ...
unexpectedly's user avatar
0 votes
1 answer
142 views

Deploying Python AWS Synthetics Canary via S3

I have a frustrating problem. I must be missing something obvious. This is my first canary, and I can't find any examples of using Python scripting for this via S3. I am uploading a Python script to ...
Dustin Oprea's user avatar
  • 10.3k
0 votes
1 answer
42 views

cloudwatch_exporter and CWAgent metrics

My cloudwatch_exporter happily exports metrics in AWS/* namespaces, but seems to ignore metrics in the CWAgent namespace. From looking through bug reports, it seems like this is a known but ignored ...
Matthew Bachmann's user avatar
0 votes
0 answers
22 views

AWS Detailed Metrics not showing individual ResourcePaths

I am trying to get individual Latency metrics for the rest paths in my API Gateway. I have turned on Detailed Metrics in order to do this, and was expecting to be able to break this down by method (...
Richard Mapes's user avatar
0 votes
1 answer
77 views

How to use CloudWatch Contributor Insights in DynamoDB if my organization only allows for it to be enabled using Machine Roles

Our team has been running into challenges with hot partitions and we have determined that Contributor Insights would be a great tool to use for future hot partitioning issues. The problem is we do no ...
Frederick Haug's user avatar
0 votes
0 answers
80 views

AWS Application Signals - Operation discovery

We are attempting to setup AWS Application Signals. We are using the AWS XRay .NET SDK to create the traces i.e. AWSXRayASPNET.RegisterXRay(this, "MyApi"). We have enabled Transaction ...
Tom's user avatar
  • 149
0 votes
0 answers
104 views

AWS XRay Transaction Search Operation name - ASP.NET WebAPI

I am attempting to get Transaction Search in AWS CloudWatch up and running for our API (ASP.NET WebAPI). I'm using the .NET AWS SDK and have XRay configured as follows: public class WebApiApplication :...
Tom's user avatar
  • 149
0 votes
0 answers
26 views

How do I use AWS FIS with a Cloudwatch Canary

How can I use AWS Fault Injection Service (FIS) to disrupt an AWS Cloudwatch Synthetic Canary? It looks like I can use FIS with lambda functions, but when I link a test FIS to my canary's lambda i get ...
wsa225's user avatar
  • 37
0 votes
1 answer
59 views

Multiple logs merge into one "mega-log" in CloudWatch

I have a SpringBoot service running in ECS with the awslogs driver. It is a pretty standard REST API. For each incoming request, it produces one log with some proprietary info about the request. ...
potato_programmer's user avatar
0 votes
0 answers
74 views

Pagination issue when multiple CloudWatch log events share the same timestamp

I'm building an interface to display log events from a specific log stream within a CloudWatch log group. My current implementation uses infinite scroll to paginate the results, relying on the ...
Nguyen Quoc Bao's user avatar
0 votes
1 answer
39 views

Having trouble triggering Cloudwatch metrics from Lambda using CDK

I have created a CDK Stack to track errors occurring in my critical Lambda functions. Slimmed down to a minimal example, the CDK stack is something like this: // Stack // ----- { ... const ...
monkey's user avatar
  • 1,733
1 vote
0 answers
33 views

SEARCH sintaxis for AWS Boto3 client (Python) query expression

i'm trying to get information for NetworkIn and NetworkOut metrics with boto3 client for python, using the get_metric_data method. I am using the boto3 library and the client like this: Client = boto3....
FIM's user avatar
  • 11
0 votes
1 answer
128 views

CloudWatch "ErrorCount" metric in "AWS/Logs" namespace produces events that can not be seen

When I use CloudWatch > Metrics > All metrics > Browse > Logs > Account Metrics > ErrorCount, I see events that were produced outside of anything I can control. I am sure, since this ...
Anton Plebanovich's user avatar
0 votes
0 answers
36 views

Accessing more detailed logs on Athena by using cloud watch

I am using the root account on my AWS account, and I am facing some odd issues when trying to query a table in an s3 table buckets. I have attached a snapshot showing below error: I need to know more ...
Mah_Bar's user avatar
  • 39
0 votes
0 answers
38 views

Parse JSON from Airflow Cloudwatch logs using filter pattern to create metric filter

I have the following log in Cloudwatch that I am trying to create a metric filter off of. [2025-04-18, 19:34:01 UTC] {{python_script.py:190}} INFO - {"MetricName": "Volume", "...
Yoni Levine's user avatar
0 votes
1 answer
89 views

Cloudwatch Periods, Evaluation Periods and Datapoints to alarm

I am really struggling to wrap my head around cloudwatch alarms. In particular threshold, period, evaluation_periods and datapoints to alarm. My use case is when there has been no SQS message in the ...
user7692855's user avatar
  • 1,472
1 vote
1 answer
166 views

How to filter for a list on WHERE clause of Cloudwatch Metrics Insights and Grafana?

Situation: I have a cluster on ECS with many services, I want to create an alert on grafana to only fire when a certain condition is met on a certain list of services or only services that starts with ...
Eduardo Fellipe's user avatar
0 votes
1 answer
70 views

Difference of behavior between JVM and Native builds in Quarkus

I'm trying to log CloudWatch metrics to stdout. I setup the relevant code, and when testing in dev, the logs are as expected. Here is the relevant code - public class MetricsService { ...
Karan Ahlawat's user avatar
1 vote
0 answers
80 views

How to get query parameter info in API gateway Log

The log format in AWS Api Gateway is set to { "requestTime": "$context.requestTime", "requestId": "$context.requestId", "httpMethod": &...
Tanu's user avatar
  • 1,712
0 votes
0 answers
26 views

PutSubscriptionFilter Request failing 'Cross-account lambda invocation passing is not allowed' despite Lambda & Log Group being in the same account

I have a lambda function (call it Lambda A) that is currently deployed in an AWS account I consider "dev" and "test". I also have this lambda function deployed in my "prod&...
Creedocide's user avatar
0 votes
0 answers
254 views

Error creating EventBridge Target for AWS Glue Job: ValidationException due to incorrect ARN format

I've deployed everything except for the following pieces: # Create a CloudWatch Event Rule to schedule the Glue Job resource "aws_cloudwatch_event_rule" "glue_job_schedule_rule" { ...
Tanya's user avatar
  • 1
0 votes
1 answer
785 views

Where can I see AWS Glue ETL job print statements?

Problem Where do you find print statements from your Glue ETL jobs? You guys, this is killing me. Why is this not the easiest thing to find? Situation I am trying to look at properties of my tables ...
d-gg's user avatar
  • 864
0 votes
1 answer
241 views

Cloudwatch: create log stream using wildcard name of filepath

We have a sample cloudwatch config like below for our windows-based AWS cloud EC2 instance: "logs": { "logs_collected": { "files": { "...
user3120554's user avatar
0 votes
1 answer
415 views

How to update CloudWatch Observability add-on's configuration in Amazon EKS

I'm trying to update the CloudWatch Observability add-on's configuration in Amazon EKS, to be able to collect metrics at a higher interval than the default of 1 minute. From the AWS docs on Manually ...
Faheel's user avatar
  • 2,563
0 votes
1 answer
62 views

Enable "Include sub domains" in an AWS CloudWatch RUM monitor using CDK?

CloudWatch RUM in the AWS UI console has a field for "Application domain" and a separate checkbox for "Include sub domains". However, there is no corresponding boolean field in ...
Antrikshy's user avatar
  • 3,138
1 vote
0 answers
35 views

increase the time resolution of cloudwatch in sagemaker

I am trying to increase the time resolution of cloudwatch in the sagemaker script I am using to train a model. I am trying to get it under a minute. I know that the high resolution for cloudwatch is a ...
Nikita Belooussov's user avatar
0 votes
0 answers
95 views

Want to run CloudWatch Agent not on EC2

Can't run CloudWatch agent on my server (not EC2). Kinda strange since CloudWatch Agent can be installed not on EC2. This is my command: sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-...
Igor's user avatar
  • 15
-1 votes
1 answer
232 views

What would be the correct way to create aws cloudwatch alarms with multiple metrics and multiple math expressions using terraform?

I am trying to create a cloudwatch alarm for Throughput utilization (%) for an AWS EFS using terraform. When using console to do the same, I found that Throughput utilization (%) is a combination of ...
striker's user avatar
0 votes
1 answer
124 views

How to add custom metrics to pre existing cloudwatch

I want to iterate through a list of ec2 instances, then for each instance add/append certain custom metrics of my choosing to their existing configurations. Problem is I don't know which config files ...
tantan69's user avatar
0 votes
0 answers
30 views

How, using statsd, record the number of events processed

I would like to record number of events processed by multiple instances of the same job, combined. I tried using GaugeDelta for +1 and -1, but it ends up with an error of negative value, which is ...
Michał Piotr Stankiewicz's user avatar
0 votes
1 answer
65 views

Use Cloudshell to get instances in specific AZ

I am trying to automate CloudWatch dashboard creation. As of right now, when I move from one account to another, I have to do some copy and replace of instance ID in order for the cloudshell command ...
ShellGames's user avatar
1 vote
0 answers
35 views

statsd used with GaugeDelta for +1 and -1 results in negative value instead of 0

I am using "github.com/cactus/go-statsd-client/statsd" library to post stats I create a client with NewBufferedClient I initialize metric with client.Gauge("metric_name", 0, 1) In ...
Michał Piotr Stankiewicz's user avatar
-1 votes
1 answer
37 views

How to Log Lambda Authorizer Requests to a Separate CloudWatch Log Group Based on API Gateway Stage?

How can I log Lambda authorizer requests to a separate CloudWatch log group based on the API Gateway stage? My function is acting as a Lambda authorizer for the API i tried this def ...
ashish rajoria's user avatar
0 votes
0 answers
25 views

How to write to multiple CloudWatchLogs log groups using the Lambda function

I have a C# application running on lambda and I need to write to multiple CloudWatch log groups. Using Nlog and configuring it in code we were able to save to another log group, but in an initial ...
henrique's user avatar
1 vote
0 answers
33 views

CustomDataIdentifier AWS-Loggroup

I got the following lambda cdk-code { functionName: 'myCustomDataProtIdentLambda', entry: 'lambdas/sqs/customSub.ts', .. logGroup: new logGroup(this, '...
fuwa07's user avatar
  • 93
0 votes
1 answer
24 views

hit multiple endpoint from one python lambda using EventBridge(cloudwatch)

I have multiple endpoints that I need to hit in one python lambda , for example Endpoint A /test/ every 30 mins Endpoint B /service every 5 mins Endpoint C /target/ evere 3 hours The python code to ...
vljc2004's user avatar
  • 167
0 votes
0 answers
134 views

AWs CloudWatch Agent on On Premise Windows can't collect logs

I tried setting up a CloudWatch Agent on my on-premise Windows 10 Workstation - Since I want to collect some logs from it directly into CW. The Metrics segment of the agent works just fine - I can see ...
doralm's user avatar
  • 3
0 votes
0 answers
56 views

Logger connected to CloudWatch doesn't work when trying to send logs using localstack inside a Dagster unit test

I've been trying to send logs to a localstack Docker container inside a Dagster Unit/Integration Test, with the following configurations: For the custom logger: @logger( { "name":...
Jesus Fragoso Jimenez's user avatar
0 votes
1 answer
201 views

How do I display a 0 in a CloudWatch query stats section for a percent calculation

I am trying to do a simple percent display for a page that allows files to be uploaded. I have a log for the start of the file upload and a log for the end of the file upload and I wanted to build a ...
Joshua Little's user avatar
0 votes
1 answer
225 views

How to create a CloudWatch alarm for an EventBridge Pipe's stopped state in AWS?

I am working with AWS EventBridge Pipes using Terraform, and I want to create a CloudWatch alarm that notifies me whenever a pipe transitions to the Stopped state. However, I encountered an issue ...
Vicky's user avatar
  • 13
0 votes
1 answer
533 views

Unnesting a comma seperated string in AWS cloudwatch insights query

I have a log message like this {"level":"INFO","location":"log_missing_items:xxx","message":"Missing_Items: Item1, Item2, Item3 ...","...
KVM's user avatar
  • 139
0 votes
1 answer
219 views

CloudWatch dashboard - show line or stacked area with the last metric value

CloudWatch dashboard - show line or stacked area with the last metric value My server reports the latest value when it changes. In the example we see that the server reported 5, then 4, and then 6 (...
Maayan Hope's user avatar
  • 1,621
0 votes
1 answer
138 views

Using cloudwatch and slack transports for winston under Lambda environment

im running a service under Lambda containers as its easier for me to have a way to easily run it as standalone server if needed because its the same Docker image. For lambda I include public.ecr.aws/...
Nenad's user avatar
  • 281

1
2 3 4 5
89