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
Akira Kuriyama
April 24, 2025
Technology
240
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
More Decks by Akira Kuriyama
See All by Akira Kuriyama
ゼロから始める全社横断プロダクトセキュリティ / Building Organization-Wide Product Security
sheepland
0
200
Datadog On-Calを本番導入しました / Datadog On-Cal now in production
sheepland
0
760
コンテナ脆弱性修正をRenovate,Dependabotのように行う / Fix Container vulnerabilities on CICD
sheepland
2
590
Docker Build Cloudを導入してコンテナイメージビルド時間を80%削減した話 / Speeding Up Container Builds with Docker Build Cloud
sheepland
0
250
Design Doc のすすめ / The Importance of Design Docs
sheepland
0
1.6k
Datadogのグラフにデプロイタイミングを表示する / deploy timing on datadog graph
sheepland
1
830
英語学習の始め方 / How to start learning English
sheepland
0
140
Other Decks in Technology
See All in Technology
オンラインゲームのシステム全体像 - コロプラ 2026年度 新卒研修
colopl
0
420
生成AIと進める探索的データ分析(2026.10.03 第122回Tokyo.R勉強会)
tatamiya
2
1.4k
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
190
「とりあえず動く」の先へ。 AI時代のチーム開発と内部設計/2026-slsdays
slsops
0
140
Kernel testing frameworks
ennael
PRO
0
110
Swap and Memory Reclaim - Squeezing Out More RAM
ennael
PRO
1
1.6k
転んだ話が背中を預ける理由になる / A_story_about_falling_down_gives_you_a_reason_to_watch_each_other_s_backs.pdf
pauli
2
200
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
290
いちAWSエンジニアのAI活用を振り返る #devio2026 / devio osaka 2026 kawahara
masahirokawahara
2
380
Codex概要
ymiya55
0
370
『GOエコノミー 』(相乗りサービス) におけるスペック駆動開発
mot_techtalk
1
310
形式手法を使って仕様をコーディングしよう
mikanichinose
0
180
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
55
13k
Everyday Curiosity
cassininazir
0
340
Building Applications with DynamoDB
mza
96
7.2k
A Modern Web Designer's Workflow
chriscoyier
699
190k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
350
Prompt Engineering for Job Search
mfonobong
0
480
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
510
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
840
Raft: Consensus for Rubyists
vanstee
142
7.7k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Transcript
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/