topic hubPlatform, DevOps & Performanceofficial - Microsoftreviewed - checked by Opus

Monitor and analyze telemetry

Monitoring and analyzing Business Central telemetry sent to Azure Application Insights. It answers questions about turning telemetry on, event IDs, KQL and Power BI analysis, alerts, cost control, and FAQs. A subtopic gives per-area event reference.

Path: Administration > Monitor and analyze telemetry · tier official · system platform · narrative reviewed (checked by Opus)

Overview

Business Central can emit operational telemetry to Azure Application Insights at the environment level and at the app or extension level. This section explains how to enable it, what events are emitted, and how to analyze, alert on and pay for the data.

Start with the overview page on monitoring and analyzing telemetry, then the page on turning environment telemetry on or off, which covers the connection string for online and on-premises setups. The event ID pages and the “Telemetry by area” subtopic list events, custom dimensions and the versions that introduced them.

For analysis, use KQL against the Application Insights or Log Analytics data, or the Power BI apps with Usage, Errors, Performance and Administration reports. Separate pages cover alerts (Application Insights, Logic Apps, Power Automate), cost control, and an FAQ on retention, deletion and privacy.

Key points

  • Telemetry can be enabled at environment level and at app/extension level, and is sent to Azure Application Insights.
  • Environment telemetry setup uses a connection string, and applies to online and on-premises deployments, including single-tenant mode setup.
  • KQL pages show queries on the traces and pageViews tables, session and user tracking, and report usage analysis.
  • Power BI apps are free and open source, with four reports: Usage, Errors, Performance and Administration.
  • Alerts can be built with Application Insights alerts, Azure Logic Apps or Power Automate, using KQL queries.
  • Costs are controlled with sampling, data collection rules, daily caps and retention settings in Azure Monitor Log Analytics.
  • Event ID reference groups events as application, client, lifecycle and runtime, and explains the AL event ID prefix.
  • The FAQ covers custom dimensions overflow, data retention, the purge API and privacy compliance.

Subtopics

