SlideShare a Scribd company logo
1 of 36
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Welcome to re:Invent 2018! CTD410
• Please collect the credit coupon. You can apply this coupon towards completing the labs in this
workshop.
• Please do not use your production account for the labs.
• Choose EU-West-1(Ireland) region for the labs
• Navigate to the following web link for workshop lab instruction
https://github.com/aws-samples/amazon-cloudfront-log-analysis
• Deploy the solution using CloudFormation template by completing the following 2 steps
• Create a Key Pair for EC2 Instances
• Deploy Solution
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Analyze Amazon CloudFront & Lambda@Edge
Logs to Improve Customer Experience
Gowri Balasubramanian
Sr. Solution Architect
Amazon Web Services
C T D 4 1 0
Rajeev Srinivasan
Strategic Solution Architect
Amazon Web Services
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Improving customer experience
Amazon CloudFront
Lambda@Edge
Customer reference
Log collection
Lab 1: Serverless analysis pipeline
• Building block overview—AWS Glue, Amazon Athena, Amazon QuickSight
• Pipeline architecture
Lab 2: Geospatial visualization pipeline
• Building block overview—Logstash, Amazon Elasticsearch, Kibana
• Pipeline architecture
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Improving customer experience
Increase service and application
availability
Meet compliance & audit
requirements
Reduce website latency Content optimization Bot detection & mitigation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudFront – Access logs
AWS Cloud Region
VPC
Application
servers
On-Premise
Database
servers
Application
servers
Webserver
servers
Routed to the nearest PoP
Dynamic content
Edge Location
Global users
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda@Edge
Edge location
Viewer request
Viewer response
Origin request
Origin response
Origin server
Devices
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda@Edge – Authoring
Author @
Lambda console
Lambda function
Region = us-east-1
Create
Lambda function
Region
Lambda function
Region
Lambda function
Region
Replicate
Trigger
association
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda@Edge – Improved user experience
Real-time image transformation
A/B testing
User AuthN & AuthZ
User prioritization
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda@Edge – User tracking & analytics
US
EU
@Edge
Request
Response
Triggered
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Social Media, Digital
Advertising, EdTech,
Finance
Others
E-commerce
Media &
Entertainment
Gaming
CloudFront customers
“By combining the power of AWS compute and storage with the Amazon
CloudFront content delivery network, we can provide an excellent user
experience to everybody playing our games and watching our video
content—regardless of their geographical location.”
Mikko Peltola
Operations Lead
“Thanks to Lambda@Edge and CloudFront, DataDome simplified the onboarding
process for our customers, who can activate our bot protection in one click in their
AWS console. We made our service available globally by deploying our solution
across AWS edge locations. Integrating Lambda@Edge and CloudFront also allowed
our company—based in France—to gain a global reach.”
Benjamin Fabre
DataDome co-founder & CTO
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Edge location
Log collection from the life of a user request
VPC
Application
servers
AWS Cloud
Client devices Viewer request
Viewer response
Origin request
Origin response
Load balancer logs
Amazon S3 access logs
Applicationlogs
Lambda@Edge logs
Lambda@Edge logs
Clientsidelogs
CloudFront access logs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Edge location
Log collection
VPC
Application
servers
AWS Cloud
Client devices Viewer request
Viewer response
Origin request
Origin response
Load balancer logs
Lambda@Edge logs
CloudFront access logs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service overview – AWS Glue
JDBC
Data source
JDBC
Data target
AWS Glue
Crawler
AWS Glue Data
Catalog
AWS Glue ETL
Scan data
read data
readmetadata
writemetadata
write transformed
data
How AWS Glue works
• Build your Data Catalog
• Generate & edit transformations
• Schedule and run your jobs
AWS Glue components
AWS Glue
Crawler
AWS Glue Data
Catalog
AWS Glue ETL
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service overview – Amazon Athena
• Amazon Athena is an interactive query service that makes it easy to
analyze data directly from Amazon Simple Storage Service (Amazon
S3) using standard SQL
Data Catalog
visualize
Service overview – Amazon QuickSight
Amazon QuickSight is natively integrated with AWS data sources, as well as
on-premise and hosted databases and third-party business applications
On-premises
Securely connect to on-premise
databases and flat files like
Excel and CSV
In the cloud
Connect to hosted database, big
data formats, and secure VPCs
Applications
Connect directly to third-
party business applications
• Salesforce
• Square
• Adobe Analytics
• Jira
• ServiceNow
• Twitter
• GitHub
• Amazon Redshift
• Amazon
Relational
Database Service
(Amazon RDS)
• Amazon S3
• Athena
• Amazon Aurora
• Teradata
• MySQL
• Presto
• Spark
• SQL Server
• PostgreSQL
• MariaDB
• Snowflake
• Excel
• CSV
• Teradata
• MySQL
• SQL Server
• PostgreSQL
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless analysis pipeline – Architecture
Raw
CloudFront
access logs
Lambda@Edge
logs
ALB logs
Optimized
CloudFront
access logs
Optimized
Lambda@Edge
logs
Optimized
ALB logs
your Amazon
S3 bucket
containing
processed logs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless analysis pipeline—Workshop
Optimized
CloudFront
access logs
Optimized
Lambda@Edge
logs
Optimized
ALB logs
your Amazon
S3 Bucket
containing
processed logs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless analysis pipeline — Workshop
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
time [timestamp]
location [string
bytes [bigint]
requestip [string]
method [string]
host [string]
uri [string]
status [int]
referrer [string]
useragent [string]
querystring [string]
requestid [string]
cookie [string]
resulttype [string]
hostheader [string]
requestprotocol [string]
requestbytes [bigint]
timetaken [double]
xforwardedfor [string]
sslprotocol [string]
sslcipher [string]
responseresulttype
[string]
httpversion [string]
year [string]
month [string]
day [string]
requestid [string]
executionregion [string]
distributionid [string]
distributionname [string]
eventtype [string]
requestdata [string]
customtraceid [string]
useragentstring [string]
year [string]
month [string]
day [string]
hour [string]
requestid [string]
executionregion [string]
distributionid [string]
distributionname [string]
eventtype [string]
requestdata [string]
customtraceid [string]
useragentstring [string]
deviceformfactor [string]
viewercountry[string]
year [string]
month [string]
day [string]
hour [string]
trace_id [string]
type [string]
time [timestamp]
elb [string]
client_ip_port [string]
target_ip_port [string]
request_processing_time [double]
target_processing_time [double]
response_processing_time [double]
elb_status_code [string]
target_status_code [string]
received_bytes [bigint]
sent_bytes [bigint]
request_verb [string]
request_url [string]
request_proto [string]
user_agent [string]
ssl_cipher [string]
ssl_protocol [string]
target_group_arn [string]
domain_name [string]
chosen_cert_arn [string]
region [string]
year [string]
month[string]
day[string]
requestid [string]
trace_id [string]
received_bytes [int]
distributionname [string]
executionregion [string]
distributionid [string]
location [string]
sent_bytes [int]
responseresulttype [string]
xforwardedfor [string]
type [string]
customtraceid [string]
querystring [string]
client_ip_port [string]
response_processing_time [double]
elb [string]
deviceformfactor [string]
elb_status_code [string]
uri [string]
request_verb [string]
col24 [string]
request_url [string]
region [string]
hostheader [string]
request_processing_time [double]
resulttype [string]
method [string]
useragent [string]
httpversion [string]
target_status_code [string]
target_ip_port [string]
requestdata [string]
host [string]
referrer [string]
cookie [string]
bytes [bigint]
target_processing_time [double]
alb_time [timestamp]
viewercountry [string]
timetaken [double]
requestbytes [bigint]
target_group_arn [string]
sslprotocol [string]
requestprotocol [string]
status [int]
time [timestamp]
requestip [string]
sslcipher [string]
request_proto [string]
col25 [string]
user_agent [string]
year [string]
month [string]
day [string]
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Elasticsearch Service
Fully managed service that is easy to deploy, manage, and scale
+
Fully managed
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Benefits of Amazon Elasticsearch Service
Supports open-source
APIs and tools
Drop-in replacement with no need
to learn new APIs or skills
Easy to use
Deploy a production-ready
Amazon ES cluster in minutes
Scalable
Resize your cluster with a few
clicks or a single API call
Secure
Deploy into your VPC and
restrict access using security
groups and AWS Identity and
Access Management (IAM) policies
Highly available
Replicate across Availability
Zones, with monitoring and
automated self-healing
Tightly integrated with
other AWS services
Seamless data ingestion, security,
auditing, and orchestration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Logstash simplifies transformation of CloudFront logs
Logstash is open-source pipeline that can be installed
on Amazon Elastic Compute Cloud (Amazon EC2)
instance
Logstash uses the bulk API to upload data into
Amazon ES domain using Amazon S3 plugin (input)
and logstash-output-amazon-es plugin (output)
Grok pattern matching format/transform CloudFront
log fields, for example:
• Combine date and time
• Extract user agent information
GeoIP plugin provides geo-coordinates based on the
requestip
Logstash
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Geospatial visualization pipeline – Architecture
Logstash
Amazon ES
data nodes
Kibana
Access
logs
Buffer
Transform
Deliver
Amazon ES
master nodes
Analytics UI
Poll
logs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Cloud
AWS Region
Public subnet1
Availability zone 1
Public subnet2
Availability zone 2
VPC
Kibana
Internet
gateway
LogstashProxy Server
Lab2 Deployment Architecture
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deriving insights from ELK-based pipeline
Customer experience
• Geo-spatial visualization
• Global distribution of your requests
• Insights on which location users experience increased latency
Debugging use cases
• Are customers receiving errors from specific devices?
• Do certain objects have more errors than others?
• Total number of hits vs. misses vs. errors for a given time period
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Related breakouts
Thursday, Nov 29
Customizing Content Delivery with Labmda@Edge – CTD415-R1
2:30 P.M. – 5:00 P.M. | Bellagio, Level 1, Grand Ballroom 6
Thursday, Nov 29
Use Monitoring, Logs, and Analytics Tools to Measure CDN And Site
Performance – CTD207-R3
11:30 P.M. – 12:30 P.M. | Mirage, Grand Ballroom D
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Gowri Balasubramanian
Rajeev Srinivasan
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Workshop CTD410
• Please collect the credit coupon. You can apply this coupon towards completing the labs in this workshop.
• Please do not use your production account for the labs.
• Choose EU-West-1(Ireland) region for the labs
• Navigate to the following web link for workshop lab instruction
https://github.com/aws-samples/amazon-cloudfront-log-analysis
• Deploy the solution using CloudFormation template by completing the following 2 steps
• Create a Key Pair for EC2 Instances
• Deploy Solution

More Related Content

What's hot

Identity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS SecurityIdentity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS SecurityAmazon Web Services
 
Aws multi-region High Availability
Aws multi-region High Availability Aws multi-region High Availability
Aws multi-region High Availability Adam Book
 
Multi-cloud strategies and services
Multi-cloud strategies and servicesMulti-cloud strategies and services
Multi-cloud strategies and servicesTatiana Lavrentieva
 
Using AWS Purpose-Built Databases to Modernize your Applications
Using AWS Purpose-Built Databases to Modernize your ApplicationsUsing AWS Purpose-Built Databases to Modernize your Applications
Using AWS Purpose-Built Databases to Modernize your ApplicationsAmazon Web Services
 
Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...
Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...
Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...Amazon Web Services
 
AWS Black Belt Techシリーズ AWS Directory Service
AWS Black Belt Techシリーズ AWS Directory ServiceAWS Black Belt Techシリーズ AWS Directory Service
AWS Black Belt Techシリーズ AWS Directory ServiceAmazon Web Services Japan
 
Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53Bùi Quang Lâm
 
Black Belt Online Seminar AWS上の暗号化ソリューション
Black Belt Online Seminar AWS上の暗号化ソリューションBlack Belt Online Seminar AWS上の暗号化ソリューション
Black Belt Online Seminar AWS上の暗号化ソリューションAmazon Web Services Japan
 
Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...
Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...
Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...Amazon Web Services
 
Easy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL ServerEasy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL ServerSolarWinds
 
AWS Black Belt Online Seminar 2017 初心者向け クラウドコンピューティング はじめの一歩
AWS Black Belt Online Seminar 2017  初心者向け クラウドコンピューティング はじめの一歩AWS Black Belt Online Seminar 2017  初心者向け クラウドコンピューティング はじめの一歩
AWS Black Belt Online Seminar 2017 初心者向け クラウドコンピューティング はじめの一歩Amazon Web Services Japan
 
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016Amazon Web Services Korea
 
Amazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best PracticesAmazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best PracticesAmazon Web Services
 
Simplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing ZoneSimplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing ZoneAmazon Web Services
 
Cloud Wars: Performance Benchmarking AWS, GCP and Azure
Cloud Wars: Performance Benchmarking AWS, GCP and Azure Cloud Wars: Performance Benchmarking AWS, GCP and Azure
Cloud Wars: Performance Benchmarking AWS, GCP and Azure ThousandEyes
 
Intro to Amazon S3
Intro to Amazon S3Intro to Amazon S3
Intro to Amazon S3Yu Lun Teo
 

What's hot (20)

Identity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS SecurityIdentity and Access Management: The First Step in AWS Security
Identity and Access Management: The First Step in AWS Security
 
Aws multi-region High Availability
Aws multi-region High Availability Aws multi-region High Availability
Aws multi-region High Availability
 
Bigtable
BigtableBigtable
Bigtable
 
Multi-cloud strategies and services
Multi-cloud strategies and servicesMulti-cloud strategies and services
Multi-cloud strategies and services
 
Black Belt Online Seminar AWS Amazon S3
Black Belt Online Seminar AWS Amazon S3Black Belt Online Seminar AWS Amazon S3
Black Belt Online Seminar AWS Amazon S3
 
Using AWS Purpose-Built Databases to Modernize your Applications
Using AWS Purpose-Built Databases to Modernize your ApplicationsUsing AWS Purpose-Built Databases to Modernize your Applications
Using AWS Purpose-Built Databases to Modernize your Applications
 
Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...
Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...
Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - A...
 
AWS Black Belt Techシリーズ AWS Directory Service
AWS Black Belt Techシリーズ AWS Directory ServiceAWS Black Belt Techシリーズ AWS Directory Service
AWS Black Belt Techシリーズ AWS Directory Service
 
Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53Training AWS: Module 7 - Route53
Training AWS: Module 7 - Route53
 
Black Belt Online Seminar AWS上の暗号化ソリューション
Black Belt Online Seminar AWS上の暗号化ソリューションBlack Belt Online Seminar AWS上の暗号化ソリューション
Black Belt Online Seminar AWS上の暗号化ソリューション
 
Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...
Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...
Easy Analytics on AWS with Amazon Redshift, Amazon QuickSight, and Amazon Mac...
 
Easy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL ServerEasy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL Server
 
AWS Black Belt Online Seminar 2017 初心者向け クラウドコンピューティング はじめの一歩
AWS Black Belt Online Seminar 2017  初心者向け クラウドコンピューティング はじめの一歩AWS Black Belt Online Seminar 2017  初心者向け クラウドコンピューティング はじめの一歩
AWS Black Belt Online Seminar 2017 初心者向け クラウドコンピューティング はじめの一歩
 
AWS Tagging Strategy
AWS Tagging StrategyAWS Tagging Strategy
AWS Tagging Strategy
 
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
 
ElastiCache & Redis
ElastiCache & RedisElastiCache & Redis
ElastiCache & Redis
 
Amazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best PracticesAmazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best Practices
 
Simplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing ZoneSimplify & Standardise your migration to AWS with a Migration Landing Zone
Simplify & Standardise your migration to AWS with a Migration Landing Zone
 
Cloud Wars: Performance Benchmarking AWS, GCP and Azure
Cloud Wars: Performance Benchmarking AWS, GCP and Azure Cloud Wars: Performance Benchmarking AWS, GCP and Azure
Cloud Wars: Performance Benchmarking AWS, GCP and Azure
 
Intro to Amazon S3
Intro to Amazon S3Intro to Amazon S3
Intro to Amazon S3
 

Similar to Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience (CTD410) - AWS re:Invent 2018

Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...Amazon Web Services
 
Data Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech TalksData Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech TalksAmazon Web Services
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Amazon Web Services
 
Workshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeWorkshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeAmazon Web Services
 
Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018
Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018
Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018Amazon Web Services
 
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Amazon Web Services
 
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...Amazon Web Services
 
Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...
Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...
Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...Amazon Web Services
 
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...Amazon Web Services
 
Building Serverless ETL Pipelines
Building Serverless ETL PipelinesBuilding Serverless ETL Pipelines
Building Serverless ETL PipelinesAmazon Web Services
 
Serverless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesServerless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesVladimir Simek
 
Accelerate and Modernise Microsoft Workload Migrations on AWS
Accelerate and Modernise Microsoft Workload Migrations on AWSAccelerate and Modernise Microsoft Workload Migrations on AWS
Accelerate and Modernise Microsoft Workload Migrations on AWSAmazon Web Services
 
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...Amazon Web Services
 
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)Amazon Web Services
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Amazon Web Services
 
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...Amazon Web Services
 
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...Amazon Web Services
 
Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...
Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...
Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...Amazon Web Services
 

