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
770
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
Throw new \Exception(); Oui, mais laquelle ?
odolbeau
1
180
Jane & Webby
odolbeau
0
370
Translating a monolingual application
odolbeau
2
520
DX: Developer eXperience
odolbeau
1
71
DX: Developer eXperience
odolbeau
1
530
EasyAdminBundle introduction
odolbeau
0
160
REX API Platform
odolbeau
0
1.3k
Features flags at BlaBlaCar
odolbeau
5
1k
25+ million members in 22 countries, how to scale with Symfony2
odolbeau
2
470
Other Decks in Programming
See All in Programming
AIコーディングワークフローの試行 〜AIエージェント×ワークフローでの自動化を目指して〜
rkaga
2
1.6k
海外のアプリで見かけたかっこいいTransitionを真似てみる
shogotakasaki
1
140
Windows版PHPのビルド手順とPHP 8.4における変更点
matsuo_atsushi
0
390
List とは何か? / PHPerKaigi 2025
meihei3
0
590
MCP世界への招待: AIエンジニアが創る次世代エージェント連携の世界
gunta
4
840
PHPのガベージコレクションを深掘りしよう
rinchoku
0
260
アプリを起動せずにアプリを開発して品質と生産性を上げる
ishkawa
0
2.2k
SLI/SLOの設定を進めるその前に アラート品質の改善に取り組んだ話
tanden
2
780
ノーコードツールの裏側につきまとう「20分岐」との戦い
oguemon
0
150
Signal-Based Data FetchingWith the New httpResource
manfredsteyer
PRO
0
130
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
680
Go1.24 go vetとtestsアナライザ
kuro_kurorrr
2
750
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
91
5.9k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.4k
Navigating Team Friction
lara
184
15k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
490
How GitHub (no longer) Works
holman
314
140k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
17
1.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
34
2.6k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.6k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Unsuck your backbone
ammeep
670
57k
Building a Modern Day E-commerce SEO Strategy
aleyda
39
7.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.2k
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