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
2014-10-11_chiba.pm5
Search
SUZUKI Masashi
October 27, 2014
Technology
630
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
2014-10-11_chiba.pm5
アプリケーションのログ収集/監視ほかの会社はどうしてるのかしら?というお話
SUZUKI Masashi
October 27, 2014
More Decks by SUZUKI Masashi
See All by SUZUKI Masashi
2026-06-18 ecspressoのtfstate参照が便利すぎた話
masasuzu
0
27
2026-04-14 Jagu'e'r Cloud Native分科会 Terraform Stateにおけるシークレットの平文保存という課題とその解決
masasuzu
1
54
2026-03-27 #terminalnight 変数展開とコマンド展開でターミナル作業をスマートにする方法
masasuzu
0
410
2026-03-23 Ops-JAWS Meetup39 Session Managerを使った セキュアなサーバーアクセス
masasuzu
2
150
2026-03-11 JAWS-UG 茨城 #12 改めてALBを便利に使う
masasuzu
3
480
2026-03-03 Jagu'e'r Tech Writer Meetup #19 登壇のネタ作りについて
masasuzu
0
220
2026-02-24 月末 Tech Lunch Online #10 Cloud Runのデプロイの課題から考えるアプリとインフラの境界線
masasuzu
0
180
2025-11-21 社内エンジニア勉強会 改めて理解するVPC Endpoint
masasuzu
0
430
2025-11-08 Security JAWS TerraformによるIAM Policy記述ガイド
masasuzu
2
1.4k
Other Decks in Technology
See All in Technology
Claude Code の Sandbox 機能を Anthropic Sandbox Runtime(srt) で試そう!/lets-play-anthropic-sandbox-runtime
tomoki10
1
620
攻撃者視点で考えるDetection Engineering
cryptopeg
3
1.9k
SONiCのLinuxベースを活かしたZabbix監視
sonic
0
180
AIネイティブな開発のサプライチェーンリスク対策 〜激動の開発現場でリスクに立ち向かう〜【ZennFes】
cscengineer
PRO
2
130
LayerXにおけるセキュリティ管理の現在地と次の一手
tosho
0
220
2026TECHFRESH畢業分享會 - Lightning Talk - 資料也要 CI/CD? 用 Airbyte 自動化資料同步
line_developers_tw
PRO
0
1.1k
AIはどのように 組織のアジリティを変えるのか?
junki
4
950
人材育成分科会.pdf
_awache
4
270
AIっぽい文章を採点して人間らしく直すアプリを作ってみた
yama3133
2
200
2026TECHFRESH畢業分享會 - Lightning Talk - 打造精準高效的 MCP 設計模式與測試實務
line_developers_tw
PRO
0
1.1k
白金鉱業Meetup_Vol.24_「AIエージェントは分けるほど良い」は本当か? / Is it true that “the more you divide AI agents, the better”?
brainpadpr
1
400
中期計画、2回作ってみた ~業務委託と正社員、両方の視点から~
demaecan
1
910
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
310
How to train your dragon (web standard)
notwaldorf
97
6.7k
It's Worth the Effort
3n
188
29k
The untapped power of vector embeddings
frankvandijk
2
1.8k
Building Adaptive Systems
keathley
44
3.1k
Building an army of robots
kneath
306
46k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
230
Designing for Performance
lara
611
70k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
200
Done Done
chrislema
186
16k
Utilizing Notion as your number one productivity tool
mfonobong
4
320
Transcript
ログ監視の話 chiba.pm #5 すずきまさし / @masasuz 1
2
ネタは特に話さないです 3
ログ監視の話 chiba.pm #5 すずきまさし / @masasuz 4
おまえだれよ すずきまさし / @masasuz 五反田の辺りにある中小web企業 開発基盤的なものを整備しているらし い zsh / perl
/ mysql / Ubuntu / Debian 5
最近江戸川区と葛飾区は千葉だっ てずっと言い続けていたら、西葛 西在住の人に怒られたので自重し ます。 6
ログ監視 ログ収集 7
コンテキスト ウェブサービス 自社サービス 物理サーバ 数百台の中小規模 8
ログ監視の話 9
エラーログ監視 定期的に アクセスログから4xx 5xxのログをvhost 毎、path毎に集計し、 一日あたりのᮢ値(デフォルト10件)越 えたらIRC、メールで通知する 当日ᮢ値は更新可能 10
問題 ᮢ値が一律10件(デフォルト)なので、 件数少ないけど重要なエラーを見逃す。 syntaxエラーとか仕込んでしまうと全 てのアクセスで500が上がるので、ᮢ値 上げ大変。 11
別ソリューション 単位時間当たりで5xx 4xxを集計すると か? 12
ログ収集の話 13
昔の話 監視サーバから 各アプリケーションサーバに serverlist.sh | xargs -I% ssh % ‘egrep
“status:(4|5)[0-9]{2}” access.log ‘ 14
現在 fluentdでログサーバに転送 fluentdがごにょごにょして、vhost毎 にアクセスログ分けてファイル保存 15
問題 複数ファイルをzgrepするのであまり効 率よくない 結局logサーバにsshしないといけない webアプリでごにょごにょしにくい 16
将来? fluentd => elasticsearch 検証し始めた aggrecationsがだいぶ使えそう kabana3良い kibana4??? 17
緩募: 事例 ベタープラクティス 18
ありがとう ございました 19