amazon-cloudwatchlogs Questions

3

Solved

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 ...

2

I use AWS CloudWatch log agent to push my application log to AWS Cloudwatch. In the cloudwatchLogs config file inside my EC2 instance, I have this entry: [/scripts/application] datetime_format = ...

4

I'm following the instructions here https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html but it's not working as i'm expecting it to. I currently have the followi...

3

Solved

I have a log file which contains playerId values, some players have multiple entries in the file. I want to get an exact distinct count of to unique players, regardless of if they have 1 or multipl...

3

We have recently huge cost increasing (x8 times) on CloudWatch GetMetricData operation. We have a lot of log groups and different teams on the same Aws Account. Do you know how could we find out th...

3

Solved

When I configure DNS Query Logging with Route53, I can create a resource policy for Route53 to log to my log group. I can confirm this policy with the cli aws logs describe-resource-policies and se...

6

Solved

How to add custom logs to CloudWatch? Defaults logs are sent but how to add a custom one? I already added a file like this: (in .ebextensions) files: "/opt/elasticbeanstalk/tasks/bundlelogs.d/a...

2

I have a Web Api (.Net Core 3.0), running on AWS Cluster (ECS), with EC2 instances. In task definition I've configured awslog driver in container to write logs to a certain log group / region. I'm ...

4

Solved

I have json-formatted CloudWatch logs whose entries resemble this: { "message": "resource_liked", "context": { "date": { "date": "2021-05-...

2

I initially tried with all the json policies in the below link. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-identity-based-access-control-cwl.html#customer-managed-policies-cwl An...

4

Solved

I'm just trying to create an alarm based on CloudWatch Logs Filter which triggers on multiple terms (or connected, not and) and is case insensitive Using "error warning" as pattern is not working ...

2

I've been having issues setting up custom log file streaming to CloudWatch from my AWS Elastic Beanstalk project. For reference, I've tried the suggestions in "AWS Elastic Beanstalk: Add custo...

2

I'm trying to understand what are the available claims I am able to access from the API Gateway when an user makes an authenticated request. The API Gateway Mapping Template Reference (https://doc...

2

is there a way to paginate AWS CloudWatch Logs Insights? Thank you. I was thinking something like below but that doesn't work fields @message | page 2 | limit 20 EDIT: I am currently accessing the...

1

Solved

I am unable to send custom logs to Cloudwatch. I have created /opt/aws/amazon-cloudwatch-agent/etc/shoryuken.json which contains { "logs": { "logs_collected": { "files&q...

5

I have a set of cloudwatch logs in json format that contain a username field. How can I write a cloudwatch metric query that counts the number of unique users per month?

6

A lambda can have a result that is either a success or an error. I want to see the logs of lambda that errored. I am trying to do that via a CloudWatch Insights query. How can I do this?

3

My Elastic Beanstalk environment is stopping streaming node.js events to CloudWatch Logs. Streaming works fine for a view minutes on a new instance. After a view minutes no more logs show up in Clo...

7

I got a $1,200 invoice from Amazon for Cloudwatch services last month (specifically for 2 TB of log data ingestion in "AmazonCloudWatch PutLogEvents"), when I was expecting a few tens of dollars. I...

2

Solved

Is there a way to filter CloudWatch log streams by 'most recent' to oldest within the AWS console? I am having to scroll incredibly far down to get to my most recent log messages. I have tried fi...
Wavawave asked 2/2, 2019 at 0:46

2

Solved

After about 1 hour of searching, I didn't find anything about 'how to submit a simple log to AWS CloudWatch Logs' from the frontend side. Almost all examples are for Node.js, but I need to submit t...

3

Is there any method in java to check whether a given Log Group and Log Stream exists, before getting log events from the Log Group?

0

I want to create a line chart with two lines in AWS CloudWatch Logs Insights. One line representing mobile users and the other desktop users, showing a success rate for each group of users. This th...

3

I was wondering if CLoudWatchLogs has a limit on the length of 1 line of logging. I checked the CloudWatchLogs Limit documentation page, but they do not specify anything regarding line length limit...

1

I want to use the following filter pattern - "error-res-received ". So on the configuration yaml file, I have have given FilterPattern: "\"error-res-received \"". But ...

© 2022 - 2025 — McMap. All rights reserved.