SlideShare uma empresa Scribd logo
1 de 16
Baixar para ler offline
To Log or Not to Log: 
Proven Best Practices for 
Instrumentation 
Apache Storm 
Jon Gifford 
Founder and Chief Search Officer 
January 2014 
| Log management as a service Simplify Log Management
About Me 
15+ years of search experience 
§ Lots of different search products 
§ Lots and lots of machines 
§ Lots and lots of logs... 
Bias: 
§ Lucene, Java, *nix, Distributed, Realtime, 
§ Measure, Measure, Measure 
| Log management as a service Simplify Log Management
Loggly: Addressing the first big data 
problem every company faces 
§ Centralized logging 
and archival 
§ Real-time processing, 
analysis and 
visualization 
§ Monitoring, alerting 
and troubleshooting 
| Log management as a service Simplify Log Management
To Log or 
Not to Log? 
+ - yourself 
Lots of 
data to solve 
operational 
problems faster! 
Incredibly 
painful to 
grep and 
inspect 
| Log management as a service Simplify Log Management
Instrumentation: 
Your Most Valuable Log Data 
For us, instrumentation is the act of gathering 
performance data about your application and 
surfacing it via logs. 
§ Provides a low-impact mechanism for gathering 
production system performance data 
§ Visualization is key to understanding this data 
| Log management as a service Simplify Log Management
Best Practices for 
Instrumentation 
| Log management as a service Simplify Log Management
Best Practice #1 
Treat instrumentation as an ongoing, 
iterative process. 
§ Start by logging everything at a high level 
§ Instrument deeper every time you ask, “What 
happened here?” 
§ Instrument deeper in areas that are more variable 
or expensive than you thought 
| Log management as a service Simplify Log Management
Best Practice #2 
Always instrument anything that goes 
out of process. 
§ Can be indicative of larger 
problems, like the canary in the 
coal mine 
§ Example: Instrument calls to 
your database, even though 
they should always be fast 
§ Distributed system problems are 
not well behaved – by definition 
| Log management as a service Simplify Log Management
Best Practice #3 
Always log unacceptable performance. 
§ Log “soft exceptions” (e.g. slow queries) 
§ “Trust but verify” 
| Log management as a service Simplify Log Management
Best Practice #4 
If possible, log enough context so you 
can get the complete picture of what 
happened from a single log event. 
Elapsed time 
Process 
Log this 
… not this! 
End 
Start End 
| Log management as a service Simplify Log Management
Best Practice #5 
View machines, not people, as your 
logs’ consumer. 
| Log management as a service Simplify Log Management
Best Practice #6 
Trends tell the story better than data points. 
§ Graph performance 
over time to see 
daily fluctuations 
§ Use rollups where 
it’s not practical to 
log every single 
event 
| Log management as a service Simplify Log Management
Best Practice #7 
Instrumentation is NOT a substitute 
for profiling, and vice versa. 
Instrumentation Profiling 
Your production environment is not the same as development! 
| Log management as a service Simplify Log Management
Best Practice #8 
Flying slower is better than flying blind. 
§ “Speed advantage” is 
illusory if you can’t 
understand system 
performance 
§ Our debate: not 
whether to instrument 
but how much 
| Log management as a service Simplify Log Management 
Photo by Eric Kilby
Implement Instrumentation 
Best Practices Faster and 
Better with Loggly. 
Try Loggly for Free! → http://bit.ly/BestLoggingPractices 
About Us: 
Loggly is the world’s most popular cloud-based log management solution, used by 
more than 5,000 happy customers to effortlessly spot problems in real-time, easily 
pinpoint root causes and resolve issues faster to ensure application success. 
Visit us at loggly.com or follow @loggly on Twitter. 
| Log management as a service Simplify Log Management
Proven and Trusted by 5,000+ your peers… 
“If we didn’t have 
Loggly, there would 
be days where our 
revenue would be 
affected by as much 
as 70 percent.” 
– Albert Ho, 
Executive Producer/ 
Platform Product Manager, 
Rumble Entertainment 
| Log management as a service Simplify Log Management

Mais conteúdo relacionado

Destaque

Ppt of company profile in project
Ppt of company profile in projectPpt of company profile in project
Ppt of company profile in project
shivakumaranupama
 
Tcs company profile presentation -sample
Tcs company profile presentation  -sampleTcs company profile presentation  -sample
Tcs company profile presentation -sample
Sivaraj Ganapathy
 

Destaque (9)

Itc-company profile
Itc-company profileItc-company profile
Itc-company profile
 
Презентация бизнес-плана кафе
Презентация бизнес-плана кафеПрезентация бизнес-плана кафе
Презентация бизнес-плана кафе
 
Шаблон презентации о Компании в PowerPoint (B2B)
Шаблон презентации о Компании в PowerPoint (B2B)Шаблон презентации о Компании в PowerPoint (B2B)
Шаблон презентации о Компании в PowerPoint (B2B)
 
Ppt of company profile in project
Ppt of company profile in projectPpt of company profile in project
Ppt of company profile in project
 
Tcs company profile presentation -sample
Tcs company profile presentation  -sampleTcs company profile presentation  -sample
Tcs company profile presentation -sample
 
Introduction to SlideShare for Businesses
Introduction to SlideShare for BusinessesIntroduction to SlideShare for Businesses
Introduction to SlideShare for Businesses
 
Company Overview Presentation
Company Overview PresentationCompany Overview Presentation
Company Overview Presentation
 
Company Profile Sample
Company Profile SampleCompany Profile Sample
Company Profile Sample
 
The Search for Meaning in B2B Marketing
The Search for Meaning in B2B MarketingThe Search for Meaning in B2B Marketing
The Search for Meaning in B2B Marketing
 

Mais de SolarWinds Loggly

Mais de SolarWinds Loggly (10)

Loggly - Tools and Techniques For Logging Microservices
Loggly - Tools and Techniques For Logging MicroservicesLoggly - Tools and Techniques For Logging Microservices
Loggly - Tools and Techniques For Logging Microservices
 
Loggly - 5 Popular .NET Logging Libraries
Loggly - 5 Popular .NET Logging LibrariesLoggly - 5 Popular .NET Logging Libraries
Loggly - 5 Popular .NET Logging Libraries
 
Loggly - IT Operations in a Serverless World (Infographic)
Loggly - IT Operations in a Serverless World (Infographic)Loggly - IT Operations in a Serverless World (Infographic)
Loggly - IT Operations in a Serverless World (Infographic)
 
Loggly - Case Study - Loggly and Docker Deliver Powerful Monitoring for XAPPm...
Loggly - Case Study - Loggly and Docker Deliver Powerful Monitoring for XAPPm...Loggly - Case Study - Loggly and Docker Deliver Powerful Monitoring for XAPPm...
Loggly - Case Study - Loggly and Docker Deliver Powerful Monitoring for XAPPm...
 
Loggly - Case Study - Stanley Black & Decker Transforms Work with Support fro...
Loggly - Case Study - Stanley Black & Decker Transforms Work with Support fro...Loggly - Case Study - Stanley Black & Decker Transforms Work with Support fro...
Loggly - Case Study - Stanley Black & Decker Transforms Work with Support fro...
 
Loggly - Case Study - Loggly and Kubernetes Give Molecule Easy Access to the ...
Loggly - Case Study - Loggly and Kubernetes Give Molecule Easy Access to the ...Loggly - Case Study - Loggly and Kubernetes Give Molecule Easy Access to the ...
Loggly - Case Study - Loggly and Kubernetes Give Molecule Easy Access to the ...
 
Loggly - Case Study - Datami Keeps Developer Productivity High with Loggly
Loggly - Case Study - Datami Keeps Developer Productivity High with LogglyLoggly - Case Study - Datami Keeps Developer Productivity High with Loggly
Loggly - Case Study - Datami Keeps Developer Productivity High with Loggly
 
Loggly - Case Study - BEMOBI - Bemobi Monitors the Experience of 500 Million ...
Loggly - Case Study - BEMOBI - Bemobi Monitors the Experience of 500 Million ...Loggly - Case Study - BEMOBI - Bemobi Monitors the Experience of 500 Million ...
Loggly - Case Study - BEMOBI - Bemobi Monitors the Experience of 500 Million ...
 
