centralized logging on mesos using elk stack

8
Centralized logging solution on Mesos using ELK stack Imran Shaikh Lead Systems Engineer YellowPages

Upload: theelasticcomputeguy

Post on 14-Apr-2017

1.805 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Centralized logging on Mesos using ELK stack

Centralized logging solution on Mesos using ELK stack

Imran ShaikhLead Systems Engineer

YellowPages

Page 2: Centralized logging on Mesos using ELK stack

Issues?• No consolidated view

– The problem gets worse if you are running multiple instances of an app.• How do you debug the issue?

– Which container has the problem?• Lets say you are able to identify the container and there is nothing on

STDOUT/STDERR:– how would you know its an issue with system, docker or mesos?– How do you stitch all this information together?

• Lets say you are able to stitch it together:– how do you know which mesos task and marathon app this container

belongs to?• There are multiple docker logging solutions, but none of the truly fits

Mesos landscape.

Page 3: Centralized logging on Mesos using ELK stack

Mesos SlaveDocker Container 1 Docker Container nDocker Container 2

YP Logspout Container

Syslog

Logstash forwarder Container

Logstash Cluster

ElasticSearch Cluster

Kibana Container 1 Kibana Container 2 Kibana Container 3

Logstash 1 Logstash 2 Logstash 3 Logstash n

ES 1 ES 2 ES 3 ES n

Mesos DNS

System logs

Mesos logs

Docker logs

Page 4: Centralized logging on Mesos using ELK stack

What are we doing at YP Engineering?

• Writing bunch of Mesos supported technologies:– Logging– Dynamically provisioning Application Secrets to

containers– Persistent storage– Distributed Monitoring & Alerting– Metrics– Self-serve– Etc.

Page 5: Centralized logging on Mesos using ELK stack

• Open source contribution:www.github.com/yp-engineering

• You can reach us at:IRC: chat.freenode.net (#yp-engineering)Twitter: @imranshaikhEmail: [email protected], [email protected]

• Any questions?We have a big contingent of a team here.

Page 6: Centralized logging on Mesos using ELK stack
Page 7: Centralized logging on Mesos using ELK stack
Page 8: Centralized logging on Mesos using ELK stack