Similar to Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience (CTD410) - AWS re:Invent 2018 (20)

Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
 
Data Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech TalksData Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech Talks
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
 
Workshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeWorkshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data Lake
 
Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018
Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018
Serverless Data Prep with AWS Glue (ANT313) - AWS re:Invent 2018
 
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
 
Taking serverless to the edge
Taking serverless to the edgeTaking serverless to the edge
Taking serverless to the edge
 
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
Deep Dive into AWS X-Ray: Monitor Modern Applications (DEV324) - AWS re:Inven...
 
Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...
Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...
Ensuring Your Windows Server Workloads Are Well-Architected - AWS Online Tech...
 
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
Distributed Solar Systems at EDF Renewables and AWS IoT: A Natural Fit (PUT30...
 
Building Serverless ETL Pipelines
Building Serverless ETL PipelinesBuilding Serverless ETL Pipelines
Building Serverless ETL Pipelines
 
Migrating database to cloud
Migrating database to cloudMigrating database to cloud
Migrating database to cloud
 
Serverless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best PracticesServerless on AWS: Architectural Patterns and Best Practices
Serverless on AWS: Architectural Patterns and Best Practices
 
Accelerate and Modernise Microsoft Workload Migrations on AWS
Accelerate and Modernise Microsoft Workload Migrations on AWSAccelerate and Modernise Microsoft Workload Migrations on AWS
Accelerate and Modernise Microsoft Workload Migrations on AWS
 
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
Control for Your Cloud Environment Using AWS Management Tools (ENT226-R1) - A...
 
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
 
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
Build Modern Applications that Align with Twelve-Factor Methods (API303) - AW...
 
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
 
Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...
Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...
Drive Self-Service & Standardization in the First 100 Days of Your Cloud Migr...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Analyze Amazon CloudFront and Lambda@Edge Logs to Improve Customer Experience (CTD410) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Welcome to re:Invent 2018! CTD410 • Please collect the credit coupon. You can apply this coupon towards completing the labs in this workshop. • Please do not use your production account for the labs. • Choose EU-West-1(Ireland) region for the labs • Navigate to the following web link for workshop lab instruction https://github.com/aws-samples/amazon-cloudfront-log-analysis • Deploy the solution using CloudFormation template by completing the following 2 steps • Create a Key Pair for EC2 Instances • Deploy Solution
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Analyze Amazon CloudFront & Lambda@Edge Logs to Improve Customer Experience Gowri Balasubramanian Sr. Solution Architect Amazon Web Services C T D 4 1 0 Rajeev Srinivasan Strategic Solution Architect Amazon Web Services
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Improving customer experience Amazon CloudFront Lambda@Edge Customer reference Log collection Lab 1: Serverless analysis pipeline • Building block overview—AWS Glue, Amazon Athena, Amazon QuickSight • Pipeline architecture Lab 2: Geospatial visualization pipeline • Building block overview—Logstash, Amazon Elasticsearch, Kibana • Pipeline architecture
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Improving customer experience Increase service and application availability Meet compliance & audit requirements Reduce website latency Content optimization Bot detection & mitigation
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CloudFront – Access logs AWS Cloud Region VPC Application servers On-Premise Database servers Application servers Webserver servers Routed to the nearest PoP Dynamic content Edge Location Global users
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda@Edge Edge location Viewer request Viewer response Origin request Origin response Origin server Devices
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda@Edge – Authoring Author @ Lambda console Lambda function Region = us-east-1 Create Lambda function Region Lambda function Region Lambda function Region Replicate Trigger association
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda@Edge – Improved user experience Real-time image transformation A/B testing User AuthN & AuthZ User prioritization
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda@Edge – User tracking & analytics US EU @Edge Request Response Triggered
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 13. Social Media, Digital Advertising, EdTech, Finance Others E-commerce Media & Entertainment Gaming CloudFront customers
  • 14. “By combining the power of AWS compute and storage with the Amazon CloudFront content delivery network, we can provide an excellent user experience to everybody playing our games and watching our video content—regardless of their geographical location.” Mikko Peltola Operations Lead
  • 15. “Thanks to Lambda@Edge and CloudFront, DataDome simplified the onboarding process for our customers, who can activate our bot protection in one click in their AWS console. We made our service available globally by deploying our solution across AWS edge locations. Integrating Lambda@Edge and CloudFront also allowed our company—based in France—to gain a global reach.” Benjamin Fabre DataDome co-founder & CTO
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Edge location Log collection from the life of a user request VPC Application servers AWS Cloud Client devices Viewer request Viewer response Origin request Origin response Load balancer logs Amazon S3 access logs Applicationlogs Lambda@Edge logs Lambda@Edge logs Clientsidelogs CloudFront access logs
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Edge location Log collection VPC Application servers AWS Cloud Client devices Viewer request Viewer response Origin request Origin response Load balancer logs Lambda@Edge logs CloudFront access logs
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Service overview – AWS Glue JDBC Data source JDBC Data target AWS Glue Crawler AWS Glue Data Catalog AWS Glue ETL Scan data read data readmetadata writemetadata write transformed data How AWS Glue works • Build your Data Catalog • Generate & edit transformations • Schedule and run your jobs AWS Glue components AWS Glue Crawler AWS Glue Data Catalog AWS Glue ETL
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Service overview – Amazon Athena • Amazon Athena is an interactive query service that makes it easy to analyze data directly from Amazon Simple Storage Service (Amazon S3) using standard SQL Data Catalog visualize
  • 22. Service overview – Amazon QuickSight Amazon QuickSight is natively integrated with AWS data sources, as well as on-premise and hosted databases and third-party business applications On-premises Securely connect to on-premise databases and flat files like Excel and CSV In the cloud Connect to hosted database, big data formats, and secure VPCs Applications Connect directly to third- party business applications • Salesforce • Square • Adobe Analytics • Jira • ServiceNow • Twitter • GitHub • Amazon Redshift • Amazon Relational Database Service (Amazon RDS) • Amazon S3 • Athena • Amazon Aurora • Teradata • MySQL • Presto • Spark • SQL Server • PostgreSQL • MariaDB • Snowflake • Excel • CSV • Teradata • MySQL • SQL Server • PostgreSQL © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 23. Serverless analysis pipeline – Architecture Raw CloudFront access logs Lambda@Edge logs ALB logs Optimized CloudFront access logs Optimized Lambda@Edge logs Optimized ALB logs your Amazon S3 bucket containing processed logs © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 24. Serverless analysis pipeline—Workshop Optimized CloudFront access logs Optimized Lambda@Edge logs Optimized ALB logs your Amazon S3 Bucket containing processed logs © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 25. Serverless analysis pipeline — Workshop © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. time [timestamp] location [string bytes [bigint] requestip [string] method [string] host [string] uri [string] status [int] referrer [string] useragent [string] querystring [string] requestid [string] cookie [string] resulttype [string] hostheader [string] requestprotocol [string] requestbytes [bigint] timetaken [double] xforwardedfor [string] sslprotocol [string] sslcipher [string] responseresulttype [string] httpversion [string] year [string] month [string] day [string] requestid [string] executionregion [string] distributionid [string] distributionname [string] eventtype [string] requestdata [string] customtraceid [string] useragentstring [string] year [string] month [string] day [string] hour [string] requestid [string] executionregion [string] distributionid [string] distributionname [string] eventtype [string] requestdata [string] customtraceid [string] useragentstring [string] deviceformfactor [string] viewercountry[string] year [string] month [string] day [string] hour [string] trace_id [string] type [string] time [timestamp] elb [string] client_ip_port [string] target_ip_port [string] request_processing_time [double] target_processing_time [double] response_processing_time [double] elb_status_code [string] target_status_code [string] received_bytes [bigint] sent_bytes [bigint] request_verb [string] request_url [string] request_proto [string] user_agent [string] ssl_cipher [string] ssl_protocol [string] target_group_arn [string] domain_name [string] chosen_cert_arn [string] region [string] year [string] month[string] day[string] requestid [string] trace_id [string] received_bytes [int] distributionname [string] executionregion [string] distributionid [string] location [string] sent_bytes [int] responseresulttype [string] xforwardedfor [string] type [string] customtraceid [string] querystring [string] client_ip_port [string] response_processing_time [double] elb [string] deviceformfactor [string] elb_status_code [string] uri [string] request_verb [string] col24 [string] request_url [string] region [string] hostheader [string] request_processing_time [double] resulttype [string] method [string] useragent [string] httpversion [string] target_status_code [string] target_ip_port [string] requestdata [string] host [string] referrer [string] cookie [string] bytes [bigint] target_processing_time [double] alb_time [timestamp] viewercountry [string] timetaken [double] requestbytes [bigint] target_group_arn [string] sslprotocol [string] requestprotocol [string] status [int] time [timestamp] requestip [string] sslcipher [string] request_proto [string] col25 [string] user_agent [string] year [string] month [string] day [string]
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Elasticsearch Service Fully managed service that is easy to deploy, manage, and scale + Fully managed
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Benefits of Amazon Elasticsearch Service Supports open-source APIs and tools Drop-in replacement with no need to learn new APIs or skills Easy to use Deploy a production-ready Amazon ES cluster in minutes Scalable Resize your cluster with a few clicks or a single API call Secure Deploy into your VPC and restrict access using security groups and AWS Identity and Access Management (IAM) policies Highly available Replicate across Availability Zones, with monitoring and automated self-healing Tightly integrated with other AWS services Seamless data ingestion, security, auditing, and orchestration
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Logstash simplifies transformation of CloudFront logs Logstash is open-source pipeline that can be installed on Amazon Elastic Compute Cloud (Amazon EC2) instance Logstash uses the bulk API to upload data into Amazon ES domain using Amazon S3 plugin (input) and logstash-output-amazon-es plugin (output) Grok pattern matching format/transform CloudFront log fields, for example: • Combine date and time • Extract user agent information GeoIP plugin provides geo-coordinates based on the requestip Logstash
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Geospatial visualization pipeline – Architecture Logstash Amazon ES data nodes Kibana Access logs Buffer Transform Deliver Amazon ES master nodes Analytics UI Poll logs
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Cloud AWS Region Public subnet1 Availability zone 1 Public subnet2 Availability zone 2 VPC Kibana Internet gateway LogstashProxy Server Lab2 Deployment Architecture
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deriving insights from ELK-based pipeline Customer experience • Geo-spatial visualization • Global distribution of your requests • Insights on which location users experience increased latency Debugging use cases • Are customers receiving errors from specific devices? • Do certain objects have more errors than others? • Total number of hits vs. misses vs. errors for a given time period
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Related breakouts Thursday, Nov 29 Customizing Content Delivery with Labmda@Edge – CTD415-R1 2:30 P.M. – 5:00 P.M. | Bellagio, Level 1, Grand Ballroom 6 Thursday, Nov 29 Use Monitoring, Logs, and Analytics Tools to Measure CDN And Site Performance – CTD207-R3 11:30 P.M. – 12:30 P.M. | Mirage, Grand Ballroom D
  • 34. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Gowri Balasubramanian Rajeev Srinivasan
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Workshop CTD410 • Please collect the credit coupon. You can apply this coupon towards completing the labs in this workshop. • Please do not use your production account for the labs. • Choose EU-West-1(Ireland) region for the labs • Navigate to the following web link for workshop lab instruction https://github.com/aws-samples/amazon-cloudfront-log-analysis • Deploy the solution using CloudFormation template by completing the following 2 steps • Create a Key Pair for EC2 Instances • Deploy Solution