Questions tagged [aws-cloudwatch-log-insights]

301 questions
0
votes
1 answer

Filter cloudwatch log groups using boto3

Is there a way to extract status codes from below sample logs using boto3? They both belong to one cloudwatch log group. I was able to query any one of them, but not both. Can you help me? 2020-04-28 16:45:11,466 - elasticsearch - INFO - GET…
0
votes
1 answer

Query Python logs in Glue Query with CloudWatch Insights

I'm very new to CloudWatch Insights, and I've been trying to understand how to get it to work with Python logging. Currently I have an AWS Glue ETL query setup in PySpark/Python. I am using the default logging package for Python in the script. I've…
0
votes
1 answer

CloudWatch Insights filter to only homepage requests including with query string

We have a field for "url" in our logs, and I'd like to be able to filter down to just requests hitting the homepage. This would be requests for / and for /?*, i.e. with any query string. Just getting homepage requests is | filter url = "/" but how…
0
votes
2 answers

Is there a boto 3 (aws sdk for python) API for getting the actual memory used by a lambda function?

I am looking for an (boto3) API of aws lambda or aws cloud watch, which can tell me the max memory actually used by a lambda function on execution? I know on every execution the lambda function prints the result which has 'max memory used' but I…
0
votes
1 answer

Logging exception of my java service in AWS cloudwatch

I have to log the exception occurred in my java service in AWS cloud-watch Here is my sample service @GetMapping(value = "/GetUrl") public String getURL(String key) throws FileNotFoundException { try { return…
0
votes
1 answer

AWS Unable to perform action on cli

I am able to perform some action (specifically use cloudwatch insight and run a query) on aws console. But I am unable to do the same using aws cli or boto3 (aws logs start-query). It gives AccessDeniedError. However I am able to run other commands…
ArslanAnjum
  • 1,674
  • 2
  • 17
  • 31
0
votes
1 answer

Cloudwatch logs from one lambda invocation

Is there a way to know exactly that a logs belongs to a particular requestId in cloudwatch logs for lambda.
ArslanAnjum
  • 1,674
  • 2
  • 17
  • 31
0
votes
0 answers

AWS cloudwatch runtime capture

How can we capture all the runtimes above 700ms in AWS cloud watch? Triggering the AWS lambda function, using a python script.
0
votes
1 answer

Aws auto scaling group terminated one ec2 instance with Instance status check fails

Auto scaling group in Aws terminated one ec2 instance with Instance status check fails and re launched another instance which is running fine.. Is there any way to check which causes my ASG to terminate machine with instance status check failure
Lakshmi Reddy
  • 313
  • 5
  • 17
0
votes
1 answer

How read this log?

The following log is generated from ELB of AWS (application ELB) . Can you help to read this log http 2019-07-26T00:02:23.641877Z app/api-sharkcloud/045932bf06ccdceb 216.218.206.69:53414 - -1 -1 -1 301 - 40 350 "GET http://13.235.126.213:8080/…
0
votes
1 answer

Is there any ways to set values to system fields of CloudWatch Logs?

I want to set values to the fields @requestId in lambda executions because logs outputted explicitly inside the source code does not contain the @requestId field value. I've read an article and tried to output logs like the below but the @requestId…
0
votes
2 answers

AWS CloudWatch Query Result

The below code returns records when I run it in debug mode with a breakpoint on this line and stepping into the line. But when I run it in regular Run and do not step into this line, it produces 0 result. What am I doing wrong?…
-1
votes
1 answer

AWS login details in a account

In AWS for monitoring purposes, I need to find a list of all users' login details for the past week in an AWS account. So how can I acquire it?
-1
votes
1 answer

Parse JSON message within CloudWatch insights log

Lets say my current query is as follows: fields @timestamp, @message | sort @timestamp desc | limit 20 Where my messages consist of valid JSON, such as: { "timestamp": "2022-06-24T04:03:17,962", "logger": "com.log.LoggerClass", "level": "DEBUG"}…
-1
votes
2 answers

Exporting AWS cloudwatch logs to S3

I have one lambda function on AWS, which is storing it's logs over AWS cloudwatch. I want to store ALL these logs to S3 using CLI. My linux server is already configured with CLI and has all the necessary permissions to access AWS resources. I want…
1 2 3
19
20