SlideShare a Scribd company logo
K8S LOG DISTRIBUTION
2
HELLO!
I am Gregory Fodé Sanderson
Jive DevOps team
You can email me at gregory.sanderson@logmein.com
3
PROBLEM DEFINITION
1
8 DATACENTERS
Distributed across US, Brazil & Europe
5
4000 PODS
Distributed across US, Brazil & Europe
6
10600 CONTAINERS
Distributed across US, Brazil & Europe
7
2TB LOGS PER DAY
Distributed across US, Brazil & Europe
8
A LOT OF LOGS !
How do we store them ?!?!?!?!?!
9
10
SOLUTION & DESIGN
2
SOLUTION & DESIGN
SOLUTION: LOG PRODUCERS
 Docker reconfigured to add log metadata
 DOCKER_OPTS=
--log-driver=json-file
--log-opt env=K8S_CLUSTER
--log-opt labels=
io.kubernetes.pod.name,
io.kubernetes.container.name,
io.kubernetes.container.restartCount,
io.kubernetes.pod.namespace
--log-opt max-size=20m
--log-opt max-file=2
SOLUTION: LOG PRODUCERS
 Filebeat
 Daemonset
 /var/lib/docker/containers/*/*.log
 Push logs to kafka
 Journalbeat
 Daemonset
 Reads logs from journald (system logs)
 Push logs to kafka
15
SOLUTION: LOG TRANSPORT
 Kafka
 Distributed data streaming pipelines
 Producer & Consumer model
 Fault tolerance for cluster & consumers
 Logstash
▻ Consumes logs and sends to ES cluster
▻ All instances part of the same consumer group
▻ Adds metadata to logs
SOLUTION: LOG TRANSPORT
grok {
match => { '[attrs][io.kubernetes.pod.name]' =>
'(?<service>.*).[0-9]+-(?<pod_id>[A-Za-z0-9]{5})' }
}
mutate {
add_field => {
'container' => '%{[attrs][io.kubernetes.container.name]}'
'provider' => ‘K8S'
}
replace => { "hostname" => "%{[beat][name]}.%{site}"}
}
SOLUTION: LOG STORAGE
 Elasticsearch
 Search engine + distributed document index
 Fault tolerant: shard replication
 Vast community of open source tooling
 Retention of 5 days
 Kibana
▻ Web UI for filtering Elasticsearch
▻ Used for searching and consulting logs
▻ Tag-based filtering
FUTURE PLANS: MOVE ES TO AWS
 Current cluster
▻ 3 bare metal servers
▻ 56 CPUs
▻ 256 RAM
▻ 2 Disks (2TB + 4TB)
 AWS cluster
▻ AWS ES managed
▻ 10 i3.2xlarge instances
▻ 64GB RAM
▻ NVMe 1.9 TB disks
▻ 2 AZ
20
21
THANKS!
Any questions?
You can find me at
gregory.sanderson@logmein.com

More Related Content

PPT
Directories
PDF
Ceph Internals
PPT
PDF
리눅스 간단 강의 5강
PDF
The Linux Command Cheat Sheet
PPT
3.3 perform basic file management
PDF
Building a userspace filesystem in node.js
PPT
101 3.3 perform basic file management
Directories
Ceph Internals
리눅스 간단 강의 5강
The Linux Command Cheat Sheet
3.3 perform basic file management
Building a userspace filesystem in node.js
101 3.3 perform basic file management

What's hot (6)

PPT
101 3.3 perform basic file management
PPTX
Basic unix
PDF
Doing Horrible Things with DNS - Web Directions South
PDF
DNS (BIND) on CentOS
PDF
Resume boda liao-storage
PPT
Redis深入浅出
101 3.3 perform basic file management
Basic unix
Doing Horrible Things with DNS - Web Directions South
DNS (BIND) on CentOS
Resume boda liao-storage
Redis深入浅出
Ad

Similar to Distributed Logging with Kubernetes (20)

PPT
Compact, Compress, De-Duplicate (DAOS)
PPT
PDF
Top 10 DB2 Support Nightmares #8
PDF
Top 10 DB2 Support Nightmares #8
PDF
Python in an Evolving Enterprise System (PyData SV 2013)
PDF
Setup oracle golden gate 11g replication
PPTX
Dockerizing Aurea - Docker Con EU 2017
PDF
MongoDB.local Austin 2018: MongoDB Ops Manager + Kubernetes
PDF
Automate DG Best Practices
PPTX
SEMLA_logging_infra
PDF
IT Press Tour #19 Slides OpenIO June 2016
PPTX
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
PDF
Customize and Secure the Runtime and Dependencies of Your Procedural Language...
PDF
DEF CON 27 - workshop - GUILLAUME ROSS - defending environments and hunting m...
DOCX
My First Hadoop Program !!!
PPTX
Building Your First App with Shawn Mcarthy
PDF
MongoDB.local DC 2018: MongoDB Ops Manager + Kubernetes
PPTX
OpenEBS hangout #4
PDF
Docker interview Questions-3.pdf
PPTX
Building Windows - how the bits flow from check-in to the fast-ring
Compact, Compress, De-Duplicate (DAOS)
Top 10 DB2 Support Nightmares #8
Top 10 DB2 Support Nightmares #8
Python in an Evolving Enterprise System (PyData SV 2013)
Setup oracle golden gate 11g replication
Dockerizing Aurea - Docker Con EU 2017
MongoDB.local Austin 2018: MongoDB Ops Manager + Kubernetes
Automate DG Best Practices
SEMLA_logging_infra
IT Press Tour #19 Slides OpenIO June 2016
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
Customize and Secure the Runtime and Dependencies of Your Procedural Language...
DEF CON 27 - workshop - GUILLAUME ROSS - defending environments and hunting m...
My First Hadoop Program !!!
Building Your First App with Shawn Mcarthy
MongoDB.local DC 2018: MongoDB Ops Manager + Kubernetes
OpenEBS hangout #4
Docker interview Questions-3.pdf
Building Windows - how the bits flow from check-in to the fast-ring
Ad

More from CloudOps2005 (20)

PDF
Defense in Depth: Securing your new Kubernetes cluster from the challenges th...
PPTX
Human No, Machine Yes: Welcome to the CDF with Incremental Confidence
PDF
The Salmon Algorithm Spawning with Kubernetes
PDF
Own your Destiny in the Cloud - Ian Rae - Cloud Native Day Montreal 2019
PDF
Plateformes et infrastructure infonuagique natif de ville de Montréall
PPTX
Using Rook to Manage Kubernetes Storage with Ceph
PDF
Kafka on Kubernetes
PDF
Kubernetes: Crossing the Chasm
PDF
Kubernetes Security with Calico and Open Policy Agent
PDF
Advanced Deployment Strategies with Kubernetes and Istio
PDF
GitOps with ArgoCD
PPTX
Kubernetes Services are sooo Yesterday!
PPTX
Amazon EKS: the good, the bad, and the ugly
PDF
Kubernetes, Terraform, Vault, and Consul
PDF
SIG Multicluster and the Path to Federation
PDF
To Russia with Love: Deploying Kubernetes in Exotic Locations On Prem
PDF
Operator SDK for K8s using Go
PPTX
How to Handle your Kubernetes Upgrades
PDF
Kubernetes and Cloud Native Meetup - March, 2019
PDF
Prometheus and Thanos
Defense in Depth: Securing your new Kubernetes cluster from the challenges th...
Human No, Machine Yes: Welcome to the CDF with Incremental Confidence
The Salmon Algorithm Spawning with Kubernetes
Own your Destiny in the Cloud - Ian Rae - Cloud Native Day Montreal 2019
Plateformes et infrastructure infonuagique natif de ville de Montréall
Using Rook to Manage Kubernetes Storage with Ceph
Kafka on Kubernetes
Kubernetes: Crossing the Chasm
Kubernetes Security with Calico and Open Policy Agent
Advanced Deployment Strategies with Kubernetes and Istio
GitOps with ArgoCD
Kubernetes Services are sooo Yesterday!
Amazon EKS: the good, the bad, and the ugly
Kubernetes, Terraform, Vault, and Consul
SIG Multicluster and the Path to Federation
To Russia with Love: Deploying Kubernetes in Exotic Locations On Prem
Operator SDK for K8s using Go
How to Handle your Kubernetes Upgrades
Kubernetes and Cloud Native Meetup - March, 2019
Prometheus and Thanos

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Spectroscopy.pptx food analysis technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Cloud computing and distributed systems.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
Advanced methodologies resolving dimensionality complications for autism neur...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Spectral efficient network and resource selection model in 5G networks
Network Security Unit 5.pdf for BCA BBA.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Spectroscopy.pptx food analysis technology
Review of recent advances in non-invasive hemoglobin estimation
Cloud computing and distributed systems.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Agricultural_Statistics_at_a_Glance_2022_0.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Electronic commerce courselecture one. Pdf
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology

Distributed Logging with Kubernetes

Editor's Notes