Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Logging Architecture for MicroService
Search
@ジュジュ
May 28, 2018
Technology
0
3.7k
Logging Architecture for MicroService
fluentdを利用したLogging
@ジュジュ
May 28, 2018
Tweet
Share
More Decks by @ジュジュ
See All by @ジュジュ
チーム分割においていかれたアラートをチームで責任を持てる形に再設計した
juju62q
0
140
ボトムアップでSLOを導入 2年半運用して分かった失敗と変化
juju62q
2
1k
Firecracker Snapshottingを調べてみた
juju62q
1
550
SLOを活用した技術的改善
juju62q
10
10k
IAM Role for Pods and Instance Meta Data Service
juju62q
1
1.5k
telepresence handson
juju62q
2
5k
Wanna Use Vitess in Orientation
juju62q
6
1.3k
machine learning with rancher and K8s on prem
juju62q
5
440
docker-handson-for-researcher
juju62q
3
310
Other Decks in Technology
See All in Technology
米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
2
790
Observability infrastructure behind the trillion-messages scale Kafka platform
lycorptech_jp
PRO
0
130
Windows 11 で AWS Documentation MCP Server 接続実践/practical-aws-documentation-mcp-server-connection-on-windows-11
emiki
0
690
Oracle Cloud Infrastructure:2025年6月度サービス・アップデート
oracle4engineer
PRO
1
140
活きてなかったデータを活かしてみた話 / Shirokane Kougyou vol 19
sansan_randd
1
410
Amplifyとゼロからはじめた AIコーディング 成果と展望
mkdev10
1
360
BrainPadプログラミングコンテスト記念LT会2025_社内イベント&問題解説
brainpadpr
0
150
讓測試不再 BB! 從 BDD 到 CI/CD, 不靠人力也能 MVP
line_developers_tw
PRO
0
1.1k
A2Aのクライアントを自作する
rynsuke
1
150
キャディでのApache Iceberg, Trino採用事例 -Apache Iceberg and Trino Usecase in CADDi--
caddi_eng
0
170
AIの最新技術&テーマをつまんで紹介&フリートークするシリーズ #1 量子機械学習の入門
tkhresk
0
120
監視のこれまでとこれから/sakura monitoring seminar 2025
fujiwara3
10
2.9k
Featured
See All Featured
BBQ
matthewcrist
89
9.7k
Side Projects
sachag
455
42k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
Making Projects Easy
brettharned
116
6.2k
Agile that works and the tools we love
rasmusluckow
329
21k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
Scaling GitHub
holman
459
140k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Product Roadmaps are Hard
iamctodd
PRO
53
11k
RailsConf 2023
tenderlove
30
1.1k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Transcript
MicroService向け ロギングアーキテクチャ 2018/05/26 若手Web名古屋 岡野兼也
自己紹介 基本情報 • 岡野兼也 / @ジュジュ • 名古屋大学4年 • OthloTech運営
• 株式会社キスモ インフラエンジニア 好きな技術 仮想化、コンテナ、DevOps、IaC 趣味 登山、自転車、キャンプ、Kubernetes
みなさん!マイクロサービスしてますか?
マイクロサービスのここがすごい • 技術選定が自由 • アプリケーションごとにスケーリング可能 • コンテナめっちゃ使いやすい • 責任範囲がわかりやすい •
全体的に疎結合だしプログラムの改修が簡単 • CI/CDが高速 • 開発速度がめっちゃ上がる
None
本当にこんな楽しく運用できてる?
実際に使った時
None
マイクロサービスのここが辛い • ログ収集のために死ぬほどクライアント書かないと いけない • ライブラリにしてもメンテ大変 • 認証情報の管理がまぁまぁだるい • メトリクス監視を毎回やらないといけない
• 故障時にどのサーバが原因なのか特定しにくい
今回は!
マイクロサービス向け ロギングアーキテクチャを紹介します!
ログを抽象化する方法を紹介します
とっても愚直なログとり
+ 認証 コードにすると・・・
やることと考えること多すぎやん…
やりたいこと Log (テーブル名, なんかいい感じのJSON)
なんかいい感じのJSON 頭の悪い人
None
Fluentdとは
Log (テーブル名, なんかいい感じのJSON) ありとあらゆるアプリケーション
なぜサイドカーパターンじゃないのか • サイドカーにするメリット ◦ 構成が綺麗 ◦ アプリごとにまとめられる • サイドカーにするデメリット ◦
アプリケーションエンジニアがFluentdを制御しないといけ ない
設定例に関しては水曜日に OthloBlogに書きます! Coming soon ...
Fluentdはいいぞ!!!!