KBAISE/ for lovable
Library
Docs

Export Lovable logs to Google Cloud Storage

about 10 minShippingchecked 5d agoOfficial page
The short version

You can automatically export your Lovable workspace logs to a Google Cloud Storage bucket on a regular schedule. Lovable writes compressed log files securely using temporary permissions limited to your designated folder.

Workspace admins or owners on an Enterprise plan who need to store and analyze Lovable audit logs in Google Cloud.

Do this, in order

  1. 1

    Go to Data exports in your Lovable workspace settings, click New data export, and choose Google Cloud Storage.

    This opens the configuration form to link your cloud bucket.

  2. 2

    Enter your bucket name, numeric Google Cloud project number, and optional folder prefix.

    Lovable uses these details to generate the exact permission commands and ensure files go to the right location.

  3. 3

    Copy and run both generated grant commands in your Google Cloud command-line interface.

    The commands give Lovable access to write only to your specific folder path and verify that your project still owns the bucket.

  4. 4

    Choose your data source and click Test connection.

    This checks bucket ownership and confirms Lovable can create and delete a test file without having excessive permissions.

  5. 5

    Click Create export to save and turn on the scheduled export.

    Lovable validates your permissions one last time and begins exporting log files according to schedule.

Paste this into your project

Help me set up the Google Cloud Storage export configuration and provide the BigQuery SQL to query our exported audit logs.

Words decoded

bucket
A storage folder in Google Cloud where files are kept.
project number
A unique sequence of digits assigned to your Google Cloud account, different from your text-based project ID.
IAM policy
The security rules that specify who is allowed to view or edit resources in your cloud account.
JSON Lines
A file format where every line is an individual data record, making it easy for analytics tools to process.

Where people get stuck

  • Entering your Google Cloud project ID instead of the numeric project number.
  • Removing or widening the security condition on the first command, which causes the connection test to fail.
  • Adding a condition to the second command, which blocks Lovable from verifying bucket ownership.
  • Using a storage bucket that does not have uniform bucket-level access enabled.
  • Attempting to change the bucket name or project number later; switching buckets requires creating a new export.

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.