ha proxy logs - the art of logging
TRANSCRIPT
![Page 1: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/1.jpg)
HAPROXY LOGS
The art of logging
![Page 2: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/2.jpg)
HOW TO GET YOUR LOGS TELNET STYLE
![Page 3: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/3.jpg)
HOW TO GET YOUR LOGSHAPROXY WEB INTERFACE
![Page 4: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/4.jpg)
HOW TO GET YOUR LOGSLOG-MANAGEMENT SOLUTION
![Page 5: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/5.jpg)
“CHACUN SA ROUTE, CHACUN SON CHEMIN” - TONTON DAVID
Business Intelligence Technical intelligence
BI TI
![Page 6: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/6.jpg)
CONTEXTHAPROXY 101 - ROUNDROBIN LOADBALANCING
Configuration:
![Page 7: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/7.jpg)
WHAT IS MY DATA MADE OF?HAPROXY - DATA COLLECTED (FOR EACH LOG)
![Page 8: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/8.jpg)
WHAT IS MY DATA MADE OF?HAPROXY - DATA COLLECTED (FOR EACH LOG)
• Internal State:– Tq / Tw /Tc / Tr /Tt– ActConn / Feconn / Beconn / srv_Conn / retries– Srv_queue / Backend_queue
• Connection Layer:– Client IP/port– Date connection– Http requests (if some) – Frontend/Backend/server name– Status Code– Bytes written – Captured requests/response Cookie
• Session Layer– Termination state
![Page 9: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/9.jpg)
WHAT IS MY DATA MADE OF?HAPROXY - DATA COLLECTED (FOR EACH LOG)
• Internal State:– Tq / Tw /Tc / Tr /Tt– ActConn / Feconn / Beconn / srv_Conn / retries– Srv_queue / Backend_queue
• Connection Layer:– Client IP/port– Date connection– Http requests (if some) – Frontend/Backend/server name– Status Code– Bytes written – Captured requests/response Cookie
• Session Layer– Termination state
Field
FieldField
Field
Field
Metrics
MetricsMetrics
Metrics
Field
Field Metrics
![Page 10: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/10.jpg)
JUST AGGREGATINGAND RANKING
![Page 11: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/11.jpg)
JUST COUNTINGSTEP BY STEP, TIME BUCKET AFTER TIME BUCKET
![Page 12: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/12.jpg)
HOW TO DISPLAY MY DATA?SO MANY PLOTTING LIB’S.. DAMN’
![Page 13: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/13.jpg)
JUST COUNTINGBUT CHANGING THE DISPLAY.. FROM ABSOLUTE TO RELATIVE DATA
![Page 14: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/14.jpg)
JUST COUNTINGMIXING TWO SETS OF FILTERED DATA
Focusing on 4xx Status code
![Page 15: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/15.jpg)
JUST COUNTING SPOTTING THE RIGHT EVENT IN A FILTERED CONTEXT
![Page 16: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/16.jpg)
SPOTTING THE RIGHT EVENTVISUALISATION MATTERS
![Page 17: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/17.jpg)
A BIRD’S EYE VIEW
![Page 18: HA Proxy logs - The Art of Logging](https://reader035.vdocument.in/reader035/viewer/2022062401/587592cc1a28ab901c8b738d/html5/thumbnails/18.jpg)
VISUALISATION CAN TELL STORIESRE-STARTING BACKEND SERVERS