SlideShare a Scribd company logo
1 of 18
Tracing, Logging and Troubleshooting
Tracing, Logging and Troubleshooting
• Provide an understanding of how to setup logging in Neuron ESB
• Learn how to use logging in Business Processes and Workflows
• Learn how to troubleshoot Neuron ESB Installations
Goals
Tracing, Logging and Troubleshooting
• Configure logging in Neuron ESB
• View Neuron Event and Trace logs
• Using Code Editors to log from Business Processes and Workflows
• Learn how to troubleshoot Neuron ESB installations
Lesson Plan
Tracing, Logging and Troubleshooting
Configuration
Configuration
• Located on the “Logging” tab
of the Configure Server dialog
box.
• This sets the AppSettings and
system.diagnostics section in
esbservice.exe.config
• Corresponding
system.diagnostics settings in
Neuron ESB Explorer and Test
Client app.config files
• Default Logging level is Verbose
Tracing, Logging and Troubleshooting
App Settings
<appSettings>
<add key="MaximumLogFileSize" value="104857600" />
<add key="MinimumDiskSpaceThreshold" value="10485760" />
<add key="LogFileSchedule" value="Daily" />
<add key="LogFolderCleanupSchedule" value="10" />
<add key="Neuron.Service.WCFTracingEnabled" value="false" />
</appSettings>
<system.diagnostics>
<switches>
<!-- This switch controls ESB trace messages. -->
<!-- Value Meaning -->
<!-- ===== ======= -->
<!-- 0 No tracing -->
<!-- 1 Trace errors -->
<!-- 2 Trace errors + warnings -->
<!-- 3 Trace errors + warnings + info -->
<!-- 4 Trace errors + warnings + info + verbose -->
<add name="esbTraceSwitch" value="2" />
</switches>
<trace autoflush="true" indentsize="0" />
</system.diagnostics>
Configuration
System.Diagnostics
Tracing, Logging and Troubleshooting
Event Logs
Neuron ESB Event Log
• Usually the first place you go if start up issues are encountered
• Provides you an indication of what is wrong and what subsystem
generated the issue
• In most cases, more detailed information will be found in the
Neuron ESB Trace Logs
• Honors the Logging level set for the Neuron ESB runtime via
Configure Server
Application Event Log
• Commonly written to by the Neuron ESB Test Client
• Messaging API writes here if externally hosted
• SCM writes service crashes here
Tracing, Logging and Troubleshooting
Event Logs
Neuron ESB Event Log
• Neuron ESB Runtime
• Endpoint Hosts
• Discovery Service
• Source
• “ESBv3_”<Instance name>
• NeuronDiscoveryService
• Task Categories
• Visible through Neuron ESB Explorer
• Menu: Deployment -> Servers
Application Event Log
• Neuron ESB Client API (only if NOT hosted by Neuron
ESB Runtime)
Tracing, Logging and Troubleshooting
Neuron ESB Trace Logs
Neuron ESB Trace Logging
• Contains everything in Neuron ESB Event Log
• Collects meta data and other information not
reported in
Event Logs
• Used by product team to diagnose
• Each instance will have its own master Log Folder
• Default Location:
C:Program FilesNeudesicNeuron ESB
v3logs<InstanceName>
• Logs written to sub folder. Named format is
“YYYYmmddhhmmss”
• New sub-folder is created every time the Neuron
ESB Runtime is recycled
Tracing, Logging and Troubleshooting
Neuron ESB Trace Logs
Neuron ESB Trace Logging
• Each Log folder contains log file for:
• Each Adapter Endpoint
• Each Service Endpoint
• Auditing Service
• Each Topic
• Master
• Configuration Service
• Management Service
• Control Service
• Each Endpoint Host
• Each Workflow Endpoint
• Endpoint Host Manager
Logging and Tracing : Demo
Purpose:
To familiarize users with Neuron ESB Event logs and Neuron ESB Trace Logs
Objectives:
To acquaint users with the following:
• Changing the Logging Level
• Enabling WCF tracing
• Comparing Event Logs to Neuron ESB Trace Logs
Tracing, Logging and Troubleshooting
Business Process Logging
Neuron ESB Process Business
• Can Write to Neuron ESB Trace Log
• Respects configured Logging level
• Trace Process Step
and API
• Trace statements write to the
output window at design time and
the Neuron ESB Trace Logs at
runtime.
Tracing, Logging and Troubleshooting
Workflow Logging
Neuron ESB Workflow
• Can Write to Neuron ESB Trace Log
• Respects configured Logging level
• Logging API
Tracing, Logging and Troubleshooting
WCF Tracing
• Provides internal WCF logging for each
Neuron service (e.g. *.svclog file)
• Separate WCF log file for each
corresponding Neuron ESB Trace log file
• Provides WCF connection and error
details at channel level
• Sometimes WCF doesn’t bubble up error
information….this captures that!
• Do not run this for an extended period of
time – Generates LOTS of data
• Open with Microsoft Service Trace Viewer
• Captures the body of the message (can be
disabled in the Neuron ESB config)
Tracing, Logging and Troubleshooting
Common Configuration
Centralize Neuron ESB Logging
• Sometimes beneficial to centralize all
Neuron ESB Trace Logging to a central file
share if more than 1 server in a farm
• Use Registry setting
• HKEY_LOCAL_MACHINESOFTWARENeudesic
Neuron ESB v3SystemLogFolder
• HKEY_LOCAL_MACHINESOFTWAREWow6432
NodeNeudesicNeuron ESB
v3SystemLogFolder
Auto clean up of old trace log files
• Use Configure Server dialog box options
• Set the number of days to hold on to log files
before cleaning them up
Tracing, Logging and Troubleshooting
Installation Troubleshooting
Common Issues when Installing Neuron ESB
• Invalid License Key Error
• Setup Fails on copy
• Failed to start services
Tracing, Logging and Troubleshooting
Installation Troubleshooting
Invalid License Key
• Will Generate a log file in the user’s Temp directory
• If License key IS Valid, most likely FIPS is enabled on
machine
• Solution: Temporarily disable
FIPS via Group Policy
Tracing, Logging and Troubleshooting
Installation Troubleshooting
• Setup Fails on copy
• Failed to start services
• In both cases, log file is created in Temp
directory
• Issue could be that user running setup or
the assigned Neuron ESB service
account lacks sufficient rights
• Detailed Log file can be produced by
running MSI at command line:
msiexec.exe /i
NeuronESB_v3_x64_Release.msi /lvx*
install.log
Tracing, Logging and Troubleshooting
Review
• What are the 2 ways I can modify the logging level for the Neuron ESB Runtime service?
• How can I centralize Neuron ESB Trace logging to a central server?
• What information is contained within the WCF Trace log?
• What steps must I do to change the logging level and have it take effect?
• What 2 things would I look at the Neuron ESB runtime failed to start?
• If my license key is valid, why would a license key error occur in the Setup screen?
• Where is the log file generated when running the Neuron ESB Setup program?
• How can I force the Neuron ESB Installation process to generate a more verbose log file?

