SlideShare a Scribd company logo
Connect the Dots: Logging and Exception Handling
April 27, 2019
Bangalore MuleSoft Meetup Group
Agenda
2
09:30PM – 10:00AM – Introductions
10:00PM - 12:00PM – Common Exception Handling & Common Logging
12:00PM - 12:30PM – Q&A
12:30PM - 12:45PM – Open Floor, Suggestions for Future Topics and Speakers
12:45PM - 01:30PM – Lunch
Agenda
Introductions
About the organizer :
– Gaurav – Senior Application Developer, Accenture
– D. Rajesh Kumar – Senior Technology Architect , TCS
Partner:
All contents © MuleSoft Inc.
All contents © MuleSoft Inc.
Introductions
5
Introduce yourselves !
– Name
– Background
• What’s your experience with Anypoint platform?
• Why are you here ? Expectations?
Common Logging and Exception
For any integration, In order to facilitate service request tracking and incident
management it is required to have an effective logging and exception handling solution.
Within in MULESOFT, various components involved based on various deployment
patterns..
Standard logger
JSON logger
Cloud hub logger and supporting tools like.. Alerting, monitoring and email
notifications..
End of the day , its essential to have some log aggregation tools.. For example Splunk,
ELK and service incident management tool like SNOW, Remedy force..
Common Logging and Exception
Best practices recommended:
• Categorize the logs: Traceable, audit, exception logs..
• Separate the flows to for exception logs with logic (for example: business exceptions, data
validations, technical issues..)
• Have standard CDM format for logs based on the category and follows same for all the
integrations
• Handle exceptions and logs in the common project and have integration logic with in the
common project.
• Usage of correlation id / message id / business transaction id
• Define log related flows are Async
• Possible use MQ to avoid data loss and data consistency
• Logging steps @critical places
Mule 4 Logging
• The importance of logging
• Logging bad practice
• Best practices with logging
• Log4j 2
• Logging to different target systems
• Common Exception Handling
More Than Logging
9
• System visibility
• System traceability
• Supportability
• Debugging
Log In First Place
10
• No logging standards
• Hard coding
• Empty loggers
• Beware: CloudHub logs are limited by size
• 100MB or 30 days, whichever comes first
Bad Practice
Demo
Logging Bad Practice
12
• Standards, standards, standards
• JSON
• Key-value pairs
• Other formats
• Informative messages
• Visibility into the system
• Enhance debugging
• Before and after external system calls
• Request identifier
• Trace transaction from end to end
• Ability to calculate latency
Best Practices
13
• Dynamic error messages
• Persisting logs to a system
• Maintain historical logs
• Allows non-technical users to access and
support applications
• Not too much logging, not too little
Best Practices
LOG : (prefix :string, value :any)
Returns the specified value and also logs the value in the DataWeave representation with the specified
prefix.
Transform :
%dw 2.0
output application/json
var data={
"week" : ["Sunday","Monday"]
}
---
{
isPresent : log("logging in the array", data.week contains vars.lookup)
}
Console :
logging in the array - true
DataWeave Logging
Demo
Logging Best Practices
Demo
Common Exception Handling
All contents © MuleSoft Inc.
Quiz
15
Winners will receive a gift
What are the 5 different logging levels that the standard
MuleSoft Logger Component uses?
Giveaway!
Learn all about Mule 4 and more!
Resources to learn
All contents © MuleSoft Inc.
MuleSoft U
20
• Free!
• Self-paced HTML-format courses with step-by-step instructions to go
deep on any topic.
• Available courses:
- NEW - Development fundamentals (Mule 3 and 4)
- NEW – Mule 4 for Mule 3 users
- Flow Design
- Getting started with Anypoint Platform (Mule 3 and 4)
Register for MuleSoft U at
https://training.mulesoft.com/category/mulesoftu
All contents © MuleSoft Inc.
Instructor-led training
21
• 1 to 5 days, in person or online
• 12 available courses
• For all profiles: developers, architects, admins, IT ops, managers
See all the learning paths available and register for a class at
https://training.mulesoft.com
Win 1 of 5 free instructor-led training courses by participating in our
trivia later tonight!
All contents © MuleSoft Inc.
More certifications to validate your skills
22
• Confirm mastery of concepts
• Achieve industry recognition
• Differentiate yourself in the marketplace
– MCD – Level 1 (Mule 4) + Level 1 (Mule 4) DELTA
– MCD – Integration and API Associate
– MCD – API Design Associate
– MCD – Integration Professional (Mule 3)
– MuleSoft Certified Platform Architect – Level 1
– MuleSoft Certified Integration Architect – Level 1
QA & open discussion
All contents © MuleSoft Inc.
Stay connected
24
Stay connected with Mule 4
Twitter: https:// twitter.com/Mulesoft
Linkedin: https://www.linkedin.com/groups/6936034 /
Facebook: https ://www.facebook.com/groups/Mulesoft/
Thank you !
See you next time
Please send topic suggestions to the organizer

