kelk stack on aws

24

Upload: steamhaus

Post on 22-Jan-2018

134 views

Category:

Internet


5 download

TRANSCRIPT

Page 1: KELK Stack on AWS
Page 2: KELK Stack on AWS

SteamhausKELK ON AWS

Who am I?Sean Clerkin Senior Site Reliability Engineer

Page 3: KELK Stack on AWS

Logging is difficult

Page 4: KELK Stack on AWS

No centralised loggingUser needs OS

knowledgeDistribution

Of keys

Enemy of autoscaling

Log rotation

Users download logs unnecessarily

Doesn’t scale To many servers

Slow to find issues

Alertingis hard

Sshing to servers :(

Page 5: KELK Stack on AWS

SteamhausKELK ON AWS

ELK is awesomE

Page 6: KELK Stack on AWS

SteamhausKELK ON AWS

ELK on ec2

Page 7: KELK Stack on AWS

SteamhausKELK ON AWS

KELK on AWS

• Low maintenance - No ec2, Uses entirely AWS serverless technologies and services

• ALB, Cloudfront and Cloudtrail logs are ingested as well as EC2 logs

• Logs are archived in S3 for long term storage, and indexed in Elasticsearch for short term analytics

• Automated with Terraform

• Open source

Kinesis: buffering and delivering instance logs Elasticsearch: Indexing and log storage Lambda: processing and delivering S3 logs Kibana: Search and analytics

Page 8: KELK Stack on AWS

SteamhausKELK ON AWS

How does it work?

Page 9: KELK Stack on AWS

SteamhausKELK ON AWS

Page 10: KELK Stack on AWS

SteamhausKELK ON AWS

Page 11: KELK Stack on AWS

SteamhausKELK ON AWS

Page 12: KELK Stack on AWS

SteamhausKELK ON AWS

Page 13: KELK Stack on AWS

SteamhausKELK ON AWS

Page 14: KELK Stack on AWS

SteamhausKELK ON AWS

Page 15: KELK Stack on AWS

SteamhausKELK ON AWS

Page 16: KELK Stack on AWS

SteamhausKELK ON AWS

Page 17: KELK Stack on AWS

SteamhausKELK ON AWS

Page 18: KELK Stack on AWS

SteamhausKELK ON AWS

Page 19: KELK Stack on AWS

SteamhausKELK ON AWS

Page 20: KELK Stack on AWS

SteamhausKELK ON AWS

Page 21: KELK Stack on AWS

SteamhausKELK ON AWS

Automationcode

Sample Web Stack

VPC

ALB

EC2

LoggingStack

Kinesis

ElasticsearchService

Lambda

S3

CloudfrontPython

Terraform

Do try this at home!github.com/steamhaus/kelk-example

Page 22: KELK Stack on AWS

SteamhausKELK ON AWS

Callouts from the build• It’s not production ready, built for readability • Nailing iam and bucket policies can take a while! • Testing lambda - create a test event in the UI • Use Terraform, rinse and repeat

Page 23: KELK Stack on AWS

SteamhausKELK ON AWS

Any Questions..?

Page 24: KELK Stack on AWS

Thank you :)Contact [email protected] 820 2020@steamhausmcr

Locate us

Fourways House57 Hilton Street Manchester M1 2EJ