More Related Content

What's hot

What's hot (19)

PHP Rocketeer
PHP RocketeerPHP Rocketeer
PHP Rocketeer
 
CNIT 126 Ch 9: OllyDbg
CNIT 126 Ch 9: OllyDbgCNIT 126 Ch 9: OllyDbg
CNIT 126 Ch 9: OllyDbg
 
Practical Malware Analysis: Ch 9: OllyDbg
Practical Malware Analysis: Ch 9: OllyDbgPractical Malware Analysis: Ch 9: OllyDbg
Practical Malware Analysis: Ch 9: OllyDbg
 
Practical Malware Analysis: Ch 15: Anti-Disassembly
Practical Malware Analysis: Ch 15: Anti-DisassemblyPractical Malware Analysis: Ch 15: Anti-Disassembly
Practical Malware Analysis: Ch 15: Anti-Disassembly
 
InSpec - June 2018 at Open28.be
InSpec - June 2018 at Open28.beInSpec - June 2018 at Open28.be
InSpec - June 2018 at Open28.be
 
Inspec: Turn your compliance, security, and other policy requirements into au...
Inspec: Turn your compliance, security, and other policy requirements into au...Inspec: Turn your compliance, security, and other policy requirements into au...
Inspec: Turn your compliance, security, and other policy requirements into au...
 
Working Well Together: How to Keep High-end Game Development Teams Productive
Working Well Together: How to Keep High-end Game Development Teams ProductiveWorking Well Together: How to Keep High-end Game Development Teams Productive
Working Well Together: How to Keep High-end Game Development Teams Productive
 
