{"title":"Use LogMan to Collect Event Trace Data","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/monitor-use-logman-collect-event-trace-data/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/monitor-use-logman-collect-event-trace-data, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/monitor-use-logman-collect-event-trace-data","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Get tips for how to use LogMan on telemetry traces.","date":"2024-10-26","meta":{"topic":"how-to"},"outline":[{"level":2,"title":"Collect event trace data","slug":"collect-event-trace-data","at":609,"chars":1626},{"level":2,"title":"View trace event data","slug":"view-trace-event-data","at":2235,"chars":672},{"level":2,"title":"Related information","slug":"related-information","at":2907,"chars":202}],"text":"> APPLIES TO: Business Central on-premises\nThis article describes how to use logman to collect event trace data for Business Central Server. Logman (logman.exe) comes with the Windows Operating System. You can use it to create and manage event trace session and performance logs from the command prompt.\nThis article provides a brief introduction to using logman to collect trace event data for Business Central Server and telemetry events. For more detailed information about logman, see Logman<https://learn.microsoft.com/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc753820(v=ws.11)>.\n## Collect event trace data\nYou can collect Business Central Server trace event data from two different trace event providers: Microsoft-DynamicsNAV-Server and Microsoft-DynamicsNAV-Common. Microsoft-DynamicsNAV-Server is used for trace events like SQL traces, AL function traces, and session calls. Microsoft-DynamicsNAV-Common is used for telemetry events.\nData that is collected with logman is stored in an event trace log \\(.etl\\) file.\nThe following steps give you an example of how to use logman.\n1. Open the command prompt, and change to the directory that contains the logman.exe file.\n This is typically `C:\\Windows\\System32`\n1. At the command prompt, run one of the following commands to create a trace data collector.\n For telemetry trace events:\n ```\n logman create trace MyTelemetryTraceData -p Microsoft-DynamicsNAV-Common -o c:\\perflogs\\MyTelemetryTraceData.etl\n ```\n For server trace events:\n ```\n logman create trace MyServerTraceData -p Microsoft-DynamicsNAV-Server -o c:\\perflogs\\MyServerTraceData.etl\n ```\n These commands will create event log files named MyTelemetryTraceData.etl and MyServerTraceData.etl in the `c:\\perflogs` folder of your computer.\n1. To start the trace session, run one of the following commands.\n For telemetry trace events:\n ```\n logman start MyTelemetryTraceData\n ```\n For server trace events:\n ```\n logman start MyServerTraceData\n ```\n1. To stop the trace session, run one of the following commands.\n For telemetry trace events:\n ```\n logman stop MyTelemetryTraceData\n ```\n For server trace events:\n ```\n logman stop MyServerTraceData\n ```\nThe data is now stored in an .etl file.\n## View trace event data\nThere are various industry tools available for viewing data in .etl files.\nFor example, from the command line, you can use the\ntracerpt command<https://learn.microsoft.com/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc732700(v=ws.11)> to create dump files, summary, and report files. The following code creates files for the MyTelemetryTraceData_000001.etl file:\n```\ntracerpt c:\\perflogs\\MyTelemetryTraceData_000001.etl -o c:\\perflogs\\MyTelemetry-dmp.xml -of XML -summary c:\\perflogs\\MyTelemetry-summary.txt -report c:\\perflogs\\MyTelemetry-rpt.xml\n```\nYou can also use PerView. See monitor-use-perfview-view-event-trace-data.\n## Related information\nMonitoring Business Central Server Events<monitor-server-events>\nBusiness Central Server Trace Events<server-trace-events>\n../developer/devenv-instrument-application-for-telemetry"}