Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Datadog Logsで実現するオブザーバビリティの向上 / Enhancing Obser...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Akira Kuriyama
April 24, 2025
Technology
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Datadog Logsで実現するオブザーバビリティの向上 / Enhancing Observability with Datadog Logs
Akira Kuriyama
April 24, 2025
Transcript
15 slides
Confidential Datadog Logsで実現する オブザーバビリティの向上 @yabaibuki.dev#5
Copyright Hacobu, Inc. 2 自己紹介 栗山 聖 (@sheepland) 所属 株式会社Hacobu
プラットフォームチーム 仕事 プラットフォームエンジニアリング&SRE 趣味 漫画、SF小説、映画
Copyright Hacobu, Inc. 3 Metrics Logs Traces • Hacobuが収集しているログの種類 •
ログ収集方法 本日の内容
Copyright Hacobu, Inc. 4 ログ基盤には Datadog Logs を使用 各種ログをDatadogに集約 🐕
Copyright Hacobu, Inc. 5 収集しているログの紹介
Copyright Hacobu, Inc. 6 バックエンドアプリケーションログ ログがDatadog APMと紐付いている🤝 • APMのリクエストからそのリクエストが出力したログ を見れる
• またログからAPMのリクエストも辿れる
Copyright Hacobu, Inc. 7 バックエンドアプリケーションログ ちなみに、弊社はマルチプロダクト展開してるので プロダクト間通信がある そのためTrace IDの伝播が必要 プラットフォームチーム作成の共通ライブラリにより
プロダクト側で意識せずトレーシング可能
Copyright Hacobu, Inc. 8 フロントエンドログ ログがDatadog RUM(Real User Monitoring)と紐付い ている🤝
ログからユーザ操作履歴が確認できる
Copyright Hacobu, Inc. 9 スロークエリログ DB負荷やレスポンス遅延は大抵スロークエリが原因😥 スロークエリを Datadog Logs に送信
Copyright Hacobu, Inc. 10 スロークエリログ ⚔送信方法 Datadog Forwarder (AWS Lambda)
を使用 CloudWatch Logs → Forwarder → Datadog Logs Datadog Serverless Functions https://github.com/DataDog/datadog-serverless-functions の/aws/logs_monitoring
Copyright Hacobu, Inc. 11 スロークエリログ スロークエリログは構造化ログではない Datadog Logs のPipelineのGrok Parserで以下のような正規表現を定義し、
構造化データに変換している💪 これにより、スロークエリログ内のtimestamp, queryTime, queryなどの情報 をAttributeとして登録される rds_slowquery ^\# Time: %{date("yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ"):date}\n+\# User@Host: %{notSpace: user} @ \[%{ip: host}\] Id:[\x20\t]+%{number: id}\n+\# Query_time: %{number: queryTime} Lock_time: %{number: lockTime} Rows_sent: %{number: rowsSent} Rows_examined: %{number: rowsExamined}\n+ *SET timestamp=%{number: timestamp};\n+%{regex("[a-zA-Z].*"):query}.
Copyright Hacobu, Inc. 12 Lambdaログ CloudWatch Logsでの検索は大変。LambdaログもDatadogに送信 ただし料金対策のために 「実行頻度が低いLambdaに絞る」「エラーログのみ送信」などをしている 先ほどのDatadog
Forwarderを使って送信 → 最近は Datadog Lambda Extension を使うことが推奨
Copyright Hacobu, Inc. 13 ログ料金の下げるために、Datadog Logsの除外フィル ターで不要なログを保存しないように頑張っている
Copyright Hacobu, Inc. 14 まとめ • オブザーバビリティツールとログ基盤の統合をすると 調査がしやすい✨ • 特にスロークエリログを送るのはオススメ👈
Copyright Hacobu, Inc. 15 採用情報 Hacobuではエンジニアを積極採用中です! https://career.hacobu.jp/
More Decks by Akira Kuriyama
See All by Akira Kuriyama
ゼロから始める全社横断プロダクトセキュリティ / Building Organization-Wide Product Security
sheepland
0
220
Datadog On-Calを本番導入しました / Datadog On-Cal now in production
sheepland
0
790
コンテナ脆弱性修正をRenovate,Dependabotのように行う / Fix Container vulnerabilities on CICD
sheepland
2
640
Docker Build Cloudを導入してコンテナイメージビルド時間を80%削減した話 / Speeding Up Container Builds with Docker Build Cloud
sheepland
0
260
Design Doc のすすめ / The Importance of Design Docs
sheepland
0
1.7k
Datadogのグラフにデプロイタイミングを表示する / deploy timing on datadog graph
sheepland
1
850
英語学習の始め方 / How to start learning English
sheepland
0
150
Other Decks in Technology
See All in Technology
LLM 基盤と kagent v0 を全部 k8s に入れてみた / Deploy both LLM and kagent v0 in k8s
kota2and3kan
0
180
内製アプリとClaudeスキルのセキュリティチェック、 Backlogの課題で回しています。
ayaka_egaaa
0
180
速くなるほど、深く考える AI時代のQAに学ぶ
kobayashiyorimitsu
0
180
これからのデータエンジニアの役割について考える / Rethinking the Role of Data Engineers in the AI Era
okiyuki99
0
460
異夢同船〜異なる夢でも同じ船でなんとかする〜
fortegp05
0
120
自治体AIコンタクトセンター、何をどこに任せる?~Amazon Connect Customer +Amazon Bedrockの実践知~ / 20261107 Satoshi Torano
shift_evolve
PRO
1
130
Microsoft Entra Kerberos で実現するクラウド デバイス管理
tamaiyutaro
2
680
[JAWS Festa 2026]一番いい仕事は、請求書に現れない / jawsfesta2026
sh_fk2
2
510
AIエージェントの監視、思考を見るか行動を見るか / Monitoring AI Agents: Thoughts or Actions
yusukeshimizu
2
190
Reticulum, le réseau cypherpunk dont vous avez besoin !
rlifchitz
0
140
Shared Signals Framework 仕様解説
oidfj
0
420
An Introduction to Context Ontology Accelerator (teaching AI agents what your data means)
inariku
PRO
1
230
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
The Pragmatic Product Professional
lauravandoore
37
7.5k
The Limits of Empathy - UXLibs8
cassininazir
2
780
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Chasing Engaging Ingredients in Design
codingconduct
0
390
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
580