SlideShare a Scribd company logo
1 of 34
Download to read offline
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS re:INVENT
Easy and Scalable Log Analytics with
Amazon Elasticsearch Service
J o n H a n d l e r , P r i n c i p a l S A
K e v i n F a l l i s , S A
D a r i n B r i s k m a n , E v a n g e l i s t
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Overview
• Build and deploy a
web app to to search a
small movies database
• Deploy an Amazon
Elasticsearch Service
domain in your VPC
• Monitor the web app
by sending Apache
access_logs to
Amazon Elasticsearch
Service
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Transition from IT
to DevOps
Increase in IoT and
Mobile Devices
Cloud-based
architectures
Machine-generated data is growing 10x faster than business data
Source: insideBigData - The Exponential Growth of Data, February 16, 2017
THE EXPLOSION OF MACHINE-GENERATED DATA
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Source: TechCrunch survey of popular open source software from April’17
Open source
Fast time to value
Easy ingestion
Easy visualization
High performance and distributed
Best analytics and search
LOG ANALYTICS FUELING ELASTICSEARCH GROWTH
Rank Project Name
Overall Project
Rating
1 Linux 100.00
2 Git 31.10
3 MySQL 25.23
4 Node.js 22.75
5 Docker 22.61
6 Hadoop 16.19
7 Elasticsearch 15.72
8 Spark 14.99
9 MongoDB 14.68
10 Selenium 12.81
11 NPM 12.31
12 Redis 11.61
B E N E F I T S
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ELASTICSEARCH LEADING USE CASES
Application Monitoring &
Root-cause Analysis
Security Information and Event
Management (SIEM)
IoT & Mobile Business & Clickstream Analytics
Provides developers with a high
performance, self-service operational
monitoring and analytics platform
Enables security practitioners to centralize
and analyze events from across the entire
organization
Gives developers and lines of business
users real-time location-aware insights
into their device fleets
Provides business users with a real-time view
of the performance of their web content and
e-commerce platforms
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Elasticsearch Service is a
fully managed service that makes
it easy to deploy, manage, and
scale Elasticsearch and Kibana
A M A Z ON E L A ST IC SE AR C H S E R V IC E
+
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Application Monitoring & Root-cause Analysis
C A S E S T U D Y : EXPEDI A
Logs, lots and lots of logs. How to cost effectively monitor logs?
Require centralized logging infrastructure
Did not have the man power to manage infrastructure
P R O B L E M
Quick insights: Able to identify and troubleshoot issues in real-time
Secure: Integrated w/ AWS IAM
Scalable: Cluster sizes are able to grow to accommodate additional log sources
B E N E F I T S
Streaming CloudTrail logs, application logs, and Docker startup logs
to Elasticsearch
Created centralized logging service for all team members
Using Kibana for visualizations and for ES queries
S O L U T I O N
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Business and Clickstream Analytics
C A S E S T U D Y : FI NANC I AL T I MES
What stories do our readers care about? What’s hot?
Required a custom clickstream analytics solution
Need a solution that delivers analytics in real-time
Did not have a team to manage analytics infrastructure
P R O B L E M
B E N E F I T S
Streaming user data to Elasticsearch Service for analysis. Created
their own custom dashboards for editors and journalists – Lantern.
Lantern - ”shines a light” on reader activity for the editors and
journalists at the FT
Critical tool for making editorial decisions. Daily editorial meetings
start by looking at Lantern dashboard
S O L U T I O N
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Reliability : Lantern is used throughout the day by journalists and editors. Relying on Amazon to manage
their systems for maximum uptime.
Cost savings: Able to easily tune their cluster to meet their needs with minimal management overhead
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
B E N E F I T S OF AMAZON ELAST I C SEAR C H SER V I C E
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
Elasticsearch 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
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
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Software & Internet Financial ServicesEducation Technology BioTech and Pharma
Media and Entertainment Social Media Telecommunications Travel & Transportation
Real Estate Logistics & Operations Publishing Other
AMAZON ELASTI CSEARCH SERV I CE CUSTOMERS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Elastic Stack is the foundation for the solution
Elasticsearch – distributed search engine for logs
Logstash – simple tool for transforming and streaming data into ES
Kibana – Easy to use tool for visualization of log data in Elasticsearch
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
* NEW * Amazon Elasticsearch VPC Support
• Private networking between
your VPC and Amazon
Elasticsearch Service
• Traffic does not
traverse the public
internet
• Use IAM policies and
security groups for
authentication and access
control
VPC subnet
security group
VPC subnet
security group
Amazon Elasticsearch Service
Data Master
Data
Master
IAM
IAM
Availability
Zone B
Availability
Zone A
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architectural Approach (Logging)
FB
Apache
FB
Apache
FB
Apache
Log Shippers Buffer Log Indexers Search
ApplicationTraffic
Amazon Elasticsearch Service
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architectural Approach (Web Serving)
App
Apache
App
Apache
App
Apache
Application
PHP/Apache
Search
Amazon Elasticsearch Service
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Portal
SSH
Secure Access
Analysis & Visualization
Amazon Elasticsearch Service
Architectural Approach (Analysis)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Managed services in the lab
• Amazon Elasticsearch Service – Analysis and search for
log data
• Elasticache (Redis) – Buffering and collation for logs
flowing through the system
• Route 53 – (DNS) – DNS name resolution to route traffic
to Redis and Amazon Elasticsearch Service
• CFN – (CloudFormation) – Deploys the full solution from
the AWS console
• CloudTrail – Audit access to the administrative
commands across AWS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security for the lab architecture
• VPC – (Virtual Private Cloud) - Isolated networking that
keeps traffic within the AWS network
• ENI – (Elastic Network Interface) – Private networking for
managed services – Elasticache & Elasticsearch
• NAT Gateway – One IP address that hides my servers
from the world
• ALB – (Application Load Balancer) – Limits access and
exposes perimeter to DDOS attacks
• Security Groups – ensure only trusted entities can talk to
my servers
• Subnets – Coupled with Route Tables Limits Specific
Traffic
SG
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Assembly – Network Stack
Proxy
Admin /
Security
YUM
Public
Subnet
Public
Subnet
AZ 1
AZ 2
NAT Gateway
Bastion
Internet
Gateway
Private Subnet
Private Subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Assembly – Managed Services
Proxy
Admin /
Security
YUM
Private Subnet
Private Subnet
Public
Subnet
Public
Subnet
AZ 1
AZ 2
NAT Gateway
Bastion
Internet
Gateway
Redis ElasticsearchENI
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ENI Logstash Redis ElasticsearchProxy
Assembly – Logstash Stack
Admin /
Security
Users
YUM
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Assembly – Web Services / Filebeat
ENI LogstashApache / Filebeat Redis ElasticsearchProxy
Admin /
Security
YUM
Users
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cloudformation is the Deployment Tool
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Templates
• Networking – creates the VPC, subnets, and portal
• Redis – creates the Elasticache Redis cluster in the VPC
• Logstash – creates instances for and deploys Logstash
• Application – deploys the application and filebeats
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Understand Kibana
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
host:199.72.81.55 with <histogram of verb>
1,
4,
8,
12,
30,
42,
58,
100
...
Look up
199.72.81.55
Field data
GET
GET
POST
GET
PUT
GET
GET
POST
Buckets
GET
POST
PUT
5
2
1
Counts
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES aggregations
Buckets – a collection of documents meeting some
criterion
Metrics – calculations on the content of buckets
Bucket: time
Metric:count
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A more complicated aggregation
Bucket: ARN
Bucket: Region
Bucket: eventName
Metric: Count
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES: Metrics for summary reporting
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES: Line charts graphing metrics
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES: Area charts break out
components of a total
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES: Pie charts show correlations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES: Heatmaps to find hot spots
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES: Vertical bar charts for histograms
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THANK YOU!
C L I C K T O A D D T E X T
C L I C K T O A D D T E X T

