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
4
720
When monolog meets ELK (& bermudas!)
Talk given at PHPCON PL 2015.
Code:
https://github.com/odolbeau/elk-monolog-example
Olivier Dolbeau
November 15, 2015
Tweet
Share
More Decks by Olivier Dolbeau
See All by Olivier Dolbeau
Jane & Webby
odolbeau
0
310
Translating a monolingual application
odolbeau
2
450
DX: Developer eXperience
odolbeau
0
54
DX: Developer eXperience
odolbeau
0
440
EasyAdminBundle introduction
odolbeau
0
150
REX API Platform
odolbeau
0
1.1k
Features flags at BlaBlaCar
odolbeau
4
900
25+ million members in 22 countries, how to scale with Symfony2
odolbeau
1
420
Be gentle with your prod!
odolbeau
1
650
Other Decks in Programming
See All in Programming
意外とフォントが大事だった話 / Font Issues on Internationalization
fumi23
0
110
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
2k
React + TextAliveでカッコいいLyric Applicatioinを作ろう!!
tosuri13
0
400
Jakarta EE meets AI
ivargrimstad
1
520
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
オートマトン学習しろ / Do automata learning
makenowjust
3
130
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
660
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
420
Jakarta EE meets AI
ivargrimstad
0
390
Scala におけるコンパイラエラーとの付き合い方
chencmd
2
430
いまから追い上げる、Jetpack Compose トレーニング
nyafunta9858
0
590
マルチモジュールにおけるテスト最適化
fxwx23
0
210
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
48
4.6k
Designing for Performance
lara
604
68k
Gamification - CAS2011
davidbonilla
79
5k
Statistics for Hackers
jakevdp
794
220k
How to Ace a Technical Interview
jacobian
274
23k
Git: the NoSQL Database
bkeepers
PRO
425
64k
A designer walks into a library…
pauljervisheath
201
24k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
Designing the Hi-DPI Web
ddemaree
278
34k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Optimizing for Happiness
mojombo
375
69k
Code Reviewing Like a Champion
maltzj
517
39k
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