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
0
votes
1 answer

How create cloudwatch metric filter from unstructured log?

Consider log output: 2018-07-09 14:59:48,938 INFO [req-id:aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa] [sqs-m-id:aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa] [bucket:my-bucket] [s3Key:folder/myFile.pdf] com.mycompany.MyJavaClass - some message with…
0
votes
1 answer

Detailed application logs from aspnet core app to cloudwatch

I have som problem with application logs in cloudwatch. I'am using dotnet core and Elastic container services and have setup cloudwatch as application logs, but the logs only outputs the startup like this: But when I run the application local the…
Moddaman
  • 2,538
  • 3
  • 23
  • 41
0
votes
0 answers

How to access pre-signed urls for AWS Cloudwatch Logs generated with boto3.client?

I am wondering if it is possible to use pre-signed urls with other aws services other than s3. Specifically, the boto3 documentation http://boto3.readthedocs.io/en/latest/reference/services/logs.html#CloudWatchLogs.Client.generate_presigned_url…
0
votes
2 answers

AWS Cloudwatch Alarm status

I have set cloudwatch alarm to trigger SNS mail whenever some keywords are found in cloudwatch logs. (using metric filter) When those keywords are detected, Alarm state gets changed from insufficient data to alarm & triggers SNS topic Now, to move…
Abdul Salam
  • 522
  • 2
  • 7
  • 26
0
votes
1 answer

Programmatically fire off alarm to CloudWatch when condition is met

I'm researching the AWS CloudWatch SDK for Java and I see there's a limit of 5,000 alarms per account per region for PutMetricAlarm: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html My situation is such that…
0
votes
2 answers

Pushing data to other endpoint using CloudWatch Logs Agent

Is it possible to use CloudWatch Logs Agent to push data to another endpoint other CloudWatch Log Group, for example , is it possible to configure CloudWatch Logs Agent to push data to Kafka or RabbitMQ ? Secondly , which protocol does the…
0
votes
2 answers

adding metric in cloudwatch log

Elastic Beanstalk generated logs in five file by default. When cloudwatch streaming log is enabled it shows error.log access.log, eb.log. But i want catilina.out log or tomcat log also in cloudwatch log. How to do it?
user9271267
0
votes
1 answer

aws cloudwatch log for elasticbeanstalk

From webapp, end-user will specify start time and end time for fetching logs (either in .zip format or to just display log in new tab). I want to use cloudwatch for logging of elasticbeanstalk. What are the available JAVA api's for doing this. like…
user9271267
0
votes
2 answers

Accessing and logging the amount of S3 POST/GETs by filename

I have several JSON files in an S3 bucket. I need to do a monthly count of the amount of put/gets each file receives in a month. Can these be extracted via CSV or even accessed via an API? I have looked at Cloudwatch and there doesn't appear to be…
0
votes
1 answer

What is an efficient way to log in AWS cloudwatch from your AWS lambda?

I have a set of 50 Lambda functions in AWS for a node project I am working on. Most of the functions are CRUD based. What is an efficient way to log variables and errors to Cloudwatch? By efficiency I mean with the least cost possible what should I…
0
votes
1 answer

How get all log events in amazon via loop?

Every amazon API has it's own token which you have to set to next request. But with aws log api I got infinity loop: public class Some { public static void main (String[] args) { final GetLogEventsRequest request = new…
Cherry
  • 31,309
  • 66
  • 224
  • 364
0
votes
0 answers

How to batch export CloudWatch Logs to S3 using Lambda(python)

Based on AWS developer guide, Here, It does not tell you how to batch export CloudWatch Logs to S3 using Lambda. Below is my code using boto3, I've researched quite sometime now and could not find any that allow you to batch export CloudWatch Logs…
Lee.Tan
  • 619
  • 2
  • 6
  • 18
0
votes
1 answer

Cloudwatch - Metrics are expiring

I currently have a bunch of custom metric's based in multiple regions across our AWS account. I thought I was going crazy but have now confirmed that the metric I created a while ago is expiring when not used for a certain time period (could be 2…
Hexie
  • 3,955
  • 6
  • 32
  • 55
0
votes
2 answers

AWS CloudWatch | Export logs to EC2 server

I have "cloudwatch" service to monitor logs for my EC2 running instances. But the ColudWatch web console does not seem to have a button to allow you to download/exporting the log data from it. Any ideas how I can achieve this goal through CLI or…
0
votes
1 answer

Amazon Cloudwatch Logs from External Website

I'm a bit of a AWS newbie so forgive me if this is a stupid question. We have a legacy Classic ASP website (not hosted at Amazon) and I wanted to know if its possible to utilize Amazon Cloudwatch for custom logging. I know we could use a site like…
Mike Smith
  • 618
  • 10
  • 27