More Related Content

PPTX
MuleSoft Meetup slides_kualalumpur_19thSept_Undisturbed REST: Achieving Undis...
PDF
MuleSoft approach to the integration - Warsaw MuleSoft Meetup
PPTX
Mulesoft KL Meetup 2
PPTX
Meet up slides_mumbai_05022020_final
PDF
Testing strategies and best practices using MUnit
PDF
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
PPTX
Meetup_Bangalore_Rajesh
PDF
Ahmedabad MuleSoft Meetup #4
MuleSoft Meetup slides_kualalumpur_19thSept_Undisturbed REST: Achieving Undis...
MuleSoft approach to the integration - Warsaw MuleSoft Meetup
Mulesoft KL Meetup 2
Meet up slides_mumbai_05022020_final
Testing strategies and best practices using MUnit
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Meetup_Bangalore_Rajesh
Ahmedabad MuleSoft Meetup #4

What's hot (20)

PPTX
Warsaw mulesoft meetup #9 mastering integration with salesforce
PPTX
MuleSoft CloudHub API Versioning
PPTX
Hyd MuleSoft-Meetup-May 29,2021 | Migrating Mule 3 Java related code to Mule 4
PPTX
Indore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake Integration
PPTX
Warsaw MuleSoft Meetup #6 - CI/CD
PPTX
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
PPTX
MuleSoft Meetup Bangalore - March 6 2021
PPTX
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
PPTX
Meetup bangalore-may22nd2021
PDF
MuleSoft meetup_sg_no2_may19
PDF
MuleSoft meetup__houston #13
PDF
MuleSoft Manchester Meetup #5 slides 20th May 2021
PPTX
Manchester Meetup #3
PPTX
Managing APIs with MuleSoft
PPTX
MuleSoft Meetup Charlotte 2 - 2019
PPTX
Caching strategies in MuleSoft
PPTX
#3 calicut meetup - understanding slb, dlb and web sockets
PPTX
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
PPTX
Nagpur Mulesoft Meetup on CICD using Jenkins
PDF
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Warsaw mulesoft meetup #9 mastering integration with salesforce
MuleSoft CloudHub API Versioning
Hyd MuleSoft-Meetup-May 29,2021 | Migrating Mule 3 Java related code to Mule 4
Indore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake Integration
Warsaw MuleSoft Meetup #6 - CI/CD
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
MuleSoft Meetup Bangalore - March 6 2021
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Meetup bangalore-may22nd2021
MuleSoft meetup_sg_no2_may19
MuleSoft meetup__houston #13
MuleSoft Manchester Meetup #5 slides 20th May 2021
Manchester Meetup #3
Managing APIs with MuleSoft
MuleSoft Meetup Charlotte 2 - 2019
Caching strategies in MuleSoft
#3 calicut meetup - understanding slb, dlb and web sockets
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
Nagpur Mulesoft Meetup on CICD using Jenkins
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Ad

Similar to mulesoft meetup @ bangalore (20)

