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
690
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
290
Translating a monolingual application
odolbeau
2
390
DX: Developer eXperience
odolbeau
0
50
DX: Developer eXperience
odolbeau
0
390
EasyAdminBundle introduction
odolbeau
0
130
REX API Platform
odolbeau
0
1k
Features flags at BlaBlaCar
odolbeau
4
820
25+ million members in 22 countries, how to scale with Symfony2
odolbeau
1
380
Be gentle with your prod!
odolbeau
1
590
Other Decks in Programming
See All in Programming
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
210
Elm Form Validation
bkuhlmann
0
510
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
27
8.3k
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
340
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
360
Milestoner
bkuhlmann
1
410
使ってみよう Azure AI Document Intelligence
kosmosebi
2
320
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
710
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
340
2 週間で Twitter Bot を作ってみた
contour_gara
0
540
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
Featured
See All Featured
The Invisible Side of Design
smashingmag
294
49k
Atom: Resistance is Futile
akmur
259
25k
Fantastic passwords and where to find them - at NoRuKo
philnash
37
2.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
40
4.4k
Teambox: Starting and Learning
jrom
128
8.4k
Agile that works and the tools we love
rasmusluckow
325
20k
Why Our Code Smells
bkeepers
PRO
331
56k
Become a Pro
speakerdeck
PRO
11
4.5k
Adopting Sorbet at Scale
ufuk
68
8.6k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
322
20k
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