Monitoring server events on-premises
Monitoring Business Central server events on-premises covers admin, operational, debug and trace events, and how to view them in Event Viewer or PowerShell. It also covers collecting .etl trace data with Logman, Performance Monitor or PerfView, and limiting telemetry trace events.
Path: Business Central on-premises > Administration > Monitoring Business Central server > Monitoring server events on-premises · tier official · system administration · narrative reviewed (checked by Opus)
Overview
Business Central Server uses Event Tracing for Windows to record events that help diagnose conditions and troubleshoot performance. Events are grouped into channels (Admin, Operational, Debug) in Windows Event logs. Server events cover SQL connections, service startup and shutdown, tenant mounting, authentication, certificate monitoring and licensing violations. Trace events cover SQL statements, service calls, AL function execution and telemetry.
Start with the overview page and the server events reference to learn the channels and event categories. Then choose a viewing method: Event Viewer, where you can filter by tenant, instance, severity and time, or the Get-WinEvent cmdlet in PowerShell.
For deeper analysis, trace events from the Microsoft-DynamicsNAV-Server and Microsoft-DynamicsNAV-Common providers can be collected into .etl files. Three tools are described: Logman, Performance Monitor (Data Collector Sets) and PerfView. Performance Monitor and PerfView use keyword filters to select event types. A separate page explains how to turn off or limit telemetry trace events.
Key points
- Events are written to Admin, Operational and Debug channels in Windows Event logs, and some go to the Windows Application log.
- Server events include SQL connection issues, service start and stop, tenant mounting, authentication events, certificate monitoring and licensing violations.
- Trace events from the Microsoft-DynamicsNAV-Server and Microsoft-DynamicsNAV-Common providers track SQL statements, service calls, AL function execution and telemetry, filtered with hexadecimal keywords.
- Event Viewer lets you filter events by tenant, instance, severity and time.
- PowerShell’s Get-WinEvent cmdlet reads server instance events and trace events from event logs and trace files.
- Logman, Performance Monitor (Data Collector Sets with trace buffer and keyword settings) and PerfView each collect trace data into .etl files.
- The Diagnostic Trace Level setting turns off or limits telemetry trace events. You set it in CustomSettings.config or with Set-NAVServerConfiguration.
Learn pages
- Microsoft Dynamics 365 Business Central Server Events: Learn about Microsoft Dynamics 365 Business Central Server Events. Events have the source BusinessCentralServer.
- Server events originate from BusinessCentralServer with unique IDs and task categories for filtering.
- Event 113: Object Change Listener monitoring SQL database for application object changes after connection.
- Event 200-202: Generic error, information, and warning IDs for various server instance issues.
- Event 205-210: Service listening port events for OData, SOAP, Windows client, and Management.
- Event 223-225: Service initialization, ready status, and shutdown lifecycle events.
- Event 226-230: Multitenant mounting and dismounting of NAV application and tenant databases.
- Event 700-706: Telemetry events with severity levels configured by Diagnostic Trace Level setting.
- Task categories classify events: 8 (connect), 11 (disconnect), 12 (messages), 13 (exceptions).
- Microsoft Dynamics 365 Business Central Server Trace Events: Learn about Business Central Server Trace Events. This article provides an overview of the trace events that are generated by Business Central server instance.
- Two event trace providers publish trace events: Microsoft-DynamicsNAV-Server and Microsoft-DynamicsNAV-Common, which is for telemetry only.
- SQL trace events track SQL statements from the server instance against the database on SQL Server, including session ID, tenant ID, user, and statement.
- Service call trace events track when clients run Business Central objects: Queries, Reports, and XMLports.
- AL function tracing tracks execution of AL functions and statements on the server, but only root-level functions are traced by default unless full tracing is configured.
- Limit: Full AL function tracing must be configured separately; statements and nested AL functions are not traced by default.
- Telemetry trace events provide data about application operations and usage, including both system and custom events sent via SENDTRACETAG.
- Some trace events have separate start and stop operations to measure duration; monitoring tools like PerfView automatically calculate duration.
- Monitoring Business Central Server Events in Event Viewer: Use Windows Event Viewer to inspect Business Central Server events, browse channel logs, and filter errors by tenant, server instance, and time range.
- Business Central Server events are recorded in event channels specific to Business Central and the Windows Application log
- Admin log includes events targeting end users and IT administrators indicating problems requiring action
- Operational log includes ordinary operating events providing information for analysis and diagnosis
- Debug log includes SQL tracing, service call traces, and AL function call traces
- Limit: Debug logs are hidden and disabled by default in Event Viewer
- Telemetry events in Common folder have IDs 700-716 in version 29
- Prerequisite: Diagnostic Trace Level configuration setting controls the lowest severity level of telemetry events recorded in the event log
- Monitoring Business Central Server Events with PowerShell: Learn how to use PowerShell to monitor Business Central Server instances
- Get-WinEvent PowerShell cmdlet retrieves server events and trace events from event logs and trace files.
- Events visible in Event Viewer under Applications and Services Logs, Microsoft, DynamicsNAV, Common, Admin.
- Step: Enable Debug logs by running wevtutil commands to set Microsoft-DynamicsNAV-Server and Common Debug logs.
- FilterXpath parameter allows filtering events by level, tenant ID, and server instance name.
- Step: Create PowerShell scripts to extract trace events and analyze execution times by comparing timestamps.
- Debug logs are disabled by default; Admin and Operational logs enable automatically.
- Monitoring Microsoft Dynamics 365 Business Central Server Events: Read about how you can monitor events on the server that hosts the Business Central server components for on-premises deployments.
- Server events recorded in Windows Event logs on server computer in Admin, Operational, and Debug channels
- Event tracing enables dynamic monitoring without restarting server or Business Central clients
- Event tracing tracks reports, queries, XMLports, SQL statements, AL functions, telemetry, and log events
- Industry-standard tools like Windows Performance Monitor and PerfView collect event trace data
- Event trace data stored in .etl files for offline analysis
- Turn Off or Limit Telemetry Trace Events: Get tips for how to configure telemetry traces, depending on what you want to measure.
- Diagnostic Trace Level setting controls lowest severity of telemetry events emitted by Business Central server.
- Custom telemetry events have IDs 700-712, separate from external proxy logging controlled by ExternalTraceLevel.
- Step: Configure Diagnostic Trace Level via Microsoft Dynamics 365 Administration tool under General settings.
- Step: Set trace level to Critical, Error, Warning, Normal (Information), Verbose, or Off.
- Step: Restart server instance for configuration changes to take effect.
- Step: Use Set-NAVServerConfiguration PowerShell cmdlet as alternative to admin tool for configuration.
- SENDTRACETAG method in code generates custom telemetry events that can be filtered or suppressed.
- Use Logman to Collect Event Trace Data: Get tips for how to use LogMan on telemetry traces.
- Logman collects trace event data from Microsoft-DynamicsNAV-Server and Microsoft-DynamicsNAV-Common providers.
- Server provider traces SQL, AL function, and session call events; Common provider traces telemetry events.
- Step: Create trace data collector with logman create trace command specifying provider and output .etl file.
- Step: Start trace session with logman start command and stop with logman stop command.
- Collected data stored in event trace log (.etl) file for analysis with industry-standard tools.
- Tracerpt command converts .etl files to dump, summary, and report files in XML format.
- Use Performance Monitor to Collect Event Trace Data: Get tips for how to use Performance Monitor on telemetry traces.
- Step: Start Performance Monitor and create Data Collector Set under User-defined with event trace data type.
- Step: Add Microsoft-DynamicsNAV-Server provider to collect trace events in Data Collector Set wizard.
- Step: Filter specific trace events by keyword decimal value in Properties list and Manual field.
- Keyword values: service calls (4), AL functions (8), sum values for multiple events (e.g., 12 for both).
- Step: Increase trace buffer settings to minimum 128 size, 50 minimum and maximum buffers to prevent dropped events.
- Step: Start Data Collector Set to begin recording and stop to end recording trace event data.
- Collected data stored in .etl file viewable with PerfView or other industry-standard tools.
- Use PerfView to Collect Event Trace Data: Get tips for how to use PerView on telemetry traces.
- Step: Download and install PerfView from Microsoft link to collect server event trace data.
- Step: Open PerfView, select Collect menu, set data file path with .etl extension, enable Advanced options.
- Step: Type Microsoft-DynamicsNAV-Server in Additional providers field to collect trace events.
- Filter specific trace events using hexadecimal keyword values: service calls (0x4), AL functions (0x8).
- Step: Combine keyword values by addition: 0x4 and 0x8 yields 0xC for both event types.
- Step: Start Collection to begin recording and Stop Collection to end recording trace data.
- Step: View .etl file by double-clicking file, then Events to display traces, double-click trace for details.
Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 of 9 Learn pages
- learnMicrosoft Dynamics 365 Business Central Server Events2024-10-26
- learnMicrosoft Dynamics 365 Business Central Server Trace Events2024-10-26
- learnMonitoring Business Central Server Events in Event Viewer2026-11-17
- learnMonitoring Business Central Server Events with PowerShell2024-10-26
- learnMonitoring Microsoft Dynamics 365 Business Central Server Events2024-04-16
- learnTurn Off or Limit Telemetry Trace Events2024-10-26
- learnUse Logman to Collect Event Trace Data2024-10-26
- learnUse Performance Monitor to Collect Event Trace Data2024-10-26