Adding Security and Compliance to Your Workflow with InSpec
Adding Security and Compliance to Your Workflow with InSpecAdding Security and Compliance to Your Workflow with InSpec
Adding Security and Compliance to Your Workflow with InSpec
 
OSDC 2017 | Building Security Into Your Workflow with InSpec by Mandi Walls
OSDC 2017 | Building Security Into Your Workflow with InSpec by Mandi WallsOSDC 2017 | Building Security Into Your Workflow with InSpec by Mandi Walls
OSDC 2017 | Building Security Into Your Workflow with InSpec by Mandi Walls
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
Unite2014 Bunny Necropsy - Servers, Syncing Game State, Security and Optimiza...
Unite2014 Bunny Necropsy - Servers, Syncing Game State, Security and Optimiza...Unite2014 Bunny Necropsy - Servers, Syncing Game State, Security and Optimiza...
Unite2014 Bunny Necropsy - Servers, Syncing Game State, Security and Optimiza...
 
Visualize genomes with Integrated Genome Browser
Visualize genomes with Integrated Genome BrowserVisualize genomes with Integrated Genome Browser
Visualize genomes with Integrated Genome Browser
 
Shell scrpting(payal harne)
Shell scrpting(payal harne)Shell scrpting(payal harne)
Shell scrpting(payal harne)
 
Selenium
SeleniumSelenium
Selenium
 
ECS19 - Ingo Gegenwarth - Running Exchange in large environment
ECS19 - Ingo Gegenwarth -  Running Exchangein large environmentECS19 - Ingo Gegenwarth -  Running Exchangein large environment
ECS19 - Ingo Gegenwarth - Running Exchange in large environment
 
Celery workshop
Celery workshopCelery workshop
Celery workshop
 
CNIT 126 7: Analyzing Malicious Windows Programs
CNIT 126 7: Analyzing Malicious Windows ProgramsCNIT 126 7: Analyzing Malicious Windows Programs
CNIT 126 7: Analyzing Malicious Windows Programs
 
JUC Europe 2015: Jenkins-Based Continuous Integration for Heterogeneous Hardw...
JUC Europe 2015: Jenkins-Based Continuous Integration for Heterogeneous Hardw...JUC Europe 2015: Jenkins-Based Continuous Integration for Heterogeneous Hardw...
JUC Europe 2015: Jenkins-Based Continuous Integration for Heterogeneous Hardw...
 
When Tools Attack
When Tools AttackWhen Tools Attack
When Tools Attack
 

Similar to Tracing, Logging and Troubleshooting 3.7

Chef Analytics (Chef NYC Meeting - July 2014)
Chef Analytics (Chef NYC Meeting - July 2014)Chef Analytics (Chef NYC Meeting - July 2014)
Chef Analytics (Chef NYC Meeting - July 2014)
James Casey
 

Similar to Tracing, Logging and Troubleshooting 3.7 (20)

Introduction to Neuron ESB 3.7
Introduction to Neuron ESB 3.7Introduction to Neuron ESB 3.7
Introduction to Neuron ESB 3.7
 
02 introduction to neuron esb
02   introduction to neuron esb02   introduction to neuron esb
02 introduction to neuron esb
 
Operational Security 3.7
Operational Security 3.7Operational Security 3.7
Operational Security 3.7
 
Monitoring Neuron ESB 3.7
Monitoring Neuron ESB 3.7Monitoring Neuron ESB 3.7
Monitoring Neuron ESB 3.7
 
Introduction to neuron ESB
Introduction to neuron ESBIntroduction to neuron ESB
Introduction to neuron ESB
 
Extending Business Processes 3.7
Extending Business Processes 3.7Extending Business Processes 3.7
Extending Business Processes 3.7
 
Chef Analytics (Chef NYC Meeting - July 2014)
Chef Analytics (Chef NYC Meeting - July 2014)Chef Analytics (Chef NYC Meeting - July 2014)
Chef Analytics (Chef NYC Meeting - July 2014)
 
Identity service keystone ppt
Identity service keystone pptIdentity service keystone ppt
Identity service keystone ppt
 
Building Complex Business Processes 3.7
Building Complex Business Processes 3.7Building Complex Business Processes 3.7
Building Complex Business Processes 3.7
 
