Reporting Amazon CloudFront traffic by hostname in one distribution

0

Customer is using one Amazon CloudFront Distribution to deliver multiple hostname (CNAME). A challenge is - it became legacy and person in charge doesn't know whether some of CNAMEs are still used or not.

Is there visibility on traffic (bytes / requests) on host name (host header value)?

AWS
Julian
已提問 4 年前檢視次數 283 次
1 個回答
0
已接受的答案

You can enable CloudFront Access Logs and analyse them (x-host-header), they can quickly do this with Athena. You can also have an idea by checking the Top Referers in CloudFront console, logs remain the most precise.

Sample request with Athena

SELECT hostheader as CNAME, count(hostheader) as NbRequests from nameoftable_cflogs WHERE (date BETWEEN date '2020-05-01' AND date '2020-06-14') GROUP BY hostheader
AWS
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南