aws-cloudwatch-log-insights Questions

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

2

Solved

I am using AWS Cloudwatch Insights and running a query like this: fields @message, @timestamp | filter strcontains(@message, "Something of interest happened") | stats count() as interestC...
Mawkin asked 18/9, 2020 at 17:39

16

Solved

I would like to send my users directly to a specific log group and filter but I need to be able to generate the proper URL format. For example, this URL https://console.aws.amazon.com/cloudwatch/...

1

Attempting to use a built-in Cloudwatch Log function like "date_floor" with a 8601 timestamp string like "2020-03-24T19:03:34.645Z" gives back an "Invalid date" error in Cloudwatch Log Insights. D...
Highbred asked 24/3, 2020 at 19:29

2

Solved

I'm trying to add a Container Insight to my EKS cluster but running into a bit of an issue when deploying. According to my logs, I'm getting the following: [error] [output:cloudwatch_logs:cloudwatc...

4

Solved

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

3

Solved

I'm trying to perform a really simple query on the not so new AWS Cloudwatch Log Insights I'm following their documentation to filter my logs using ispresent function. The query is the following:...
Demission asked 8/5, 2019 at 19:38

6

Solved

how do I query with contains string in AWS Log insights fields @timestamp, @message filter @message = "user not found" | sort @timestamp desc | limit 20 fields @timestamp, @message filte...
Corium asked 25/5, 2020 at 4:15

3

I need to query data from lambda using AWS Cloudwatch log insights. The query syntax provide by aws doesn't have distinct. Only support (count_distinct(fieldname)) ref. https://docs.aws.amazon.com/...

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

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?

2

Solved

Are you able to run a filter with a subquery in Cloudwatch Insights? I would like to take the requestID and find all logs related to it. I can run the queries separately but was trying to do it one...
Caddell asked 22/5, 2020 at 21:49

3

Solved

I typically run a query like fields @timestamp, @message | filter @message like /ERROR/ | sort @timestamp desc | limit 20 Is there any way to get additional lines of context around the messages co...

2

Solved

Suppose I have a simple Insights query like so fields @timestamp, @message Is there a way to truncate the @message field. For example, say I only want to skip the 1st 50 characters. I know I ca...
Fredrickafredrickson asked 6/4, 2020 at 18:1

3

Solved

I'm using aws SQS to trigger a lambda function, after I send message to sqs, when I want to see the cloudwatch log in lambda, I got this error. I'm in the same aws region, any idea what this happen...
Wollongong asked 4/6, 2021 at 18:40

2

Solved

Example log: REQUEST-ID:123 Video id=444 REQUEST-ID:123 Request=error REQUEST-ID:534 Video id=555 REQUEST-ID:534 Request=ok Question, how to find Video id of all requests with an error?

3

Solved

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-0...
Pocketknife asked 17/12, 2019 at 21:11

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 am running fluent-bit as a sidecar on my EKS cluster for an application to tail application log files and write events to CloudWatch Logs. Through CloudWatch Logs Insights, I then set up some que...

4

Solved

I have a CloudWatch Logs Insights query, which shows "7000 records matched", but when I try Actions -> Download query results (CSV), only 1000 records are exported (same as shown in the console). I...

2

Solved

I am trying to use AWS Cloudwatch Logs insights in order to search in some quite old logs of our lambda functions. I am reading this guide on AWS docs, but nowhere is documented how you can filter ...

1

Solved

So we've created a dashboard in CloudWatch and we want it initialized by CDK every startup across all our environments. We noticed there's a view/edit source that you can copy paste a json in and w...
Vesical asked 26/8, 2022 at 8:24

1

Suppose you have logs with some transaction ID and timestamp 12:00: transactionID1 handled by funcX 12:01: transactionID2 handled by funcX 12:03: transactionID2 handled by funcY 12:04: transactionI...
Bottomry asked 30/7, 2020 at 4:46

2

Solved

I have a lot of AWS Lambda logs which I need to query to find the relevant log stream name, I am logging a particular string in the logs, Which I need to do a like or exact query on. The log forma...

© 2022 - 2025 — McMap. All rights reserved.