Questions tagged [aws-cloudwatch-log-insights]

301 questions
0
votes
1 answer

Lambda Duration using Cloud watch MetricFilter

I am trying to create the metric filter for the Lambda duration so that if the lambda exceeds 5-sec duration it should create an alarm: Filter and pattern syntax - Amazon CloudWatch Logs REPORT RequestId: 12345 Duration: 280.00 ms Billed Duration:…
0
votes
1 answer

How i can use regex to filter from output of cloudwatchloginsights query?

I'm new to python Below is my output from cloudwatchinsights query {'results': [[{'field': '@m', 'value': 'upload `onetest.csv`'}, {'field': '@ptr', 'value': 'CmkKMAosMDI2uwxIuRlQtBQQAhgB'}], [{'field': '@m', 'value': 'upload `onecube.csv`'},…
0
votes
1 answer

How can I view long logs in AWS cloudwatch with ...more in the end?

The screenshot below shows a long log with multiple "... xx more". I kind of got stuck debugging an issue so I need more details about the error. Is it possible to expand it in AWS Cloudwatch?
0
votes
2 answers

Add a new item to a Dynamodb using a AWS lambda function each time a function is executed with Cloudwatch

I'm trying to modify a Dynamodb table each time a Lambda function is executed. Specifically, I create a simple lambda function that returns a list of S3 bucket names and this function run each minute thanks to a Cloudwatch's rule. However, as I said…
0
votes
1 answer

Is there any way to drain CloudWatch Container Insight nodes with autoscaler on EKS?

Cluster Specification: apiVersion: eksctl.io/v1alpha5 kind: ClusterConfig metadata: name: mixedCluster region: ap-southeast-1 nodeGroups: - name: scale-spot desiredCapacity: 1 maxSize: 10 instancesDistribution: …
0
votes
1 answer

AWS Cloudwatch logs status shows running but logs are not available in AWS console

I am new to aws and I have to publish the application service logs to cloud watch. I tried the steps mentioned in AWS documentation and its working. I configured the same steps via jenkins pipeline. Here i am facing an issue. Logs are not getting…
0
votes
0 answers

Cloudwatch Insights - how to aggregate over time avg response time by url

I've an application log that has this format timestamp, url, responsetime Using AWS CloudWatch Logs Insights, how could i calculate and graphview (Line graph on Visualisation TAb) the average response time by url, to find out what url is causing…
0
votes
2 answers

AWS Cloudwatch Insights how to query using multiple log groups

Reading the documentation seems that is possible in AWS Cloudwatch to run queries with multiple log groups but I can not see any example on how to do it. I would like to join two log groups using common attributes and select some logs using…
0
votes
0 answers

aws cloudwatch logs insight - query and count multiple logs with different regular expressions

I need to query and count the failure logs of my app from different locations to test the performance of the APIs. fields @message | filter (@message like /Failure/ and @message like /AWE/) | stats count()as failure by bin(1d) as AWE Right now I…
0
votes
1 answer

AWS Cloud Watch Logs formatting

I have an issue with the logs on Cloud Watch. I keep having the logs on different entries instead of one single entry per log. Here's an example. Output in the console: [2020-12-21T11:51:21.966] [ERROR] default - [handlerProcess] [ ValidationError…
0
votes
1 answer

Seeking help manuerving JSON files in CloudWatch Log Insight

I have a question on using CloudWatch Log Insights when it comes to JSON files. I am trying to include two log streams in one query for CloudWatch Logs Insights where I would want to focus on "level" to find errors: Here is my code: filter…
Roma
  • 535
  • 6
  • 18
0
votes
2 answers

CloudWatch Insights - Group logs by url with unique ids removed

I'm looking to use CloudWatch Logs Insights to group logs by a request url field, however the url can contain 0-2 unique numerical identifiers that I'd like to be ignored when doing the grouping. Some examples of…
0
votes
0 answers

Can't escape backslashes in AWS Cloudwatch query string

I would like to send a query to AWS Cloudwatch Log Insights using a NodeJS server. Heres the query string as it runs in the AWS console: parse "* \"*\"" as tag, userMessage | filter tag="TEST" I would like to execute this query using AWS…
0
votes
1 answer

Create new logstream in cloudwatch from lambda

I am using lambda function which triggers when a new file is added to S3 bucket. Lambda function transforms the contents of the file and places it in another S3 bucket. when a new file 'emp.json' is added to 'sourcebucket/test' folder in the S3…
0
votes
2 answers

Cloudwatch number of users who visited more than 5 times

Using CloudWatch logs insights I am trying to find the number of users who have interacted with my service more than 5 times. I have extracted the @userId field from my logs. stats count(*) as used by @userId | filter used>5 Using this query I am…
1 2 3
19
20