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
380
2014-10-11_chiba.pm5
アプリケーションのログ収集/監視ほかの会社はどうしてるのかしら?というお話
SUZUKI Masashi
October 27, 2014
Tweet
Share
More Decks by SUZUKI Masashi
See All by SUZUKI Masashi
2024-03-29 SRETT9 Cloud SQLの可用性について
masasuzu
0
210
2023-12-18 SRETT8 Terraform使いがPulumiに入門する
masasuzu
0
1k
2023-12-01 吉祥寺.pm ベストプラクティスと組織とIaC
masasuzu
1
880
SRETT#6_Terraformのtfstateについて考える
masasuzu
2
980
SRETT#4黒い画面をもっと効率的に(使って自動化の時間を捻出)
masasuzu
2
320
2022-04-12 吉祥寺.pm 29
masasuzu
0
1.3k
2015-12-12-chiba.pm7
masasuzu
0
3.3k
2015-09-17_gotanda.pm6
masasuzu
0
3.4k
2015-07-10-kichijoji.pm4_yurui_template
masasuzu
0
1.2k
Other Decks in Technology
See All in Technology
Oracle Exadata Database Service on Cloud@Customer (ExaDB-C@C) - UI スクリーン・キャプチャ集
oracle4engineer
PRO
1
1.1k
Four keys改善の取り組み事例紹介
sansantech
PRO
2
230
TransitGatewayの基礎
toru_kubota
0
230
PHP"オレ"カンファレンスの告知
ysknsid25
0
310
[PlatformCon 24] Platform Orchestrators: The Missing Middle of Internal Developer Platforms?
danielbryantuk
0
160
CSSDAY 2024
kevinshallvari
0
180
A (short) History of AI
harishpillay
0
100
AIQ株式会社 エンジニア向け会社紹介資料
aiqlab
0
350
[2024年3月版] Databricksのシステムアーキテクチャ
databricksjapan
7
1.9k
ユーザーストーリーのレビューを自動化したみたの
bun913
1
280
Hands-on / Kaname Frusawa / Cloud Compare Users Meetup 2024 at University of Tokyo on April 17
paraworld
2
470
Kubernetesでアプリの安定稼働と高頻度のアップデートを両立するためのプラクティス / Best Practices for Applications on Kubernetesto Achieve Both Frequent Updates and Stability
hhiroshell
10
3k
Featured
See All Featured
Web Components: a chance to create the future
zenorocha
304
41k
The Power of CSS Pseudo Elements
geoffreycrofte
58
5k
Building Your Own Lightsaber
phodgson
97
5.7k
A Philosophy of Restraint
colly
195
16k
Optimizing for Happiness
mojombo
369
69k
The Brand Is Dead. Long Live the Brand.
mthomps
48
28k
Designing for Performance
lara
601
67k
How to Ace a Technical Interview
jacobian
272
22k
Designing for humans not robots
tammielis
247
25k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
Pencils Down: Stop Designing & Start Developing
hursman
116
11k
We Have a Design System, Now What?
morganepeng
42
6.7k
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