Questions tagged [amazon-cloudwatchlogs]

Amazon CloudWatch Logs allows aggregation and management of log events sent to it by AWS or custom services. Use this tag when asking about log groups, log streams, and metric filters. Use amazon-cloudwatch instead when asking only about CW metrics or CW alarms.

Amazon CloudWatch Logs allows aggregation and management of log events sent to it by AWS or custom services.

Usage Guidance

  • Use this tag when asking about log groups, log streams, metric filters, etc.
  • Do not use this tag when asking only about CW metrics or CW alarms; use instead.

Resources

862 questions
14
votes
2 answers

How do I get AWS credentials in the AWS ECS docker container?

First, I use the server environment: sever: django + nginx + uwsgi cloud: docker + AWS ECS logging: AWS CloudWatch log service + watchtower third party app I am using the watchtower third party app for the AWS CloudWatch log service. So, I need to…
14
votes
0 answers

How does Amazon SNS manage CloudWatch log streams for delivery status?

Amazon AWS SNS has a feature allowing delivery status of mobile push notifications to be logged in CloudWatch. This is documented briefly here: http://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html My goal is to track delivery success of…
13
votes
2 answers

AWS CloudWatch logs: How to send an email notification when particular error message is logged by lambda

I have to monitor CloudWatch logs for particular lambda. When the specific error message such as HTTP-50X is logged to CloudWatch, then we need to send an email notification to alert that the something is wrong. We need help to create alert email in…
13
votes
2 answers

Sending EMR Logs to CloudWatch

Is there a way to send EMR logs to CloudWatch instead of S3. We would like to have all our services logs in one location. Seems like the only thing you can do is set up alarms for monitoring but that doesn't cover…
13
votes
1 answer

How to log all Cognito User details in API Gateway Cloudwatch

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…
13
votes
1 answer

AWS CloudWatch log subscription filters decode

I am using CloudWatch log subscription filters stream to Lambda and publish a message to an SNS topic. But it will output garbled message and can't success decode. my output: k %" jVbB If not decode will output like this: { "awslogs": {"data":…
13
votes
3 answers

CloudWatch logs stream to Lambda python

I have created a subscription filter in CloudWatch log group and made it stream to my lambda function, but am getting an error in my lambda function. Code: import boto3 import binascii import json import base64 import zlib def…
Abdul Salam
  • 522
  • 2
  • 7
  • 26
13
votes
3 answers

CloudWatch Logs Filter case insensitive multiple terms or connected

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 I'm looking for filter pattern reacting to all of the…
12
votes
0 answers

CloudWatch log insights query scans very slow

I'm looking for help on an issue I'm struggling with. I have created a new log group on CloudWatch, created a few streams and up to 1500 log events in total via AWS putLogEvents method. When I run a simple query to return just the timestamp and…
12
votes
4 answers

AWS Lambda using Winston logging loses Request ID

When using console.log to add log rows to AWS CloudWatch, the Lambda Request ID is added on each row as described in the docs A simplified example based on the above mentioned doc exports.handler = async function(event, context) { …
12
votes
2 answers

What are Vended Logs in AWS CloudWatch?

From the Features page of Amazon CloudWatch, it says there are three categories of logs: Vended logs - natively published by AWS services on behalf of the customer Logs published by AWS services Custom logs This "natively published by AWS services…
12
votes
2 answers

Can we set cloudwatch log retention days in /etc/awslogs/awslogs.conf

As we know we can put something like this in awslogs.conf file: [/var/log/mylog] file = /var/log/mylog.log log_group_name = mylog log_stream_name = mystream datetime_format = %Y-%m-%dT%H:%M:%S.%f What other parameters can we set in this file? I am…
12
votes
2 answers

Is it possible to embed AWS Cloudwatch dashboards in a webpage for internal company use?

I really like the AWS Cloudwatch dashboard feature, but it would be far more useful if I could increase visibility to it to let others in our company who might not know AWS. Is there any way of displaying it outside of the AWS website?
David
  • 1,648
  • 1
  • 16
  • 31
11
votes
1 answer

How can I visualize timeseries data aggregated by more than one dimension on AWS insights?

I'd like to use cloudwatch insights to visualize a multiline graph of average latency by host over time. One line for each host. This stats query extracts the latency and aggregates it in 10 minute buckets by host, but it doesn't generate any…
11
votes
2 answers

Log4J2 CloudWatch Appender

I'm looking for an official AWS CloudWatch Appender for Log4J2. I've search all over and didn't find any. Anybody there using CloudWatch in Java Apps with Log4J2?
Gonzalo Gallotti
  • 2,413
  • 3
  • 23
  • 28
1 2
3
57 58