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
When monolog meets ELK (& bermudas!)
Search
Olivier Dolbeau
November 15, 2015
Programming
850
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
When monolog meets ELK (& bermudas!)
Talk given at PHPCON PL 2015.
Code:
https://github.com/odolbeau/elk-monolog-example
Olivier Dolbeau
November 15, 2015
More Decks by Olivier Dolbeau
See All by Olivier Dolbeau
Throw new \Exception(); Oui, mais laquelle ?
odolbeau
1
340
Jane & Webby
odolbeau
0
520
Translating a monolingual application
odolbeau
2
700
DX: Developer eXperience
odolbeau
1
140
DX: Developer eXperience
odolbeau
1
590
EasyAdminBundle introduction
odolbeau
0
260
REX API Platform
odolbeau
0
1.4k
Features flags at BlaBlaCar
odolbeau
5
1.2k
25+ million members in 22 countries, how to scale with Symfony2
odolbeau
2
690
Other Decks in Programming
See All in Programming
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
110
20260828_品質と開発生産性を両立させる、AI時代のE2Eテストの考え方
magicpod
0
170
Hono + Inertia + React で LP を構築した話
oukayuka
2
220
Family mrubyの進捗
kishima
1
100
DynamoDBの基礎を振り返りながらベクトル検索機能を理解する
musan
3
270
【DroidKaigi 2026】「アクセシビリティを利用するとき、 アクセシビリティもまたこちらを利用している」 〜マルウェアによる攻撃と防衛について〜
halunoyo
0
410
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
600
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
270
ソフトウェアラスタライザ
fadis
1
790
不幸な GC
chencmd
0
890
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
160
Oxlintはいいぞ(続)
yug1224
1
560
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Speed Design
sergeychernyshev
33
2.1k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Amusing Abliteration
ianozsvald
1
290
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
The Curious Case for Waylosing
cassininazir
1
500
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
560
The Cost Of JavaScript in 2023
addyosmani
55
10k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.7k
Making Projects Easy
brettharned
120
6.7k
Transcript
When Monolog meets ELK and bermudas!
Olivier Dolbeau @odolbeau Web Architect Me
None
Which logs are we talking about?
None
None
None
The old way...
Where is my fucking error?
Which server?
None
I found the criticity !
Maybe it’s the one I want?
Tool box
SSH tail cat grep more less sed
SSH tail cat grep more less sed
SSH tail cat grep more less sed
My roommate uses this to colorize his access logs... This
is specific to his access logs… and ugly as hell!
None
We are in 2015!
E L K
• real time data • distributed • multi-tenancy • document
oriented • schema free • per operation persistence • real time analytics • high availability • full text search • conflict management • restful api • built on top of apache lucene
Logstash
Kibana
None
Some configuration
Logstash input for syslog
Logstash input for gelf
What is Gelf?
Logstash filter example (for syslog)
Logstash output example
None
Heka RSYSLOG
None
Monolog
Live coding
Create a logger.
Add another handler.
Add some processors.
PSR\Log\LoggerInterface.
Use context!
PsrLogMessageProcessor.
Name your loggers.
Bermudas vs pants!
• Bermudas rocks! • Logs are really important, take care
of them! • Take a look at ELK. Write beautiful logs. Olivier Dolbeau @odolbeau We’re hiring! In Paris & Warsaw! http://blbl.cr/dreamjobs