SlideShare a Scribd company logo
1 of 26
CENTRALISED
LOGGINGOliver Brennan
Senior Software Engineer
THE ICONIC
@BrOllie
THE
PROBLEM
THE
PROBLEM
THE
SOLUTION?
> sudo i2cssh -b username@web0{1..4}
THE
PROBLEM
THE
PROBLEM
THE
SOLUTION?
THE
SOLUTION?
A STORY!
I L O V E S T O R I E S
RECEIVE ALERT
A STORY!
I L O V E S T O R I E S
YOU WAKE UP
A STORY!
I L O V E S T O R I E S
COMPUTER IS SLOW
(GETTING ANGRY NOW)
A STORY!
I L O V E S T O R I E S
DO SOME DIGGINGFULL DISK
A STORY!
I L O V E S T O R I E S
CLEAR THE LOGS
(BACK TO BED, YAY)
A STORY!
I L O V E S T O R I E S
A STORY!
I L O V E S T O R I E S
YOU CLEARED THE LOGS!
Was it a rogue process?
Will it wake you up again in an hour?
How do you know what used all the disk space?
Are you awake enough to be root on live servers at 3am?
rm –rf ./* vs rm –rf /*
THE
SOLUTION
TOOLS
AVAILABLE
Cloud Hosted
Plus others…
HOW TO
CHOOSE?
• EASY TO QUERY DATA
• ADVANCED QUERY FUNCTIONALITY
• MUST SYNC IN REAL TIME
• PROVIDED ‘TAIL –F’ FUNCTIONALITY
• PRICE
• SCALES WITH US
• KEEP LOGS AFTER SERVERS HAVE BEEN
RECYCLED (CLOUD SERVERS)
• NON SELF-MANAGED SOLUTION
• TRIAL THEM ALL
RIGHT NOW
HOW TO
CHOOSE?
• EASY TO QUERY DATA
• ADVANCED QUERY FUNCTIONALITY
• MUST SYNC IN REAL TIME
• PROVIDED ‘TAIL –F’ FUNCTIONALITY
• PRICE
• SCALES WITH US
• KEEP LOGS AFTER SERVERS HAVE BEEN
RECYCLED (CLOUD SERVERS)
• NON SELF-MANAGED SOLUTION
• TRIAL THEM ALL
RIGHT NOW GROWINTO
• ALERTS & NOTIFICATIONS
• TRACK APPLICATION EVENTS
• ANNOTATIONS
• DASHBOARDS
• JSON FORMATTED LOGS
• WHO KNOWS?
AND THE
WINNER?
?In the interest of fairness, I wont be posting it here
THINGS TO
KEEP IN MIND
CONTEXT IS KING. IMAGINE THE FOLLOWING LINE:
29/11/2014 – 10:11:12 – 306654 - /login - 200
29/11/2014 – 10:11:12 – cust_id=306654 – action=/login – status=200
WITH CONTEXT:
*easier to troubleshoot, gain context and understanding of the domain
29/11/2014 – 10:11:12 – cust_id=306654 – action=/login – status=200
– hostname=web07.theiconic.com.au
WITH CONTEXT AND ENV INFO:
THINGS TO
KEEP IN MIND
STRUCTURE YOUR LOGS CORRECTLY
• KEY VALUE PAIRS (KVP)
• JSON LOGS
29/11/2014 – 10:11:12 – $330.00 $12.00 304857 20181743 5
29/11/2014 – 10:11:12 – order_val=$330.00 shipping_val=$12.00
cust_id=304857 order_nr20181743 item_count=5
WITH KVP:
*enables advanced querying of data. KVP is a little easier to read though
{"date":"29/11/2014 u2013 10:11:12","order_val":"$330.00",
"shipping_val":"$12.00","cust_id":304857,"order_nr":20181743,"item_count":5}
WITH JSON:
LOGGING
STRATEGY
THINK ABOUT WHAT YOU WANT TO LOG. LOGGING EVERYTHING JUST MEANS
WE HAVE MORE DATA TO SIFT THROUGH. THINK ABOUT
• PERFORMANCE AND RESOURCES: Memory, CPU, disk, network – we can show spikes
and performance degradation of our apps
• EXCEPTIONS & WARNINGS: No explanations required here
• USER ACTIONS: Logging access, audit trails, device access, failed access attempts
• EXTERNAL SERVICES: Requests / responses from external services should all be
logged. You can thank me later for this. Integration is hard, make it easier on yourself
- at least in the early days keep logging running
• WEB SERVERS: Server access/error logs (helps when distributed over servers)
TROUBLESHOOTING
SECURITY
AUDITING
MONITORING
OUR
SETUP!
SOME
STATS!
GB stored per day
(approx)
4510 Million records
stored per day
(approx)
93Log files
Centralised Logging

More Related Content

Similar to Centralised Logging

sharing the data using audio and image Steganography-
sharing the data using audio and image Steganography- sharing the data using audio and image Steganography-
sharing the data using audio and image Steganography- Nikhil Praharshi
 
KiwiCon 2016 - Kicking Orion's Assets
KiwiCon 2016 - Kicking Orion's AssetsKiwiCon 2016 - Kicking Orion's Assets
KiwiCon 2016 - Kicking Orion's AssetsRob Fuller
 
Persistent Data Structures - partial::Conf
Persistent Data Structures - partial::ConfPersistent Data Structures - partial::Conf
Persistent Data Structures - partial::ConfIvan Vergiliev
 
4 Steps to Paperless Transportation Documents
4 Steps to Paperless Transportation Documents4 Steps to Paperless Transportation Documents
4 Steps to Paperless Transportation DocumentseFileCabinet
 
A @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNSA @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNSRob Fuller
 
Oral tradition in software engineering: Passing the craft across generations
Oral tradition in software engineering: Passing the craft across generationsOral tradition in software engineering: Passing the craft across generations
Oral tradition in software engineering: Passing the craft across generationsbcantrill
 
Principles, Backbone and Bottlenose
Principles, Backbone and BottlenosePrinciples, Backbone and Bottlenose
Principles, Backbone and BottlenoseJustin Halsall
 
K2 Fast Workflow
K2 Fast WorkflowK2 Fast Workflow
K2 Fast WorkflowK2
 
The Original Hypertext Preprocessor
The Original Hypertext PreprocessorThe Original Hypertext Preprocessor
The Original Hypertext PreprocessorDrew McLellan
 
Enhance OpenSSH for fun and security
Enhance OpenSSH for fun and securityEnhance OpenSSH for fun and security
Enhance OpenSSH for fun and securityJulien Pivotto
 
No-Knowledge Crypto Attacks
No-Knowledge Crypto AttacksNo-Knowledge Crypto Attacks
No-Knowledge Crypto AttacksBaronZor
 

Similar to Centralised Logging (12)

sharing the data using audio and image Steganography-
sharing the data using audio and image Steganography- sharing the data using audio and image Steganography-
sharing the data using audio and image Steganography-
 
KiwiCon 2016 - Kicking Orion's Assets
KiwiCon 2016 - Kicking Orion's AssetsKiwiCon 2016 - Kicking Orion's Assets
KiwiCon 2016 - Kicking Orion's Assets
 
Persistent Data Structures - partial::Conf
Persistent Data Structures - partial::ConfPersistent Data Structures - partial::Conf
Persistent Data Structures - partial::Conf
 
4 Steps to Paperless Transportation Documents
4 Steps to Paperless Transportation Documents4 Steps to Paperless Transportation Documents
4 Steps to Paperless Transportation Documents
 
How Kubernetes make OpenStack & Ceph better
How Kubernetes make OpenStack & Ceph betterHow Kubernetes make OpenStack & Ceph better
How Kubernetes make OpenStack & Ceph better
 
A @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNSA @textfiles approach to gathering the world's DNS
A @textfiles approach to gathering the world's DNS
 
Oral tradition in software engineering: Passing the craft across generations
Oral tradition in software engineering: Passing the craft across generationsOral tradition in software engineering: Passing the craft across generations
Oral tradition in software engineering: Passing the craft across generations
 
Principles, Backbone and Bottlenose
Principles, Backbone and BottlenosePrinciples, Backbone and Bottlenose
Principles, Backbone and Bottlenose
 
K2 Fast Workflow
K2 Fast WorkflowK2 Fast Workflow
K2 Fast Workflow
 
The Original Hypertext Preprocessor
The Original Hypertext PreprocessorThe Original Hypertext Preprocessor
The Original Hypertext Preprocessor
 
Enhance OpenSSH for fun and security
Enhance OpenSSH for fun and securityEnhance OpenSSH for fun and security
Enhance OpenSSH for fun and security
 
No-Knowledge Crypto Attacks
No-Knowledge Crypto AttacksNo-Knowledge Crypto Attacks
No-Knowledge Crypto Attacks
 

Recently uploaded

Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...Neha Pandey
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663Call Girls Mumbai
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLimonikaupta
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...Escorts Call Girls
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.soniya singh
 

Recently uploaded (20)

Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 

Centralised Logging

  • 4. THE SOLUTION? > sudo i2cssh -b username@web0{1..4}
  • 9. A STORY! I L O V E S T O R I E S
  • 10. RECEIVE ALERT A STORY! I L O V E S T O R I E S
  • 11. YOU WAKE UP A STORY! I L O V E S T O R I E S
  • 12. COMPUTER IS SLOW (GETTING ANGRY NOW) A STORY! I L O V E S T O R I E S
  • 13. DO SOME DIGGINGFULL DISK A STORY! I L O V E S T O R I E S
  • 14. CLEAR THE LOGS (BACK TO BED, YAY) A STORY! I L O V E S T O R I E S
  • 15. A STORY! I L O V E S T O R I E S YOU CLEARED THE LOGS! Was it a rogue process? Will it wake you up again in an hour? How do you know what used all the disk space? Are you awake enough to be root on live servers at 3am? rm –rf ./* vs rm –rf /*
  • 18. HOW TO CHOOSE? • EASY TO QUERY DATA • ADVANCED QUERY FUNCTIONALITY • MUST SYNC IN REAL TIME • PROVIDED ‘TAIL –F’ FUNCTIONALITY • PRICE • SCALES WITH US • KEEP LOGS AFTER SERVERS HAVE BEEN RECYCLED (CLOUD SERVERS) • NON SELF-MANAGED SOLUTION • TRIAL THEM ALL RIGHT NOW
  • 19. HOW TO CHOOSE? • EASY TO QUERY DATA • ADVANCED QUERY FUNCTIONALITY • MUST SYNC IN REAL TIME • PROVIDED ‘TAIL –F’ FUNCTIONALITY • PRICE • SCALES WITH US • KEEP LOGS AFTER SERVERS HAVE BEEN RECYCLED (CLOUD SERVERS) • NON SELF-MANAGED SOLUTION • TRIAL THEM ALL RIGHT NOW GROWINTO • ALERTS & NOTIFICATIONS • TRACK APPLICATION EVENTS • ANNOTATIONS • DASHBOARDS • JSON FORMATTED LOGS • WHO KNOWS?
  • 20. AND THE WINNER? ?In the interest of fairness, I wont be posting it here
  • 21. THINGS TO KEEP IN MIND CONTEXT IS KING. IMAGINE THE FOLLOWING LINE: 29/11/2014 – 10:11:12 – 306654 - /login - 200 29/11/2014 – 10:11:12 – cust_id=306654 – action=/login – status=200 WITH CONTEXT: *easier to troubleshoot, gain context and understanding of the domain 29/11/2014 – 10:11:12 – cust_id=306654 – action=/login – status=200 – hostname=web07.theiconic.com.au WITH CONTEXT AND ENV INFO:
  • 22. THINGS TO KEEP IN MIND STRUCTURE YOUR LOGS CORRECTLY • KEY VALUE PAIRS (KVP) • JSON LOGS 29/11/2014 – 10:11:12 – $330.00 $12.00 304857 20181743 5 29/11/2014 – 10:11:12 – order_val=$330.00 shipping_val=$12.00 cust_id=304857 order_nr20181743 item_count=5 WITH KVP: *enables advanced querying of data. KVP is a little easier to read though {"date":"29/11/2014 u2013 10:11:12","order_val":"$330.00", "shipping_val":"$12.00","cust_id":304857,"order_nr":20181743,"item_count":5} WITH JSON:
  • 23. LOGGING STRATEGY THINK ABOUT WHAT YOU WANT TO LOG. LOGGING EVERYTHING JUST MEANS WE HAVE MORE DATA TO SIFT THROUGH. THINK ABOUT • PERFORMANCE AND RESOURCES: Memory, CPU, disk, network – we can show spikes and performance degradation of our apps • EXCEPTIONS & WARNINGS: No explanations required here • USER ACTIONS: Logging access, audit trails, device access, failed access attempts • EXTERNAL SERVICES: Requests / responses from external services should all be logged. You can thank me later for this. Integration is hard, make it easier on yourself - at least in the early days keep logging running • WEB SERVERS: Server access/error logs (helps when distributed over servers) TROUBLESHOOTING SECURITY AUDITING MONITORING
  • 25. SOME STATS! GB stored per day (approx) 4510 Million records stored per day (approx) 93Log files