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
710
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
300
Translating a monolingual application
odolbeau
2
430
DX: Developer eXperience
odolbeau
0
54
DX: Developer eXperience
odolbeau
0
420
EasyAdminBundle introduction
odolbeau
0
140
REX API Platform
odolbeau
0
1.1k
Features flags at BlaBlaCar
odolbeau
4
880
25+ million members in 22 countries, how to scale with Symfony2
odolbeau
1
390
Be gentle with your prod!
odolbeau
1
630
Other Decks in Programming
See All in Programming
Advanced App Shrinking Techniques
cbeyls
2
150
CSC307 Lecture 11
javiergs
PRO
0
240
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
0
120
君たちはどうコードをレビューする (される) か / 大吉祥寺.pm
utgwkk
15
8.5k
Play Billing Library 7.0.0 変更点まとめ@potatotips#88
kako351
0
160
CSC307 Lecture 09
javiergs
PRO
1
500
Mastering Developer Experience: A Roadmap for Success 【開発生産性Conference 2024】
findyinc
1
380
12年前の『型システム入門』翻訳の思い出話
mame
11
1.2k
Webエディタライブラリ 「CodeMirror」から学ぶ Webアプリ開発のテクニック
ryosukeigarashi
0
250
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | droidcon Berlin
prof18
0
110
SRE チーム立ち上げ前に考えたこと・取り組んだこと / Considerations and Preparations Before Establishing an SRE Team
mackey0225
3
320
スクラムマスターって孤独じゃないですか?
yoshitaroyoyo
1
140
Featured
See All Featured
Making Projects Easy
brettharned
111
5.7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
662
120k
How to Ace a Technical Interview
jacobian
274
23k
A designer walks into a library…
pauljervisheath
201
24k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.9k
Producing Creativity
orderedlist
PRO
340
39k
Typedesign – Prime Four
hannesfritz
37
2.2k
Embracing the Ebb and Flow
colly
81
4.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
34
1.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
35
6.3k
The Invisible Customer
myddelton
117
13k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
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