SlideShare a Scribd company logo
Nov 9, 2019
Keiichiro Seto
EC Incubation Department Dept.
Rakuten, Inc.
2
•
• 瀨戸 啓一朗
•
•
(競技プログラミング)
•
•
•
•
•
3
4
https://kubernetes.io
CC-BY-4.0LICENSE
5
6
pod
• Same Volume
• Same IP Address
• Some containers
Node
• Real/Virtual Machine
• Pods run on Node
Cluster
• Composed of Nodes
manifest
• File which configure
kubernetes resource
like Pod.
How to collect and utilize logs at Kubernetes with Elastic Stack
8
9
You
10
https://kubernetes.io/docs/concepts/cluster-administration/logging/#cluster-level-logging-architectures
Log Backend
11
Pod → Node → Backend
Pod → Backend
Container → Backend
12
標準出力
stdout
stderr
13
But…
14
•
• https://kubernetes.io/docs/concepts/cluster-administration/logging/
•
•
•
•
•
15
Log
Backend
16
Pod → Node → Backend
Pod → Backend
Container → Backend
17
•
•
•
18
•
•
•
•
•
•
19
Pod → Node → Backend
Pod → Backend
Container → Backend
20
•
•
21
Pod → Node → Backend
Pod → Backend
Container → Backend
22
Each Node Sidecar Application
Pros
kubectl logs
Less resources
Flexibility
Redundant
Flexibility
Redundant
Cons Dependency More resources Enlargement of Image
23
elastic.co
24
※
25
26
27
28
https://github.com/nginxinc/docker-nginx/blob/master/stable/alpine/Dockerfile
29
30
•
•
•
•
•
•
•
•
31
32
33
•
•
Searching Alerting Monitoring
CPU Memory Transaction Exception
34
APM works on Rails by gem.
It sends structured data.
It creates graphs like these
automatically.
35
36
You can find logs in the way which goes well with kubernetes
specific Node. some application.
some version
managed by label
etc.
37
kubernetes.pod.name: myapp-* AND nginx.status: >= 500
38
•
•
•
•
•
•
•
•
https://www.elastic.co/guide/jp/x-pack/current/watcher-getting-started.html
39
Success Rate of each API
40
Duration
41
•
•
•
•
42
43

More Related Content