OSDC 2017 - Mandi Walls - Building security into your workflow with inspec
OSDC 2017 - Mandi Walls - Building security into your workflow with inspecOSDC 2017 - Mandi Walls - Building security into your workflow with inspec
OSDC 2017 - Mandi Walls - Building security into your workflow with inspec
 
Introduction to Adapters 3.7
Introduction to Adapters 3.7Introduction to Adapters 3.7
Introduction to Adapters 3.7
 
Campus days 2013 - Instrumentation
Campus days 2013 - InstrumentationCampus days 2013 - Instrumentation
Campus days 2013 - Instrumentation
 
Workflow Hosting and Tracking 3.7
Workflow Hosting and Tracking 3.7Workflow Hosting and Tracking 3.7
Workflow Hosting and Tracking 3.7
 
Oracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuningOracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuning
 
End-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL ServerEnd-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL Server
 
Chef: Smart infrastructure automation
Chef: Smart infrastructure automationChef: Smart infrastructure automation
Chef: Smart infrastructure automation
 
Introduction to Business Processes 3.7
Introduction to Business Processes 3.7Introduction to Business Processes 3.7
Introduction to Business Processes 3.7
 
(ATS4-APP01) Tips and Tricks for a Successful Installation of Accelrys Electr...
(ATS4-APP01) Tips and Tricks for a Successful Installation of Accelrys Electr...(ATS4-APP01) Tips and Tricks for a Successful Installation of Accelrys Electr...
(ATS4-APP01) Tips and Tricks for a Successful Installation of Accelrys Electr...
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
BSIDES-PR Keynote Hunting for Bad Guys
BSIDES-PR Keynote Hunting for Bad GuysBSIDES-PR Keynote Hunting for Bad Guys
BSIDES-PR Keynote Hunting for Bad Guys
 

More from StephenKardian

More from StephenKardian (16)

Deployment and Configuration 3.7
Deployment and Configuration 3.7Deployment and Configuration 3.7
Deployment and Configuration 3.7
 
Workflow Patterns and Correlation 3.7
Workflow Patterns and Correlation 3.7Workflow Patterns and Correlation 3.7
Workflow Patterns and Correlation 3.7
 
Build, Test and Extend Integrated Workflows 3.7
Build, Test and Extend Integrated Workflows 3.7Build, Test and Extend Integrated Workflows 3.7
Build, Test and Extend Integrated Workflows 3.7
 
Introduction to Long Running Workflows 3.7
Introduction to Long Running Workflows 3.7Introduction to Long Running Workflows 3.7
Introduction to Long Running Workflows 3.7
 
Building Custom Adapters 3.7
Building Custom Adapters 3.7Building Custom Adapters 3.7
Building Custom Adapters 3.7
 
Using Adapters and Mediation to Integrate Systems 3.7
Using Adapters and Mediation to Integrate Systems 3.7Using Adapters and Mediation to Integrate Systems 3.7
Using Adapters and Mediation to Integrate Systems 3.7
 
Web Security 3.7
Web Security 3.7Web Security 3.7
Web Security 3.7
 
Developing and Hosting SOAP Based Services
Developing and Hosting SOAP Based ServicesDeveloping and Hosting SOAP Based Services
Developing and Hosting SOAP Based Services
 
Developing and Hosting REST APIs 3.7
Developing and Hosting REST APIs 3.7Developing and Hosting REST APIs 3.7
Developing and Hosting REST APIs 3.7
 
Introduction to API and Service Hosting 3.7
Introduction to API and Service Hosting 3.7Introduction to API and Service Hosting 3.7
Introduction to API and Service Hosting 3.7
 
Repository 3.7
Repository 3.7Repository 3.7
Repository 3.7
 
`Neuron ESB Client API 3.7
`Neuron ESB Client API 3.7`Neuron ESB Client API 3.7
`Neuron ESB Client API 3.7
 
Introduction to Messaging 3.7
Introduction to Messaging 3.7Introduction to Messaging 3.7
Introduction to Messaging 3.7
 
ESB Fundamentals 3.7
ESB Fundamentals 3.7ESB Fundamentals 3.7
ESB Fundamentals 3.7
 
01 esb fundamentals
01   esb fundamentals01   esb fundamentals
01 esb fundamentals
 
