My application is storing logs in S3 in a specific format. But currently, I'm not able to view those logs directly. Can we use AWS CloudWatch to view those logs that are stored in S3?
When I checked, I saw that we can use CloudWatch Logs to create Log group and then store logs to that using cloudwatch agent. But is there a way to import logs from S3 to CloudWatch and view them on the cloudwatch logs section?
Possible alternative:
Consider using AWS Athena to view and query your application logs that are stored in S3.
For example, here's a guide to using Athena to query CloudFront access logs that are stored in S3:
https://docs.aws.amazon.com/athena/latest/ug/cloudfront-logs.html
Yes you can but not directly,
Two options..
Option two is the best, good luck!
You can use Amazon Athena to query Application server logs stored in Amazon S3. See AWS documentation for Querying web server logs stored in Amazon S3 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.