Aws cloudfront - 是否可以对流量进行分析

Aws cloudfront - is it possible to make analytic for the traffic

Cloudfront 是一个 CDN,因此来自客户端的一些请求是从缓存中检索的。

我想知道是否有任何方法可以按以下标准计算 Cloudfront 的流量。

1.Record有多少人访问该网站(day/week/month)?
2.Record 使用某些路由的 activity(例如用户 Tim 使用 POST /login in 2020-01-29 19:00)

您可以使用 Amazon CloudFront 控制台显示与 CloudFront 边缘站点相关的统计数据的图形表示。请检查以下link

CloudFront (CF) 提供了丰富的监控方法组合,其中一些是:

通过浏览这些日志,我相信您可以获得所需的信息。一开始可能不太明显,但日志数据应该包含所有需要的内容。

Record how many people access the website(in a day/week/month)?

我认为您可以在 CloudWatch 中使用 CloudFront distribution metrics 中的 Requests 指标进行检查。

Record the activity of using certain route

这是更具体的应用程序。如果没有开箱即用的方法,您可以解析 access logs 以获取此类信息。