More Related Content

What's hot

GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game BalancingGAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
Amazon Web Services
 
Build a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million usersBuild a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million users
Amazon Web Services
 

What's hot (20)

NEW LAUNCH! AWS Serverless Application Repository - SRV215 - re:Invent 2017
NEW LAUNCH! AWS Serverless Application Repository - SRV215 - re:Invent 2017NEW LAUNCH! AWS Serverless Application Repository - SRV215 - re:Invent 2017
NEW LAUNCH! AWS Serverless Application Repository - SRV215 - re:Invent 2017
 
Big Data, Analytics and Machine Learning on AWS Lambda - SRV402 - re:Invent 2017
Big Data, Analytics and Machine Learning on AWS Lambda - SRV402 - re:Invent 2017Big Data, Analytics and Machine Learning on AWS Lambda - SRV402 - re:Invent 2017
Big Data, Analytics and Machine Learning on AWS Lambda - SRV402 - re:Invent 2017
 
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
 
ARC210_Building Scalable Multi-Tenant Email Sending Programs
ARC210_Building Scalable Multi-Tenant Email Sending ProgramsARC210_Building Scalable Multi-Tenant Email Sending Programs
ARC210_Building Scalable Multi-Tenant Email Sending Programs
 
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
CMP216_Use Amazon EC2 Spot Instances to Deploy a Deep Learning Framework on A...
 
FSV305-Optimizing Payments Collections with Containers and Machine Learning
FSV305-Optimizing Payments Collections with Containers and Machine LearningFSV305-Optimizing Payments Collections with Containers and Machine Learning
FSV305-Optimizing Payments Collections with Containers and Machine Learning
 
WPS301-Navigating HIPAA and HITRUST_QuickStart Guide to Account Gov Strat.pdf
WPS301-Navigating HIPAA and HITRUST_QuickStart Guide to Account Gov Strat.pdfWPS301-Navigating HIPAA and HITRUST_QuickStart Guide to Account Gov Strat.pdf
WPS301-Navigating HIPAA and HITRUST_QuickStart Guide to Account Gov Strat.pdf
 
MCL303-Deep Learning with Apache MXNet and Gluon
MCL303-Deep Learning with Apache MXNet and GluonMCL303-Deep Learning with Apache MXNet and Gluon
MCL303-Deep Learning with Apache MXNet and Gluon
 
AMF303-Deep Dive into the Connected Vehicle Reference Architecture.pdf
AMF303-Deep Dive into the Connected Vehicle Reference Architecture.pdfAMF303-Deep Dive into the Connected Vehicle Reference Architecture.pdf
AMF303-Deep Dive into the Connected Vehicle Reference Architecture.pdf
 
GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game BalancingGAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
 
ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
 
Build a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million usersBuild a Website & Mobile App for your first 10 million users
Build a Website & Mobile App for your first 10 million users
 
MAE401_Designing for DisneyMarvel Studio-Grade Security
MAE401_Designing for DisneyMarvel Studio-Grade SecurityMAE401_Designing for DisneyMarvel Studio-Grade Security
MAE401_Designing for DisneyMarvel Studio-Grade Security
 
IOT207_Panasonic—Building the Road of the Future on AWS
IOT207_Panasonic—Building the Road of the Future on AWSIOT207_Panasonic—Building the Road of the Future on AWS
IOT207_Panasonic—Building the Road of the Future on AWS
 
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204) NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
NEW LAUNCH! Building Alexa Skills for Businesses (ALX204)
 
Optimising Cost and Efficiency on AWS
Optimising Cost and Efficiency on AWSOptimising Cost and Efficiency on AWS
Optimising Cost and Efficiency on AWS
 
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDBSRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
SRV301-Optimizing Serverless Application Data Tiers with Amazon DynamoDB
 
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
 
Building Best Practices and the Right Foundation for your 1st Production Work...
Building Best Practices and the Right Foundation for your 1st Production Work...Building Best Practices and the Right Foundation for your 1st Production Work...
Building Best Practices and the Right Foundation for your 1st Production Work...
 
An Overview of Best Practices for Large Scale Migrations
An Overview of Best Practices for Large Scale MigrationsAn Overview of Best Practices for Large Scale Migrations
An Overview of Best Practices for Large Scale Migrations
 

Similar to Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - re:Invent 2017

Similar to Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - re:Invent 2017 (20)

ABD331_Log Analytics at Expedia Using Amazon Elasticsearch Service
ABD331_Log Analytics at Expedia Using Amazon Elasticsearch ServiceABD331_Log Analytics at Expedia Using Amazon Elasticsearch Service
ABD331_Log Analytics at Expedia Using Amazon Elasticsearch Service
 
Innovations fueled by IoT and the Cloud
Innovations fueled by IoT and the CloudInnovations fueled by IoT and the Cloud
Innovations fueled by IoT and the Cloud
 
ABD206-Building Visualizations and Dashboards with Amazon QuickSight
ABD206-Building Visualizations and Dashboards with Amazon QuickSightABD206-Building Visualizations and Dashboards with Amazon QuickSight
ABD206-Building Visualizations and Dashboards with Amazon QuickSight
 
IOT311_Customer Stories of Things, Cloud, and Analytics on AWS
IOT311_Customer Stories of Things, Cloud, and Analytics on AWSIOT311_Customer Stories of Things, Cloud, and Analytics on AWS
IOT311_Customer Stories of Things, Cloud, and Analytics on AWS
 
STG401_This Is My Architecture
STG401_This Is My ArchitectureSTG401_This Is My Architecture
STG401_This Is My Architecture
 
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
 
Real-time Analytics using Data from IoT Devices - AWS Online Tech Talks
Real-time Analytics using Data from IoT Devices - AWS Online Tech TalksReal-time Analytics using Data from IoT Devices - AWS Online Tech Talks
Real-time Analytics using Data from IoT Devices - AWS Online Tech Talks
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
 
Building a Real-Time Data Platform on AWS
Building a Real-Time Data Platform on AWSBuilding a Real-Time Data Platform on AWS
Building a Real-Time Data Platform on AWS
 
NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
 
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
 
Improving Microservice and Serverless Observability with Monitoring Data - SR...
Improving Microservice and Serverless Observability with Monitoring Data - SR...Improving Microservice and Serverless Observability with Monitoring Data - SR...
Improving Microservice and Serverless Observability with Monitoring Data - SR...
 
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingGPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
 
GPS: Industry 4.0: AI and the Future of Manufacturing - GPSTEC326 - re:Invent...
GPS: Industry 4.0: AI and the Future of Manufacturing - GPSTEC326 - re:Invent...GPS: Industry 4.0: AI and the Future of Manufacturing - GPSTEC326 - re:Invent...
GPS: Industry 4.0: AI and the Future of Manufacturing - GPSTEC326 - re:Invent...
 
ARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million UsersARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million Users
 
Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...
Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...
Technological Accelerants for Organizational Transformation - DVC303 - re:Inv...
 
DVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational TransformationDVC303-Technological Accelerants for Organizational Transformation
DVC303-Technological Accelerants for Organizational Transformation
 
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
 
透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)
透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)
透過最新的 AWS 服務在 2019 年為您的業務轉型 (Level 200)
 
Reactive Architectures with Microservices
Reactive Architectures with MicroservicesReactive Architectures with Microservices
Reactive Architectures with Microservices
 

More from Amazon 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

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
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 

Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - re:Invent 2017

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS re:INVENT Easy and Scalable Log Analytics with Amazon Elasticsearch Service J o n H a n d l e r , P r i n c i p a l S A K e v i n F a l l i s , S A D a r i n B r i s k m a n , E v a n g e l i s t
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Overview • Build and deploy a web app to to search a small movies database • Deploy an Amazon Elasticsearch Service domain in your VPC • Monitor the web app by sending Apache access_logs to Amazon Elasticsearch Service
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Transition from IT to DevOps Increase in IoT and Mobile Devices Cloud-based architectures Machine-generated data is growing 10x faster than business data Source: insideBigData - The Exponential Growth of Data, February 16, 2017 THE EXPLOSION OF MACHINE-GENERATED DATA
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Source: TechCrunch survey of popular open source software from April’17 Open source Fast time to value Easy ingestion Easy visualization High performance and distributed Best analytics and search LOG ANALYTICS FUELING ELASTICSEARCH GROWTH Rank Project Name Overall Project Rating 1 Linux 100.00 2 Git 31.10 3 MySQL 25.23 4 Node.js 22.75 5 Docker 22.61 6 Hadoop 16.19 7 Elasticsearch 15.72 8 Spark 14.99 9 MongoDB 14.68 10 Selenium 12.81 11 NPM 12.31 12 Redis 11.61 B E N E F I T S
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ELASTICSEARCH LEADING USE CASES Application Monitoring & Root-cause Analysis Security Information and Event Management (SIEM) IoT & Mobile Business & Clickstream Analytics Provides developers with a high performance, self-service operational monitoring and analytics platform Enables security practitioners to centralize and analyze events from across the entire organization Gives developers and lines of business users real-time location-aware insights into their device fleets Provides business users with a real-time view of the performance of their web content and e-commerce platforms
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Elasticsearch Service is a fully managed service that makes it easy to deploy, manage, and scale Elasticsearch and Kibana A M A Z ON E L A ST IC SE AR C H S E R V IC E +
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Application Monitoring & Root-cause Analysis C A S E S T U D Y : EXPEDI A Logs, lots and lots of logs. How to cost effectively monitor logs? Require centralized logging infrastructure Did not have the man power to manage infrastructure P R O B L E M Quick insights: Able to identify and troubleshoot issues in real-time Secure: Integrated w/ AWS IAM Scalable: Cluster sizes are able to grow to accommodate additional log sources B E N E F I T S Streaming CloudTrail logs, application logs, and Docker startup logs to Elasticsearch Created centralized logging service for all team members Using Kibana for visualizations and for ES queries S O L U T I O N © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Business and Clickstream Analytics C A S E S T U D Y : FI NANC I AL T I MES What stories do our readers care about? What’s hot? Required a custom clickstream analytics solution Need a solution that delivers analytics in real-time Did not have a team to manage analytics infrastructure P R O B L E M B E N E F I T S Streaming user data to Elasticsearch Service for analysis. Created their own custom dashboards for editors and journalists – Lantern. Lantern - ”shines a light” on reader activity for the editors and journalists at the FT Critical tool for making editorial decisions. Daily editorial meetings start by looking at Lantern dashboard S O L U T I O N © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Reliability : Lantern is used throughout the day by journalists and editors. Relying on Amazon to manage their systems for maximum uptime. Cost savings: Able to easily tune their cluster to meet their needs with minimal management overhead
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. B E N E F I T S OF AMAZON ELAST I C SEAR C H SER V I C E 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 Elasticsearch 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 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
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Software & Internet Financial ServicesEducation Technology BioTech and Pharma Media and Entertainment Social Media Telecommunications Travel & Transportation Real Estate Logistics & Operations Publishing Other AMAZON ELASTI CSEARCH SERV I CE CUSTOMERS
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Elastic Stack is the foundation for the solution Elasticsearch – distributed search engine for logs Logstash – simple tool for transforming and streaming data into ES Kibana – Easy to use tool for visualization of log data in Elasticsearch
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. * NEW * Amazon Elasticsearch VPC Support • Private networking between your VPC and Amazon Elasticsearch Service • Traffic does not traverse the public internet • Use IAM policies and security groups for authentication and access control VPC subnet security group VPC subnet security group Amazon Elasticsearch Service Data Master Data Master IAM IAM Availability Zone B Availability Zone A
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architectural Approach (Logging) FB Apache FB Apache FB Apache Log Shippers Buffer Log Indexers Search ApplicationTraffic Amazon Elasticsearch Service
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architectural Approach (Web Serving) App Apache App Apache App Apache Application PHP/Apache Search Amazon Elasticsearch Service
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Portal SSH Secure Access Analysis & Visualization Amazon Elasticsearch Service Architectural Approach (Analysis)
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Managed services in the lab • Amazon Elasticsearch Service – Analysis and search for log data • Elasticache (Redis) – Buffering and collation for logs flowing through the system • Route 53 – (DNS) – DNS name resolution to route traffic to Redis and Amazon Elasticsearch Service • CFN – (CloudFormation) – Deploys the full solution from the AWS console • CloudTrail – Audit access to the administrative commands across AWS
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security for the lab architecture • VPC – (Virtual Private Cloud) - Isolated networking that keeps traffic within the AWS network • ENI – (Elastic Network Interface) – Private networking for managed services – Elasticache & Elasticsearch • NAT Gateway – One IP address that hides my servers from the world • ALB – (Application Load Balancer) – Limits access and exposes perimeter to DDOS attacks • Security Groups – ensure only trusted entities can talk to my servers • Subnets – Coupled with Route Tables Limits Specific Traffic SG
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Assembly – Network Stack Proxy Admin / Security YUM Public Subnet Public Subnet AZ 1 AZ 2 NAT Gateway Bastion Internet Gateway Private Subnet Private Subnet
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Assembly – Managed Services Proxy Admin / Security YUM Private Subnet Private Subnet Public Subnet Public Subnet AZ 1 AZ 2 NAT Gateway Bastion Internet Gateway Redis ElasticsearchENI
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ENI Logstash Redis ElasticsearchProxy Assembly – Logstash Stack Admin / Security Users YUM
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Assembly – Web Services / Filebeat ENI LogstashApache / Filebeat Redis ElasticsearchProxy Admin / Security YUM Users
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cloudformation is the Deployment Tool
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Templates • Networking – creates the VPC, subnets, and portal • Redis – creates the Elasticache Redis cluster in the VPC • Logstash – creates instances for and deploys Logstash • Application – deploys the application and filebeats
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Understand Kibana
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. host:199.72.81.55 with <histogram of verb> 1, 4, 8, 12, 30, 42, 58, 100 ... Look up 199.72.81.55 Field data GET GET POST GET PUT GET GET POST Buckets GET POST PUT 5 2 1 Counts
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES aggregations Buckets – a collection of documents meeting some criterion Metrics – calculations on the content of buckets Bucket: time Metric:count
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A more complicated aggregation Bucket: ARN Bucket: Region Bucket: eventName Metric: Count
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES: Metrics for summary reporting
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES: Line charts graphing metrics
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES: Area charts break out components of a total
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES: Pie charts show correlations
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES: Heatmaps to find hot spots
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES: Vertical bar charts for histograms
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. THANK YOU! C L I C K T O A D D T E X T C L I C K T O A D D T E X T