PDF
Unclouding Container Challenges
PDF
Virtualizing Apache Spark with Justin Murray
PDF
Putting Kafka Together with the Best of Google Cloud Platform
PDF
12.07.2017 Docker Meetup - POSTGRE SQL ON KUBERNETES
PPTX
Keeping Analytics Data Fresh in a Streaming Architecture | John Neal, Qlik
PPTX
Tensorflow London 13: Barbara Fusinska 'Hassle Free, Scalable, Machine Learni...
PDF
Kafka Excellence at Scale – Cloud, Kubernetes, Infrastructure as Code (Vik Wa...
PDF
Kubernetes-Native DevOps: For Apache Kafka® with Confluent
Unclouding Container Challenges
Virtualizing Apache Spark with Justin Murray
Putting Kafka Together with the Best of Google Cloud Platform
12.07.2017 Docker Meetup - POSTGRE SQL ON KUBERNETES
Keeping Analytics Data Fresh in a Streaming Architecture | John Neal, Qlik
Tensorflow London 13: Barbara Fusinska 'Hassle Free, Scalable, Machine Learni...
Kafka Excellence at Scale – Cloud, Kubernetes, Infrastructure as Code (Vik Wa...
Kubernetes-Native DevOps: For Apache Kafka® with Confluent

What's hot (20)

PDF
Automate Your Kafka Cluster with Kubernetes Custom Resources
PDF
How Confluent Completes the Event Streaming Platform (Addison Huddy & Dan Ros...
PDF
Deploying Kafka Streams Applications with Docker and Kubernetes
PPTX
Navigating the obdervability storm with Kafka | Jose Manuel Cristobal, Adidas
PDF
Creating an Elastic Platform Using Kafka and Microservices in OpenShift
PDF
Back your App with MySQL & Redis, the Cloud Foundry Way- Kenny Bastani, Pivotal
PPTX
Introduction to Container Storage Interface (CSI)
PDF
Safer Commutes & Streaming Data | George Padavick, Ohio Department of Transpo...
PDF
DevNation Live: Kafka and Debezium
PDF
Kafka for begginer
PDF
Persist your data in an ephemeral k8 ecosystem
PDF
Give Your Confluent Platform Superpowers! (Sandeep Togrika, Intel and Bert Ha...
PDF
Azure Labs: Confluent on Azure Container Services & Real-time Search with Red...
PDF
基於 K8S 開發的 FaaS 專案 - riff
PDF
From my sql to postgresql using kafka+debezium
PPTX
RedisConf17 - Smartwaiver - Using Redis for Kiosk Registration Command and Co...
PDF
Storage os kubernetes clusters need persistent data
PDF
Moving 150 TB of data resiliently on Kafka With Quorum Controller on Kubernet...
PDF
RedisConf17 - Explosion of Data at the Edge in Equinix
PDF
Bitsy graph database
Automate Your Kafka Cluster with Kubernetes Custom Resources
How Confluent Completes the Event Streaming Platform (Addison Huddy & Dan Ros...
Deploying Kafka Streams Applications with Docker and Kubernetes
Navigating the obdervability storm with Kafka | Jose Manuel Cristobal, Adidas
Creating an Elastic Platform Using Kafka and Microservices in OpenShift
Back your App with MySQL & Redis, the Cloud Foundry Way- Kenny Bastani, Pivotal
Introduction to Container Storage Interface (CSI)
Safer Commutes & Streaming Data | George Padavick, Ohio Department of Transpo...
DevNation Live: Kafka and Debezium
Kafka for begginer
Persist your data in an ephemeral k8 ecosystem
Give Your Confluent Platform Superpowers! (Sandeep Togrika, Intel and Bert Ha...
Azure Labs: Confluent on Azure Container Services & Real-time Search with Red...
基於 K8S 開發的 FaaS 專案 - riff
From my sql to postgresql using kafka+debezium
RedisConf17 - Smartwaiver - Using Redis for Kiosk Registration Command and Co...
Storage os kubernetes clusters need persistent data
Moving 150 TB of data resiliently on Kafka With Quorum Controller on Kubernet...
RedisConf17 - Explosion of Data at the Edge in Equinix
Bitsy graph database
Ad

Similar to How to collect and utilize logs at Kubernetes with Elastic Stack (20)

PDF
Kubernetes deployment on bare metal with container linux
PPTX
Docker Kubernetes Istio
PDF
Openstack India May Meetup
PPTX
CON411-R - Advanced network resource management on Amazon EKS
PDF
Spring on Kubernetes
PDF
[KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui...
PDF
An overview of the Kubernetes architecture
PDF
Running a database on local NVMes on Kubernetes
PDF
Running a database on local NVMes on Kubernetes
PDF
321 codeincontainer brewbox
KEY
MongoDB on CloudFoundry
KEY
MongoDB on CloudFoundry
KEY
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
PPTX
Interop 2017 - Managing Containers in Production
PPTX
Scylla on Kubernetes: Introducing the Scylla Operator
PDF
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChanger
PPTX
Dayta AI Seminar - Kubernetes, Docker and AI on Cloud
PDF
[WSO2Con Asia 2018] Deploying Applications in K8S and Docker
PDF
How to debug IoT Agents
PDF
Achieving Infrastructure Portability with Chef
Kubernetes deployment on bare metal with container linux
Docker Kubernetes Istio
Openstack India May Meetup
CON411-R - Advanced network resource management on Amazon EKS
Spring on Kubernetes
[KubeConUS2019 Docker, Inc. Booth] Distributed Builds on Kubernetes with Bui...
An overview of the Kubernetes architecture
Running a database on local NVMes on Kubernetes
Running a database on local NVMes on Kubernetes
321 codeincontainer brewbox
MongoDB on CloudFoundry
MongoDB on CloudFoundry
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
Interop 2017 - Managing Containers in Production
Scylla on Kubernetes: Introducing the Scylla Operator
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChanger
Dayta AI Seminar - Kubernetes, Docker and AI on Cloud
[WSO2Con Asia 2018] Deploying Applications in K8S and Docker
How to debug IoT Agents
Achieving Infrastructure Portability with Chef
Ad

More from Rakuten Group, Inc. (20)

PDF
EPSS (Exploit Prediction Scoring System)モニタリングツールの開発
PPTX
コードレビュー改善のためにJenkinsとIntelliJ IDEAのプラグインを自作してみた話
PDF
楽天における安全な秘匿情報管理への道のり
PDF
What Makes Software Green?
PDF
Simple and Effective Knowledge-Driven Query Expansion for QA-Based Product At...
PDF
DataSkillCultureを浸透させる楽天の取り組み
PDF
大規模なリアルタイム監視の導入と展開
PDF
楽天における大規模データベースの運用
PDF
楽天サービスを支えるネットワークインフラストラクチャー
PDF
楽天の規模とクラウドプラットフォーム統括部の役割
PDF
Rakuten Services and Infrastructure Team.pdf
PDF
The Data Platform Administration Handling the 100 PB.pdf
PDF
Supporting Internal Customers as Technical Account Managers.pdf
PDF
Making Cloud Native CI_CD Services.pdf
PDF
How We Defined Our Own Cloud.pdf
PDF
Travel & Leisure Platform Department's tech info
PDF
Travel & Leisure Platform Department's tech info
PDF
OWASPTop10_Introduction
PDF
Introduction of GORA API Group technology
PDF
100PBを越えるデータプラットフォームの実情
EPSS (Exploit Prediction Scoring System)モニタリングツールの開発
コードレビュー改善のためにJenkinsとIntelliJ IDEAのプラグインを自作してみた話
楽天における安全な秘匿情報管理への道のり
What Makes Software Green?
Simple and Effective Knowledge-Driven Query Expansion for QA-Based Product At...
DataSkillCultureを浸透させる楽天の取り組み
大規模なリアルタイム監視の導入と展開
楽天における大規模データベースの運用
楽天サービスを支えるネットワークインフラストラクチャー
楽天の規模とクラウドプラットフォーム統括部の役割
Rakuten Services and Infrastructure Team.pdf
The Data Platform Administration Handling the 100 PB.pdf
Supporting Internal Customers as Technical Account Managers.pdf
Making Cloud Native CI_CD Services.pdf
How We Defined Our Own Cloud.pdf
Travel & Leisure Platform Department's tech info
Travel & Leisure Platform Department's tech info
OWASPTop10_Introduction
Introduction of GORA API Group technology
100PBを越えるデータプラットフォームの実情

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Approach and Philosophy of On baking technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Big Data Technologies - Introduction.pptx
A comparative analysis of optical character recognition models for extracting...
Approach and Philosophy of On baking technology
Chapter 3 Spatial Domain Image Processing.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Assigned Numbers - 2025 - Bluetooth® Document
Building Integrated photovoltaic BIPV_UPV.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Dropbox Q2 2025 Financial Results & Investor Presentation
Big Data Technologies - Introduction.pptx

How to collect and utilize logs at Kubernetes with Elastic Stack