KBAISE/ for lovable
Library
Docs

Export Lovable logs to Azure Log Analytics

about 15 minShippingchecked 5d agoOfficial page
The short version

You can automatically send Lovable audit logs to your Azure workspace on a regular schedule. The setup links both services securely through Microsoft identity tools without saving passwords.

Enterprise workspace owners or admins who need to store and monitor Lovable activity logs inside Azure.

Do this, in order

  1. 1

    Open Data exports in your Lovable workspace settings, click 'New data export', and select 'Azure Log Analytics' as the destination along with your source.

    The setup script and configuration details generated by Lovable depend on which source you choose.

  2. 2

    Register a new application in Microsoft Entra ID and copy the Directory (tenant) ID and Application (client) ID into the Lovable setup panel.

    Lovable uses these identifiers to find your organization and sign in to Azure.

  3. 3

    Add a federated credential under Certificates & secrets in your Azure app using the exact credential values provided in Lovable.

    This establishes trust between Lovable and Azure without having to manage or store secrets.

  4. 4

    Copy the Resource ID from your Log Analytics workspace properties page in Azure and paste it into the Lovable setup panel.

    This identifies the exact Azure workspace where the log table will live.

  5. 5

    Copy the Azure CLI script from Lovable and execute it in your terminal.

    The script creates the log table and collection rule, and assigns the required access permissions to your app.

  6. 6

    Click 'Test connection' in Lovable, confirm the check succeeds, and click 'Create export'.

    This verifies that Azure authentication and table permissions work before the scheduled delivery begins.

Paste this into your project

Show me the Kusto queries from the documentation to deduplicate Lovable audit logs by EventId and extract the details from the payload in Azure Log Analytics.

Words decoded

Log Analytics workspace
A storage container in Azure where log events are collected, organized, and searched.
Microsoft Entra ID
Microsoft's cloud identity system that manages user accounts, app registrations, and security access.
Federated credential
A secure trust agreement that lets an external service access Azure resources without sharing passwords or keys.
Data collection rule
An Azure rule that dictates how incoming data is processed and sent into a specific log table.
Kusto
The query language used to search, filter, and analyze data stored in Azure log tables.

Where people get stuck

  • You cannot edit the tenant ID, client ID, or workspace resource ID on an existing export; you must create a new one to change them.
  • Role assignments in Azure can take several minutes to apply, so testing the connection immediately after running the script may fail.
  • Azure limits ingestion requests to 1 MB and can truncate individual field values larger than 64 KB even if the run succeeds.
  • Deleting an export's table or data collection rule in Azure will cause future runs to fail until you re-run the setup script.
  • Azure Government, Azure China, and private endpoints are not supported.

The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.