PPTX
Log4j2 - A deep dive into the logging services in Mulesoft with On-Prem deplo...
PPTX
Mule soft meetup_-_finland_september_25th__2020 v2.0
PPTX
Logging from the bottom up
PPTX
Connect the Dots: Logging and Custom Connectors
PDF
MuleSoft Manchester Meetup #2 slides 29th October 2019
PPTX
logs.pptx
PDF
Dallas Mulesoft Meetup - Log Aggregation and Elastic Stack on Anypoint Platform
PPTX
West Yorkshire Meetup #4
PPTX
Lisbon Mulesoft Meetup - Logging Aggregation & Visualization
PPTX
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
PPTX
Princeton-NJ-Meetup-MuleSoft SumoLogic Integration.pptx
PDF
Docker Logging and analysing with Elastic Stack
PDF
Docker Logging and analysing with Elastic Stack - Jakub Hajek
PPTX
Delhi MuleSoft Meetup - 19 march2022
PPTX
First mule soft meetup in patna bihar's first mulesoft meetup-7th march
PDF
Special MuleSoft Meetup at London CONNECT
PPTX
Mule soft meetup__dubai_12_june- Error Handling
PPTX
Mulesoft meetup 9thmay Thiruvananthapuram
PPTX
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
PDF
Munich MuleSoft Meetup 28th Oct 2020
Log4j2 - A deep dive into the logging services in Mulesoft with On-Prem deplo...
Mule soft meetup_-_finland_september_25th__2020 v2.0
Logging from the bottom up
Connect the Dots: Logging and Custom Connectors
MuleSoft Manchester Meetup #2 slides 29th October 2019
logs.pptx
Dallas Mulesoft Meetup - Log Aggregation and Elastic Stack on Anypoint Platform
West Yorkshire Meetup #4
Lisbon Mulesoft Meetup - Logging Aggregation & Visualization
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Princeton-NJ-Meetup-MuleSoft SumoLogic Integration.pptx
Docker Logging and analysing with Elastic Stack
Docker Logging and analysing with Elastic Stack - Jakub Hajek
Delhi MuleSoft Meetup - 19 march2022
First mule soft meetup in patna bihar's first mulesoft meetup-7th march
Special MuleSoft Meetup at London CONNECT
Mule soft meetup__dubai_12_june- Error Handling
Mulesoft meetup 9thmay Thiruvananthapuram
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Munich MuleSoft Meetup 28th Oct 2020
Ad

More from D.Rajesh Kumar (20)

PPTX
Meetup bangalore-sept5th 2020 (1)
PPTX
Mule soft meetup_-_finland_july_11th__2020
PPTX
Bangalore mulesoft meetup#10
PPTX
Meetup bangalore 9_novupdated
PPTX
Meetup bangalore aug31st2019
PPTX
Meetup bangalore june29th2019
PPT
Calico and container
PPT
Calico docker+ipam
PPT
Calico architecture
PPT
Calico to secure host interfaces
PPT
Calico and how interprets neutron api
PPT
Calico with open stack and chef
PPT
Calico with open stack
PPT
Calico with docker
PPT
Object Store in Mule
PPT
Slack connector with in MULE
PPT
MuleSoft Offers a Data Migration Solution
ODP
Mule version-crowd highlights
ODP
Mule ctf
PPT
Sdlc with mule esb
Meetup bangalore-sept5th 2020 (1)
Mule soft meetup_-_finland_july_11th__2020
Bangalore mulesoft meetup#10
Meetup bangalore 9_novupdated
Meetup bangalore aug31st2019
Meetup bangalore june29th2019
Calico and container
Calico docker+ipam
Calico architecture
Calico to secure host interfaces
Calico and how interprets neutron api
Calico with open stack and chef
Calico with open stack
Calico with docker
Object Store in Mule
Slack connector with in MULE
MuleSoft Offers a Data Migration Solution
Mule version-crowd highlights
Mule ctf
Sdlc with mule esb

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Empathic Computing: Creating Shared Understanding
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Empathic Computing: Creating Shared Understanding
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
“AI and Expert System Decision Support & Business Intelligence Systems”
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
NewMind AI Weekly Chronicles - August'25 Week I
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Understanding_Digital_Forensics_Presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

