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
gefragt vor 4 Jahren283 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen