Log Analytics Emulator

Preview

During Public Preview you can use the Team plan for free, and get an early-adopter discount at GA. Sign in

Log Analytics Emulator

Available on Starter Standard Team Compare plans →

A Log Analytics workspace is where Azure Monitor stores logs - from your applications, your Azure resources and Azure itself - so that you can query them using KQL.

Locally supports both provisioning Log Analytics workspaces and sending logs to them - so you can check that a Data Collection Rule's transformation does what you meant, or that an alert's query actually matches something, before you deploy.

When you provision a workspace in Locally, you can send logs to it and query them using the same APIs, SDKs and az commands you'd use against Azure.

For step-by-step walkthroughs, see Provisioning a Log Analytics Workspace and Configuring Diagnostic Settings.

Plugin required

Locally v2026.10+ automatically installs this Resource Provider plugin when its Resource Provider is registered, but you can also install it via:

$ locally plugin install --name Microsoft.OperationalInsights

Finding the Emulator

Once a workspace has been created, you can find it under Monitoring in the Locally Dashboard, along with its ID, shared keys, retention and the Application Insights components linked to it.

The Log Analytics Emulator

The Telemetry tab is a KQL console for a workspace, listing its tables, with charts for time series:

Screenshot of the Telemetry console in the Locally Dashboard, charting a KQL query over a custom OrderEvents_CL table in a Log Analytics workspace

What's Supported

The Log Analytics emulator supports:

Logs Ingestion API Data Collection Rules KQL Transformations HTTP Data Collector API OTLP Logs & Traces Cross-Workspace Queries Log Alerts

Logs can be sent using a Microsoft Entra token (with the Monitoring Metrics Publisher role) or, for the HTTP Data Collector API, the workspace's shared key. Queries need an Entra token with read access to the workspace. Data Collection Rules also need the Microsoft.Insights plugin.

KQL is run by Locally's own engine, which covers most of what you'd write day-to-day - such as summarize, join, parse, make-series and user-defined functions, along with the geo_*, series_*, IPv4 and IPv6 functions.

Queries are type-checked before they run, so comparing values of incompatible types - such as TimeGenerated > "2024-01-01" - fails with a SemanticError rather than returning the wrong rows, and operator and function names are case-sensitive. Errors carry Kusto's own codes and messages, such as SEM0100 for a column that doesn't exist, or SYN0002 with the line and position of a syntax error. The same engine runs queries in Application Insights and Resource Graph.

Chaos Engineering (on the Team plan) can throttle, fail or slow down ingestion and queries - so you can check your application copes when Log Analytics doesn't. Ingestion can also partly succeed or hit its daily cap, and queries can time out or miss data that was only just sent.

Log Analytics also works with Locally's other emulators, as you'd expect - for example:

  • Telemetry from the Application Insights Emulator lands in the App* tables of the component's workspace.
  • The Activity Log lands in AzureActivity, once a subscription has a diagnostic setting sending it to the workspace.
  • Console output from the Web App Emulator lands in AppServiceConsoleLogs, alongside its AppServiceHTTPLogs, AppServicePlatformLogs and AppServiceAuthenticationLogs. Function Apps send FunctionAppLogs, and Container Apps' console output lands in ContainerAppConsoleLogs_CL.

Differences from Azure

As of Locally v2026.11.03, the Log Analytics emulator has the following differences from Azure:

  • There's no Azure Monitor Agent, so tables like Heartbeat, Syslog, Perf and ContainerLogs stay empty.
  • Diagnostic settings on other resources (such as Storage or Key Vault) don't send anything yet - only the Activity Log, Web Apps and Function Apps send logs this way.
  • The machine learning operators (autocluster, basket, diffpatterns) and anomaly detection functions aren't supported, and render has no effect.
  • OTLP metrics aren't accepted - only OTLP logs and traces.
  • The archive tier, search jobs, summary rules and data export can be created, but don't do anything.

Should you encounter any issues, please take a look at the troubleshooting section, reach out in our Discord or open an issue and we'll take a look.

Preview

During Public Preview you can use the Team plan for free, and get an early-adopter discount at GA. Sign in

A local cloud for you and your AI agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.