mulesoft meetup @ bangalore

  • 1. Connect the Dots: Logging and Exception Handling April 27, 2019 Bangalore MuleSoft Meetup Group
  • 2. Agenda 2 09:30PM – 10:00AM – Introductions 10:00PM - 12:00PM – Common Exception Handling & Common Logging 12:00PM - 12:30PM – Q&A 12:30PM - 12:45PM – Open Floor, Suggestions for Future Topics and Speakers 12:45PM - 01:30PM – Lunch Agenda
  • 3. Introductions About the organizer : – Gaurav – Senior Application Developer, Accenture – D. Rajesh Kumar – Senior Technology Architect , TCS Partner: All contents © MuleSoft Inc.
  • 4. All contents © MuleSoft Inc. Introductions 5 Introduce yourselves ! – Name – Background • What’s your experience with Anypoint platform? • Why are you here ? Expectations?
  • 5. Common Logging and Exception For any integration, In order to facilitate service request tracking and incident management it is required to have an effective logging and exception handling solution. Within in MULESOFT, various components involved based on various deployment patterns.. Standard logger JSON logger Cloud hub logger and supporting tools like.. Alerting, monitoring and email notifications.. End of the day , its essential to have some log aggregation tools.. For example Splunk, ELK and service incident management tool like SNOW, Remedy force..
  • 6. Common Logging and Exception Best practices recommended: • Categorize the logs: Traceable, audit, exception logs.. • Separate the flows to for exception logs with logic (for example: business exceptions, data validations, technical issues..) • Have standard CDM format for logs based on the category and follows same for all the integrations • Handle exceptions and logs in the common project and have integration logic with in the common project. • Usage of correlation id / message id / business transaction id • Define log related flows are Async • Possible use MQ to avoid data loss and data consistency • Logging steps @critical places
  • 8. • The importance of logging • Logging bad practice • Best practices with logging • Log4j 2 • Logging to different target systems • Common Exception Handling More Than Logging
  • 9. 9 • System visibility • System traceability • Supportability • Debugging Log In First Place
  • 10. 10 • No logging standards • Hard coding • Empty loggers • Beware: CloudHub logs are limited by size • 100MB or 30 days, whichever comes first Bad Practice
  • 12. 12 • Standards, standards, standards • JSON • Key-value pairs • Other formats • Informative messages • Visibility into the system • Enhance debugging • Before and after external system calls • Request identifier • Trace transaction from end to end • Ability to calculate latency Best Practices
  • 13. 13 • Dynamic error messages • Persisting logs to a system • Maintain historical logs • Allows non-technical users to access and support applications • Not too much logging, not too little Best Practices
  • 14. LOG : (prefix :string, value :any) Returns the specified value and also logs the value in the DataWeave representation with the specified prefix. Transform : %dw 2.0 output application/json var data={ "week" : ["Sunday","Monday"] } --- { isPresent : log("logging in the array", data.week contains vars.lookup) } Console : logging in the array - true DataWeave Logging
  • 17. All contents © MuleSoft Inc. Quiz 15 Winners will receive a gift
  • 18. What are the 5 different logging levels that the standard MuleSoft Logger Component uses? Giveaway!
  • 19. Learn all about Mule 4 and more! Resources to learn
  • 20. All contents © MuleSoft Inc. MuleSoft U 20 • Free! • Self-paced HTML-format courses with step-by-step instructions to go deep on any topic. • Available courses: - NEW - Development fundamentals (Mule 3 and 4) - NEW – Mule 4 for Mule 3 users - Flow Design - Getting started with Anypoint Platform (Mule 3 and 4) Register for MuleSoft U at https://training.mulesoft.com/category/mulesoftu
  • 21. All contents © MuleSoft Inc. Instructor-led training 21 • 1 to 5 days, in person or online • 12 available courses • For all profiles: developers, architects, admins, IT ops, managers See all the learning paths available and register for a class at https://training.mulesoft.com Win 1 of 5 free instructor-led training courses by participating in our trivia later tonight!
  • 22. All contents © MuleSoft Inc. More certifications to validate your skills 22 • Confirm mastery of concepts • Achieve industry recognition • Differentiate yourself in the marketplace – MCD – Level 1 (Mule 4) + Level 1 (Mule 4) DELTA – MCD – Integration and API Associate – MCD – API Design Associate – MCD – Integration Professional (Mule 3) – MuleSoft Certified Platform Architect – Level 1 – MuleSoft Certified Integration Architect – Level 1
  • 23. QA & open discussion
  • 24. All contents © MuleSoft Inc. Stay connected 24 Stay connected with Mule 4 Twitter: https:// twitter.com/Mulesoft Linkedin: https://www.linkedin.com/groups/6936034 / Facebook: https ://www.facebook.com/groups/Mulesoft/
  • 25. Thank you ! See you next time Please send topic suggestions to the organizer