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
0
550
2014-10-11_chiba.pm5
アプリケーションのログ収集/監視ほかの会社はどうしてるのかしら?というお話
SUZUKI Masashi
October 27, 2014
Tweet
Share
More Decks by SUZUKI Masashi
See All by SUZUKI Masashi
2025-06-20 PrivateLinkがNLBなしで作れるようになり便利になった
masasuzu
2
160
2025-01-31 吉祥寺.pm 37 初めての海外カンファレンス
masasuzu
0
500
2025-01-24-SRETT11-OpenTofuについてそろそろ調べてみるか
masasuzu
0
1k
2024-03-29 SRETT9 Cloud SQLの可用性について
masasuzu
0
470
2023-12-18 SRETT8 Terraform使いがPulumiに入門する
masasuzu
0
2.4k
2023-12-01 吉祥寺.pm ベストプラクティスと組織とIaC
masasuzu
1
1.6k
SRETT#6_Terraformのtfstateについて考える
masasuzu
2
3.5k
SRETT#4黒い画面をもっと効率的に(使って自動化の時間を捻出)
masasuzu
2
450
2022-04-12 吉祥寺.pm 29
masasuzu
0
1.5k
Other Decks in Technology
See All in Technology
活きてなかったデータを活かしてみた話 / Shirokane Kougyou vol 19
sansan_randd
1
360
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
7.4k
AI技術トレンド勉強会 #1MCPの基礎と実務での応用
nisei_k
1
220
CI/CDとタスク共有で加速するVibe Coding
tnbe21
0
200
“プロダクトを好きになれるか“も QAエンジニア転職の大事な判断基準だと思ったの
tomodakengo
0
150
Javalinの紹介
notoh
0
110
工具人的一生: 開發很多 AI 工具讓我 慵懶過一生
line_developers_tw
PRO
0
230
Snowflake Intelligenceで実現できるノーコードAI活用
takumimukaiyama
1
260
マルチテナント+マルチプロダクト SaaS への AI Agent の組み込み方
kworkdev
PRO
2
370
Rubyで作る論理回路シミュレータの設計の話 - Kashiwa.rb #12
kozy4324
1
320
Tenstorrent 開発者プログラム
tenstorrent_japan
0
310
宇宙パトロール ルル子から考える LT設計のコツ
masakiokuda
2
110
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
47
2.8k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
GitHub's CSS Performance
jonrohan
1031
460k
Thoughts on Productivity
jonyablonski
69
4.7k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
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