Learning resourcesReviewed · Lovable

Export Lovable logs to Azure Log Analytics

This guide helps Lovable Enterprise administrators export audit logs to Azure Log Analytics, but delivery can duplicate records and Azure can shorten large field values. It covers federated authentication, source-specific tables and data collection rules, setup checks, Kusto queries and recovery from configuration problems.

Researched 14 Nov 2026

In short.

This guide helps Lovable Enterprise administrators export audit logs to Azure Log Analytics, but an accepted delivery does not guarantee that large field values remain intact. It describes scheduled exports authenticated through Microsoft Entra federation, with a separate table and data collection rule for each source. The documented connection check verifies authentication and access without sending events; actual ingestion requires an export run. Delivery is at least once, so queries must account for duplicates. Pricing, detailed scheduling behavior and operational performance are not established by this page, and nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected documentation page at [https://docs.lovable.dev/features/data-exports-azure-log-analytics.md], including its authentication model, prerequisites, setup, permissions, table schema, query examples, lifecycle behavior, size-limit warnings and troubleshooting. The documentation index and all linked pages are excluded. Export-specific setup scripts and panel values were unavailable. No commands, scripts, connection checks, exports or queries were executed; operational behavior remains unverified.

The overview

Identity

This is Lovable's setup and operations guide for exporting logs into an Azure Log Analytics workspace [https://docs.lovable.dev/features/data-exports-azure-log-analytics.md]. It documents an integration feature rather than providing a standalone application or downloadable implementation.

The only source-to-table mapping shown is audit logs to LovableAuditLogsV2_CL. Broader source definitions and scheduling behavior are referenced on another page and are not established here.

Assessment

The guide provides concrete instructions for teams that want Lovable audit events available for querying in Azure. Its useful detail includes the distinction between setup privileges and ongoing export permissions, duplicate handling, retained Azure resources after deletion, and accepted deliveries with shortened fields.

It is a reasonable fit when a team can manage Azure resources and tolerate delayed, potentially duplicated records. It does not establish suitability as a complete-fidelity archive: Azure may shorten large values, and Lovable does not read delivered data back to verify completeness.

Users

The primary users are Lovable workspace administrators or owners on an Enterprise plan, supported by someone with permission to configure Microsoft Entra and Azure resources. Developers and operations staff can use the resulting tables to examine audit events with Kusto queries.

Beginners receive a sequenced setup guide, but still need access to the Azure portal, a signed-in Azure CLI and a bash or zsh shell. Familiarity with Azure permissions and JSON querying will help with troubleshooting and analysis.

Capabilities

The feature sends scheduled exports into source-specific Log Analytics tables. The setup script creates or updates each source's table and data collection rule, which defines how data reaches the destination.

Each row includes TimeGenerated and EventTime from the source timestamp, EventId for deduplication, WorkspaceId, ProjectId, LovableExportId, LovableRunId and a dynamic Payload containing the source JSON. ProjectId is empty for audit logs.

Tables use the Analytics plan and the workspace's retention settings. New source fields appear inside Payload without requiring a table or data collection rule update. Exact export schedules and the complete audit-event schema are not supplied.

Using it

Requirements

The destination must be a Log Analytics workspace in Azure's public cloud. Azure Government, Azure China and private endpoints are unsupported. Lovable requires an Enterprise plan and the workspace admin or owner role.

Setup requires permission to register an app and add a federated credential in Microsoft Entra ID. The Azure account must also be able to create tables, data collection rules, custom roles and role assignments in the workspace's resource group. The Azure CLI must be signed in to the workspace's subscription.

One app registration serves one Lovable workspace. An existing app and federated credential used for that workspace's Azure Blob Storage export can be reused. A second Lovable workspace needs a second app because of Entra's issuer-and-subject credential restriction.

Mechanism

Lovable authenticates as an app registration in the customer's Microsoft Entra tenant using a federated credential. The page says neither side stores a secret for this authentication.

The runtime app can read the workspace and the tables and data collection rules created for it, check its own permissions, and send data through those rules. It cannot modify tables or rules and has no delete, role-assignment, workspace-key or log-query access. These limited runtime permissions are distinct from the broader permissions needed by the account performing setup.

Delivery is at least once, meaning a retry can deliver an event again. Azure processes rows before they become visible, and the first delivery can take several minutes.

Setup

Start a new export in Lovable's Data exports settings [https://lovable.dev/settings/data-exports], select Azure Log Analytics and choose the source. Register or reuse the appropriate Entra app, enter its tenant and client IDs, and configure the federated credential using the values displayed in that export's setup panel.

Enter the Log Analytics workspace resource ID, then use the Azure CLI script generated in the setup panel. The page identifies that panel as authoritative for credential values and permissions. Each source needs its own export and corresponding script; the generated scripts themselves are not included in the supplied page.

After the script completes, allow for role assignments to propagate and use Test connection. A successful result checks authentication, resources and permissions but sends no events. Create the export afterward; its first run is needed to establish ingestion.

The script can be rerun to repair configuration. For schema problems involving a changed column type, the page says to restore the expected type first. It states that existing data is not deleted during that repair.

Example

For audit analysis, the page provides this Kusto query to keep one row per EventId and remove duplicate deliveries from query results:

LovableAuditLogsV2_CL | summarize arg_max(TimeGenerated, *) by EventId

Audit-log Payload.details contains JSON text. The next documented query parses that text and displays the event time, action and parsed details:

LovableAuditLogsV2_CL | extend Details = parse_json(tostring(Payload.details)) | project TimeGenerated, Action = tostring(Payload.action), Details

These are documentation examples. Neither query was executed, and no returned events or query performance measurements are available.

Assessment & evidence

Limitations

Azure's documented request limit is 1 MB, including event data and Lovable's metadata columns. If a single row cannot fit, the run fails and the page directs users to Lovable support.

A request within that limit can still contain field values that Azure shortens when they exceed 64 KB. Azure acceptance counts as delivery even when values are shortened. Lovable sends full values but does not read them back, so successful delivery does not establish complete field preservation.

Tenant ID, client ID and workspace resource ID cannot be edited on an existing export; changing them requires a new export. Deleting an export leaves its Azure table, data collection rule and data in place.

Deleting the Azure table or rule causes runs to fail until the setup script is rerun. Lovable cannot recreate those resources itself. Exact retry timing, throughput, scheduling options and broader run behavior are unknown from this page.

Reasoning

Federated authentication removes the stored-secret requirement described by the guide, while limited runtime permissions constrain what the export app can do. This suggests a useful operational fit for teams already able to administer Entra and Azure, although it does not establish an independently verified security outcome.

Keeping source data in a dynamic Payload allows new fields to arrive without schema changes. The tradeoff is that analysts must understand the source fields and sometimes parse nested JSON text.

At-least-once delivery and possible field shortening require separate judgments about duplicate handling and data completeness. Deduplication queries address repeated EventId values; they cannot restore values shortened during ingestion.

Alternatives

The page names Azure Blob Storage as another Lovable export destination and says the same Lovable workspace can reuse its Entra app and federated credential for both destinations.

It does not compare Blob Storage with Log Analytics on price, querying, retention, delivery behavior or field preservation. The linked Blob Storage guide is outside the supplied evidence, so a recommendation between the destinations is not established.

Evidence

The evidence is the complete captured Lovable documentation page [https://docs.lovable.dev/features/data-exports-azure-log-analytics.md]. It supports the described setup, permission boundaries, schema, queries, deletion behavior and documented failure conditions.

The export-specific CLI script, credential values, linked source definitions, general scheduling documentation and linked Azure service-limit documentation were not supplied. Claims about Azure limits are therefore attributed to Lovable's page without independent corroboration.

Nothing was executed. Authentication, generated permissions, actual ingestion, duplicate handling, truncation behavior and recovery procedures were not verified in an operating environment.

Access & freshness

Costs

A Lovable Enterprise plan is required, but the page provides no subscription price, export fee or included allowance. It specifies Azure Analytics-plan tables and workspace retention without providing ingestion or retention prices.

Total cost is unknown. The page supplies neither a usage estimate nor enough pricing information to calculate one.

Rights

The supplied page states no licence for the documentation, query examples or generated setup scripts. Permission to redistribute those materials is not established.

The destination is a Log Analytics workspace under the customer's Azure configuration. The page does not establish data ownership terms, processing agreements, regional data-handling commitments or privacy guarantees. Its permission description establishes technical access boundaries, not contractual rights.

Freshness

The page was captured on 14 November 2026 (2026-11-14T22:00:21.095Z).

The text provides no publication date, update date or feature release number. Current behavior beyond that capture is unknown. The V2 component of the table name does not establish a product release version.

Actions

Before adopting the integration, confirm Enterprise access, the required Lovable role, an eligible public-cloud Azure workspace and the Azure permissions needed for setup. Obtain pricing and choose retention settings appropriate to the expected audit volume.

Use the selected source's current setup panel for credential values and the generated script. Review the resources and role assignments it will create, then follow the documented connection check and export creation steps.

After enabling an export, inspect its first delivered events to confirm ingestion, expected fields and duplicate handling. If complete field preservation matters, compare representative large source values with their Azure records; a successful connection check or accepted run alone cannot establish that.

For authentication or missing-resource errors, check the panel values and rerun the setup script as directed, allowing several minutes for permissions to apply. Before removing Azure resources, disable or delete the export and account for the data and resources that remain.

Evidence for this report

selected-page.txtselected · checked 2026-11-14