Loggly - How to Scale Your Architecture and DevOps Practices for Big Data App...
Loggly - How to Scale Your Architecture and DevOps Practices for Big Data App...Loggly - How to Scale Your Architecture and DevOps Practices for Big Data App...
Loggly - How to Scale Your Architecture and DevOps Practices for Big Data App...
 
Loggly - Benchmarking 5 Node.js Logging Libraries
Loggly - Benchmarking 5 Node.js Logging LibrariesLoggly - Benchmarking 5 Node.js Logging Libraries
Loggly - Benchmarking 5 Node.js Logging Libraries
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

To Log or Not to Log: Proven Best Practices for Instrumentation - via @Loggly

  • 1. To Log or Not to Log: Proven Best Practices for Instrumentation Apache Storm Jon Gifford Founder and Chief Search Officer January 2014 | Log management as a service Simplify Log Management
  • 2. About Me 15+ years of search experience § Lots of different search products § Lots and lots of machines § Lots and lots of logs... Bias: § Lucene, Java, *nix, Distributed, Realtime, § Measure, Measure, Measure | Log management as a service Simplify Log Management
  • 3. Loggly: Addressing the first big data problem every company faces § Centralized logging and archival § Real-time processing, analysis and visualization § Monitoring, alerting and troubleshooting | Log management as a service Simplify Log Management
  • 4. To Log or Not to Log? + - yourself Lots of data to solve operational problems faster! Incredibly painful to grep and inspect | Log management as a service Simplify Log Management
  • 5. Instrumentation: Your Most Valuable Log Data For us, instrumentation is the act of gathering performance data about your application and surfacing it via logs. § Provides a low-impact mechanism for gathering production system performance data § Visualization is key to understanding this data | Log management as a service Simplify Log Management
  • 6. Best Practices for Instrumentation | Log management as a service Simplify Log Management
  • 7. Best Practice #1 Treat instrumentation as an ongoing, iterative process. § Start by logging everything at a high level § Instrument deeper every time you ask, “What happened here?” § Instrument deeper in areas that are more variable or expensive than you thought | Log management as a service Simplify Log Management
  • 8. Best Practice #2 Always instrument anything that goes out of process. § Can be indicative of larger problems, like the canary in the coal mine § Example: Instrument calls to your database, even though they should always be fast § Distributed system problems are not well behaved – by definition | Log management as a service Simplify Log Management
  • 9. Best Practice #3 Always log unacceptable performance. § Log “soft exceptions” (e.g. slow queries) § “Trust but verify” | Log management as a service Simplify Log Management
  • 10. Best Practice #4 If possible, log enough context so you can get the complete picture of what happened from a single log event. Elapsed time Process Log this … not this! End Start End | Log management as a service Simplify Log Management
  • 11. Best Practice #5 View machines, not people, as your logs’ consumer. | Log management as a service Simplify Log Management
  • 12. Best Practice #6 Trends tell the story better than data points. § Graph performance over time to see daily fluctuations § Use rollups where it’s not practical to log every single event | Log management as a service Simplify Log Management
  • 13. Best Practice #7 Instrumentation is NOT a substitute for profiling, and vice versa. Instrumentation Profiling Your production environment is not the same as development! | Log management as a service Simplify Log Management
  • 14. Best Practice #8 Flying slower is better than flying blind. § “Speed advantage” is illusory if you can’t understand system performance § Our debate: not whether to instrument but how much | Log management as a service Simplify Log Management Photo by Eric Kilby
  • 15. Implement Instrumentation Best Practices Faster and Better with Loggly. Try Loggly for Free! → http://bit.ly/BestLoggingPractices About Us: Loggly is the world’s most popular cloud-based log management solution, used by more than 5,000 happy customers to effortlessly spot problems in real-time, easily pinpoint root causes and resolve issues faster to ensure application success. Visit us at loggly.com or follow @loggly on Twitter. | Log management as a service Simplify Log Management
  • 16. Proven and Trusted by 5,000+ your peers… “If we didn’t have Loggly, there would be days where our revenue would be affected by as much as 70 percent.” – Albert Ho, Executive Producer/ Platform Product Manager, Rumble Entertainment | Log management as a service Simplify Log Management