best apprach to monitor and loging the cloudfront on cloudwatch

0

Hi All,

I am very new to AWS DevOps. I am trying to find the best approach to logging and monitoring the CloudFront activity on Cloudwatch. I have tried the below

  1. enabled the Cloudfront logs to s3, then analyze the data with Athena
  2. enable real-time logging to Cloudwatch from the CloudFront console.

but I am stuck

  • in 1st I am not aware of how to enable visual monitoring of this
  • in the 2nd approach. that data is logged but does not provide sufficient data.

please help

2 Answers
0
Accepted Answer

Hi,

there are 2 main ways:

  • for access logs in realtime (seconds), you should setup an integration with Cloudfront ->Amazon Kinesis Data Streams -> Amazon Kinesis Firehose, which then can be moved to S3, OpenSearch, etc.
  • for access logs needed in minutes, you could just send logs directly to S3.

For more you can see here: https://repost.aws/knowledge-center/cloudfront-logging-requests

Hope it helps ;)

profile picture
EXPERT
answered a year ago
0

thank you so.. much :)

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions