Log Analytics Withamazonelasticsearchservice
Log Analytics Withamazonelasticsearchservice
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What to do with a terabyte of logs?
Log analytics architecture
Amazon Amazon
Data
Kinesis Spark Streaming Elasticsearch
Sources
Streams Service
CloudTrail CloudWatch
Elasticsearch API
Elastic Load
IAM
Balancing
Amazon Route
53
Data pattern
Amazon ES cluster
• Index 1 Primary Replica
– Shard 1 1 1 1 3 2 1
– Shard 2 2 2
3 1 1 2
– Shard 3 3 3
Instance 1, Instance 2
Master
• Index 2 3 2
– Shard 1 1 1
2 3
– Shard 2 2 2
Instance 3
– Shard 3 3 3
How many instances?
Amazon ES cluster
1 3 2 1
3 1 1 2
Instance 1, Instance 2
Master
3 2
2 3
Instance 3
Cluster with dedicated masters
Amazon ES cluster
1 3 2 1
3 1 1 2
Instance 1 Instance 2
3 2
2 3
Amazon ES cluster
1 3 2 3 1 2
3 1 2 2 3 1
Application
Instance
Amazon
DynamoDB
Amazon S3
bucket AWS
Lambda
Amazon
CloudWatch
Amazon
Kinesis
Amazon
EMR
• Easy administration
• Build real time applications with framework of choice
• Low cost
Amazon Kinesis Firehose
• Zero administration
• Direct-to-data store integration
• Seamless elasticity
Amazon Kinesis Analytics
[{" [{
"recordId": "1234", "recordId": "1234",
"data": "encoded-data" "result": "Ok"
}, "data": "encoded-data"
{ },
"recordId": "1235", {
"data": "encoded-data" "recordId": "1235",
} "result": "Dropped"
] "data": "encoded-data"
}
]
Kinesis Firehose delivery architecture with
transformations
Data transformation
function
S3 bucket
delivery failure
transformation failure
source records
Kinesis Firehose features for ingest
Bucket: time
host:199.72.81.55 with <histogram of verb>
199.72.81.55
1, GET GET 5
4, GET POST 2
8, POST PUT 1
12, GET
30, PUT
42, GET
58, GET
100 POST
...
Bucket: ARN
Bucket: Region
Bucket: eventName
Metric: Count
Best practices
Qwiklab:
https://qwiklabs.com/searches/lab?keywords=introduction
%20to%20amazon%20elasticsearch%20service
Centralized logging solution
https://aws.amazon.com/answers/logging/centralized-
logging/
Our overview page on AWS
https://aws.amazon.com/elasticsearch-service/
Q&A