More Learn pages

  • Analyze and Monitor Telemetry with KQL: Query Business Central telemetry with Kusto Query Language to follow sessions and users, investigate performance, and analyze report usage.
    • Business Central telemetry is stored in Application Insights in traces and pageViews tables
    • Kusto Query Language (KQL) is used to query telemetry data in Application Insights
    • Kusto queries can be used in Application Insights Logs, Power BI reports, Alerts, Azure Dashboards, and Jupyter Notebooks
    • With workspace-based resources, telemetry goes to Log Analytics workspace for consolidated access across application, infrastructure, and platform logs
    • Telemetry table names differ: traces in Application Insights become AppTraces in Log Analytics; pageViews become AppPageViews
    • Business Central server emits timestamps in UTC timezone; use datetime_utc_to_local() function to convert to local timezone
    • From version 24 onwards, session_Id and user_Id are aligned between server and browser components for advanced troubleshooting
  • Analyze and Monitor Telemetry with Power BI: Install and configure Power BI apps for Business Central telemetry to analyze usage, investigate errors, and monitor environment performance.
    • Power BI telemetry apps consist of four reports: Usage, Errors, Performance, and Administration.
    • Usage report covers sessions, clients, locations, page views, reports, feature usage, integrations, and deprecated features.
    • Error report analyzes user errors, integration errors, and system errors; supplements Jupyter notebook troubleshooting guides.
    • Performance report provides insights into sessions, page timings, long-running queries, database locks, and job scheduling.
    • Administration report tracks environment inventory, version updates, and changes to environments, companies, extensions, indexes, and fields.
    • App parameters control refresh schedules, Microsoft Entra tenant mapping, timezone, data inclusion, and app filtering.
    • Sample data is shown by default in Power BI apps; actual data requires connecting Application Insights resource.
  • Available Business Central Telemetry: Find Business Central telemetry by area or event ID to monitor environments and extensions, diagnose errors, and analyze performance.
    • Business Central telemetry is logged into traces or pageViews tables in Application Insights
    • Telemetry covers application events, client events, lifecycle events, and runtime events
  • Control Business Central Telemetry Costs: Control Business Central telemetry costs with ingestion filters, daily caps, and retention settings for your Azure Application Insights data.
    • One telemetry event typically uses 2-10 KB; maximum is 64 KB per event.
    • One GB of data corresponds to approximately 100,000 events at 10 KB each.
    • Partner data shows average cost of 7.3 USD per customer monthly; large customers up to 178 USD.
    • Use data collection rules to filter unwanted telemetry before ingestion into workspace.
    • Business Central logs to AppTraces and AppPageViews tables in Log Analytics workspace.
    • Set daily cap on ingestion and configure alerts when cap is reached.
    • Limit: Daily cap is not a precise spending limit; ingestion can exceed it and be billed.
    • Override ingestion endpoint using IngestionEndpoint key in connection string.
  • Monitoring and Analyzing Telemetry: Monitor Business Central environments and extensions with Application Insights telemetry to diagnose errors, analyze performance, and track usage.
    • Environment-level telemetry and app-level telemetry can be enabled separately to Application Insights resources.
    • Status: Per-extension telemetry enabled from Business Central 2020 release wave 2 by setting connection string in app.json.
    • Both online and on-premises instances can emit telemetry to Application Insights.
    • Telemetry data is stored in Application Insights Logs in traces and pageViews tables, queried with KQL.
    • Two free, open-source Power BI apps available from marketplace: one for environment telemetry, one for app telemetry.
    • Permissions: Power BI Pro licenses required to install telemetry Power BI apps.
    • In the observatory: Codeunit 8703 “Feature Telemetry”
  • Set Up Business Central Telemetry Alerts: Set up alerts on Business Central telemetry with Azure Monitor, Logic Apps, or Power Automate to respond to issues and environment changes.
    • Telemetry alerts can be defined using Application Insights, Azure Logic Apps, or Power Automate
    • Defining alerts requires a Kusto KQL query to define the alerting condition
    • It is good practice to add where clause limiting event timestamp in alerting queries, such as timestamp greater than ago 1 hour
    • Step: Create alerts in Application Insights by opening Azure portal, locating Application Insights resource, and selecting Alerts
    • Azure Logic Apps and Power Automate use Azure Monitor Logs connector with workspace table names like AppTraces instead of traces
    • Sample alerting queries and automations are available in the Business Central BCTech repository on GitHub
  • Telemetry Event IDs in Application Insights | Microsoft Docs: Learn about the event IDs of Business Central events emitted to Azure Application Insights.
    • Status: Generally available, reference page for telemetry event IDs
    • AL event IDs emitted by application code receive AL prefix when sent to Application Insights
    • Events are grouped by administrative purpose: application, client, lifecycle, and runtime categories
    • AL events originate from Session.LogMessage, Telemetry codeunit, or Feature Telemetry codeunit
    • Event dimensions names are prefixed with ‘al’ when converted to Application Insights format
    • Business Central applications repository contains source code for finding AL event origins
  • Telemetry FAQ (Frequently Asked Questions): Get answers about Business Central telemetry setup, costs, privacy, retention, access, and querying data in Azure Application Insights.
    • Long dimension values exceeding 8,000 characters are split into overflow keys named with _1 and _2 suffixes, up to 24,000 total.
    • One-to-one relationship between customers and Application Insights resources enables separate cost tracking and customer isolation.
    • Log Analytics retention can be configured up to two years for analytics tables and 12 years for total retention with search jobs.
    • Read-only Application Insights access requires Reader role assignment in both the resource and resource group.
    • Telemetry includes tenant identifiers, configuration data, and usage data; some events include pseudonymous user telemetry IDs.
    • Telemetry works for on-premises installations, though a few events are not emitted for on-premises.
    • Application Insights instrumentation is not backported to versions before 15.0 due to extensive refactoring requirements.
  • Turn Business Central Environment Telemetry On or Off: Connect Business Central online or on-premises environments to Azure Application Insights to collect telemetry and troubleshoot issues.
    • Prerequisite: Create an Azure Application Insights resource to receive telemetry data
    • Step: Obtain Connection String or Instrumentation Key from the Application Insights resource Overview page
    • Connection String is recommended for versions after 2020 release wave 2; Instrumentation Key support ended March 31, 2025
    • Step: For online environments, enable telemetry in admin center by selecting Define and entering connection string
    • Step: For on-premises single-tenant, set ApplicationInsightsConnectionString in server configuration
    • Step: For on-premises multitenant, specify connection string per tenant during Mount-NAVTenant
    • Telemetry ID can be assigned or cleared per user on User Card to track troubleshooting by individual
    • Same Application Insights resource can be used for multiple tenants and environments

Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 8 of 70 Learn pages

Show 32 more