Event channels on Microsoft Dynamics NAV Server events
Monitoring is an essential part of software security and surveillance. You can monitor events on Microsoft Dynamics NAV Server to diagnose conditions, and troubleshoot problems that affect operation and performance. Microsoft Dynamics NAV 2016 introduces event channels on events that occur on Microsoft Dynamics NAV Server instances. Event channels provide a way to collect a view event data from a specific provider, which, in this case, is Microsoft Dynamics NAV Server, and for a specific type of event, such as Admin, operational, or debug. The implementation of event channels offers the following enhancements to event logging and viewing.
Microsoft Dynamics NAV uses Event Tracing for Windows (ETW), which is a subsystem of the Windows operating systems. ETW provides a tracing mechanism for events that are raised by an application or service. ETW enables you to use industry-standard tools, such as Windows Performance Monitor, PerfView, Event Viewer, and Windows PowerShell, to dynamically collect data on trace events that occur on the Microsoft Dynamics NAV Server.
Event Logs can be viewed using Windows Event Viewer.
To start Event Viewer, follow these steps:
- Click on Start, and point at Programs.
- Point at Administrative Tools, and then click on Event Viewer.
To collect and view trace events in Event Viewer, follow these steps:
- In the console tree, choose Applications and Services Logs, Microsoft, DynamicsNAV, and then Server.
- If the Debug log is not shown under Server, then in the View menu, select Show Analytic and Debug Logs.
- Select the Debug log option, and then choose Enable Log in the Actions menu.
Note
Understanding how to read the event logs properly is vital if you have system-or application-level issues. We will discuss more about event logs in Chapter 4, Testing and Debugging.