12 web security
12  web security12  web security
12 web security
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Recently uploaded (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

Tracing, Logging and Troubleshooting 3.7

  • 1. Tracing, Logging and Troubleshooting
  • 2. Tracing, Logging and Troubleshooting • Provide an understanding of how to setup logging in Neuron ESB • Learn how to use logging in Business Processes and Workflows • Learn how to troubleshoot Neuron ESB Installations Goals
  • 3. Tracing, Logging and Troubleshooting • Configure logging in Neuron ESB • View Neuron Event and Trace logs • Using Code Editors to log from Business Processes and Workflows • Learn how to troubleshoot Neuron ESB installations Lesson Plan
  • 4. Tracing, Logging and Troubleshooting Configuration Configuration • Located on the “Logging” tab of the Configure Server dialog box. • This sets the AppSettings and system.diagnostics section in esbservice.exe.config • Corresponding system.diagnostics settings in Neuron ESB Explorer and Test Client app.config files • Default Logging level is Verbose
  • 5. Tracing, Logging and Troubleshooting App Settings <appSettings> <add key="MaximumLogFileSize" value="104857600" /> <add key="MinimumDiskSpaceThreshold" value="10485760" /> <add key="LogFileSchedule" value="Daily" /> <add key="LogFolderCleanupSchedule" value="10" /> <add key="Neuron.Service.WCFTracingEnabled" value="false" /> </appSettings> <system.diagnostics> <switches> <!-- This switch controls ESB trace messages. --> <!-- Value Meaning --> <!-- ===== ======= --> <!-- 0 No tracing --> <!-- 1 Trace errors --> <!-- 2 Trace errors + warnings --> <!-- 3 Trace errors + warnings + info --> <!-- 4 Trace errors + warnings + info + verbose --> <add name="esbTraceSwitch" value="2" /> </switches> <trace autoflush="true" indentsize="0" /> </system.diagnostics> Configuration System.Diagnostics
  • 6. Tracing, Logging and Troubleshooting Event Logs Neuron ESB Event Log • Usually the first place you go if start up issues are encountered • Provides you an indication of what is wrong and what subsystem generated the issue • In most cases, more detailed information will be found in the Neuron ESB Trace Logs • Honors the Logging level set for the Neuron ESB runtime via Configure Server Application Event Log • Commonly written to by the Neuron ESB Test Client • Messaging API writes here if externally hosted • SCM writes service crashes here
  • 7. Tracing, Logging and Troubleshooting Event Logs Neuron ESB Event Log • Neuron ESB Runtime • Endpoint Hosts • Discovery Service • Source • “ESBv3_”<Instance name> • NeuronDiscoveryService • Task Categories • Visible through Neuron ESB Explorer • Menu: Deployment -> Servers Application Event Log • Neuron ESB Client API (only if NOT hosted by Neuron ESB Runtime)
  • 8. Tracing, Logging and Troubleshooting Neuron ESB Trace Logs Neuron ESB Trace Logging • Contains everything in Neuron ESB Event Log • Collects meta data and other information not reported in Event Logs • Used by product team to diagnose • Each instance will have its own master Log Folder • Default Location: C:Program FilesNeudesicNeuron ESB v3logs<InstanceName> • Logs written to sub folder. Named format is “YYYYmmddhhmmss” • New sub-folder is created every time the Neuron ESB Runtime is recycled
  • 9. Tracing, Logging and Troubleshooting Neuron ESB Trace Logs Neuron ESB Trace Logging • Each Log folder contains log file for: • Each Adapter Endpoint • Each Service Endpoint • Auditing Service • Each Topic • Master • Configuration Service • Management Service • Control Service • Each Endpoint Host • Each Workflow Endpoint • Endpoint Host Manager
  • 10. Logging and Tracing : Demo Purpose: To familiarize users with Neuron ESB Event logs and Neuron ESB Trace Logs Objectives: To acquaint users with the following: • Changing the Logging Level • Enabling WCF tracing • Comparing Event Logs to Neuron ESB Trace Logs
  • 11. Tracing, Logging and Troubleshooting Business Process Logging Neuron ESB Process Business • Can Write to Neuron ESB Trace Log • Respects configured Logging level • Trace Process Step and API • Trace statements write to the output window at design time and the Neuron ESB Trace Logs at runtime.
  • 12. Tracing, Logging and Troubleshooting Workflow Logging Neuron ESB Workflow • Can Write to Neuron ESB Trace Log • Respects configured Logging level • Logging API
  • 13. Tracing, Logging and Troubleshooting WCF Tracing • Provides internal WCF logging for each Neuron service (e.g. *.svclog file) • Separate WCF log file for each corresponding Neuron ESB Trace log file • Provides WCF connection and error details at channel level • Sometimes WCF doesn’t bubble up error information….this captures that! • Do not run this for an extended period of time – Generates LOTS of data • Open with Microsoft Service Trace Viewer • Captures the body of the message (can be disabled in the Neuron ESB config)
  • 14. Tracing, Logging and Troubleshooting Common Configuration Centralize Neuron ESB Logging • Sometimes beneficial to centralize all Neuron ESB Trace Logging to a central file share if more than 1 server in a farm • Use Registry setting • HKEY_LOCAL_MACHINESOFTWARENeudesic Neuron ESB v3SystemLogFolder • HKEY_LOCAL_MACHINESOFTWAREWow6432 NodeNeudesicNeuron ESB v3SystemLogFolder Auto clean up of old trace log files • Use Configure Server dialog box options • Set the number of days to hold on to log files before cleaning them up
  • 15. Tracing, Logging and Troubleshooting Installation Troubleshooting Common Issues when Installing Neuron ESB • Invalid License Key Error • Setup Fails on copy • Failed to start services
  • 16. Tracing, Logging and Troubleshooting Installation Troubleshooting Invalid License Key • Will Generate a log file in the user’s Temp directory • If License key IS Valid, most likely FIPS is enabled on machine • Solution: Temporarily disable FIPS via Group Policy
  • 17. Tracing, Logging and Troubleshooting Installation Troubleshooting • Setup Fails on copy • Failed to start services • In both cases, log file is created in Temp directory • Issue could be that user running setup or the assigned Neuron ESB service account lacks sufficient rights • Detailed Log file can be produced by running MSI at command line: msiexec.exe /i NeuronESB_v3_x64_Release.msi /lvx* install.log
  • 18. Tracing, Logging and Troubleshooting Review • What are the 2 ways I can modify the logging level for the Neuron ESB Runtime service? • How can I centralize Neuron ESB Trace logging to a central server? • What information is contained within the WCF Trace log? • What steps must I do to change the logging level and have it take effect? • What 2 things would I look at the Neuron ESB runtime failed to start? • If my license key is valid, why would a license key error occur in the Setup screen? • Where is the log file generated when running the Neuron ESB Setup program? • How can I force the Neuron ESB Installation process to generate a more verbose log file?

Editor's Notes

  1. The goals of this lesson are to provide users with an understanding of how to setup logging inside of Neuron ESB as well ahs how to use logging in both business processes and workflow definitions. We will also be looking at how to troubleshoot installations of Neuron ESB that may encounter errors.
  2. To facilitate our goals this lesson has been broken down into four sections to make the information easier to understand. The sections that we will be covering are Configure logging in Neuron ESB View Neuron Event and Trace logs Using Code Editors to log from Business Processes and Workflows Learn how to troubleshoot Neuron ESB installations
  3. The logging level used by the Neuron ESB instance can be configured via the logging tab of the configure server dialog window in the Neuron ESB Explorer. By default the Trace Level value is set to Verbose, but can be changed using the Trace Level drop down list. Changing these values will set the appsettings and system.diagnotics section of the esbservice.exe.config file as well as the corresponding system.diagnotics setting in the Neuron ESB Explorer and Test Client app.config files.
  4. On the left you will see the values for logging as they appear in the appsettings section of the esbservice.exe.config file. Notice that all the same values that appear in the configure server dialog window appear here except the Trace Level. That value is contained in the system.diagnotics section as shown on the right. Each numerical value corresponds to a Trace Level in the Neuron ESB Explorer, which is outlined in the comments section.
  5. The Neuron ESB Event log is usually the first place you will go when you notice that an error has occurred in your Neuron ESB instance. This log usually provides a summary of the issue that is occurring and points you in the direction of which log file to look at for more detailed information about the error. The application event log is most commonly written to by any application implementing the Neuron Client API, such as the Test Client or custom .NET applications. You will also find service crashes written by SCM appear in this log file as well. Both the Neuron ESB event log and the Application Event log can be accessed via the Servers selection of the Deployment tab of the Neuron ESB Explorer.
  6. The Neuron ESB event log will contain information regarding the Neuron ESB runtime, Neuron ESB endpoint hosts, the Neuron ESB discovery service as well as other information such as when a subscriber is not online to receive a message, an error occurred on a topic or endpoint etc.
  7. The Neuron ESB trace logs contain detailed information about the entities in your Neuron ESB solution. These files contain everything that appears in the Neuron ESB event log, along with additional information, depending on your configured logging level. These files are most commonly used by the product team to diagnose errors in a solution, and it is a good idea to become familiar with them and the information they contain. While there is a single logs folder, each instance of Neuron ESB installed an a machine will have it’s own master folder inside the logs folder where these log files can be found. The logs folder is located at <Neuron Install Folder>\Neuron ESB v3\logs.
  8. Nearly every entity in your Neuron ESB solution will have it’s own log file. From adapter endpoints, to service endpoints, to every topic and every service that Neuron ESB relies on to operate, such as the discovery service, the configuration service and the management service. While it might seem a bit overwhelming at first, it is far easier to locate an error which occurred in an adapter endpoint in a file dedicated to that adapter, then it would be to locate it in a file which contained information about every adapter in your solution.
  9. In addition to the base logging provided by Neuron ESB, it is possible to write your own custom information to the Neuron ESB log files from a business process. This is achieved either via the Trace process step, or in the language editor process steps. The trace process step writes the body of the message as an information level record. At design time it will put that information in the output window of the Neuron ESB Explorer Business Process Designer. At runtime these records will be written to the log file of the endpoint hosting the party which hosts the business process. Neuron ESB will respect the logging level when considering whether or not to write a trace step record to the log file. Meaning that if your instance is set to record errors and warnings only, the trace step records will not appear in the log files, but will still output to the output window at design time. Trace methods called from inside the language editors operate in much the same way as the trace process step. The major difference being that you can set what level the record is considered, where as the trace process step records are always considered informational. Trace methods used in the language editors write to the output window and log files the same as the trace process step and respect the logging level of the instance in the same manner as well.
  10. Like business processes workflows also allow for messages to be written to the log files using language editors. The Log methods of the workflow language editors works in the exact same way as the trace methods of the business processes language editors, writing both to the output window or appropriate log file, and respecting the logging level of the Neuron ESB instance.
  11. WCF Tracing, which is configured on the logging tab of the configure server dialog window, provides internal WCF logging for each Neuron service. When turned on a separate WCF log file will be generated for each corresponding Neuron ESB trace log file. These WCF log files provide information on the WCF connection as well as error details at the channel level. Though rare, sometimes WCF does not bubble up error information to a level where it can be captured by Neuron ESB and written to the trace log files and these WCF log files will capture that information. However, the WCF log files generate an enormous amount of data very quickly and so it is recommended that you not leave this option selected for too long a period of time.
  12. Sometimes it is necessary to centralize all the Neuron ESB trace logs to a central file share. For example if you are running multiple instances of Neuron in a farm, all with the same solution you may want all the log files for that solution in the same place and not spread out across the farm. In order to do this you will need to change a few registry settings on each machine to the location where you want the logs to be placed. Once you have the logs going to the desired location, whether that be the default location or one of your choosing, you should decide how often, in days, you would like Neuron to clean out the old log files.
  13. While Neuron ESB is incredibly easy to install, from time to time one might encounter and issue with the installation process. The most common issues to run into are an invalid license key error, the setup files fail to copy to the machine, or the services fail to start up. Each of these is easy to troubleshoot and resolve in their own right.
  14. If you receive an invalid license key error, the first thing to do is ensure that the license key is correct and the one provided to you by the Neuron ESB team. If after having done that, you are still receiving the same error look at your group policies and see if FIPS is enabled on your machine. Disable FIPS and retry the Neuron ESB installation.
  15. In the case of the setup files failing to copy or the services failing to start, Neuron ESB generates a log file in the Temp directory during installation that will inform you of any errors that it encountered during the installation. Look at the log file to determine what the cause of the error was. To generate a detailed log file during installation to help you track down any errors that occur you can run the MSI command line provided.