- Available on: Enterprise plans
- Access: Workspace admins and owners
- Location: Data exports (Workspace settings → Security → Data exports)
Why use data exports
Lovable keeps audit logs for 13 weeks. Data exports put a copy of that data in your own systems, where you control retention, access, and analysis. Use data exports when you want to:- Keep audit logs longer than 13 weeks, for example a multi-year audit trail in a bucket with your own lifecycle rules.
- Search Lovable activity next to your other security events in a SIEM (security information and event management system), for example to alert when someone changes SSO settings or adds a workspace admin.
Sources
Each export copies exactly one source. To export several sources, create one export per source.id field. The id stays the same if Lovable delivers the row again, so you can use it to remove duplicates. See Delivery and duplicates.
Audit log fields
Each audit log row has these fields:Destinations
Lovable supports three destinations. Object storage destinations receive files. Event destinations receive one event per row.Object storage file layout
Amazon S3 receives gzipped JSON Lines files, one row per line. Lovable writes them under this path:<prefix>is the prefix you set on the export. The default islovable-export/.- Lovable shortens the workspace and export names in the path to lowercase letters and digits, with
-between words, up to 48 characters. - Times in
run=andwindow=are in UTC. - A window with no new data creates no file.
application/gzip. Any tool that reads gzipped JSON Lines can read them, such as Amazon Athena or BigQuery.
Prerequisites
- An account with the destination provider, and permission to grant access there. Each destination page lists what you need.
Create a data export
These steps apply to every destination. Each destination page covers its own access setup.Open Data exports
Name the export and choose a schedule
Compliance audit log export. Keep the export Enabled. Under Schedule, choose Every 1 hour or Every 3 hours.Choose the destination and the source
Test the connection
Create the export
How runs work
Schedule and timing
Each export runs on its schedule, every hour or every 3 hours. Each run exports the data that arrived since the previous run, up to about 5 minutes before the run started. An export runs one run at a time. If a run is still going when the next one is due, Lovable skips the scheduled run.First run and history
The first run exports all the history that Lovable still holds for the source, then later runs continue with new data:- Audit logs: up to 13 weeks of history. See Audit log data retention.
window= folder. If the first run fails partway, the next run starts the full history again from the same point and writes every window again under its own run= folder. Lovable removes the files the failed run wrote when it can.
Failed runs
When a run fails, Lovable does not move the export forward. The next run tries the same data again, so a failure does not leave a gap. The run shows a message that explains what to fix. See Troubleshooting.Delivery and duplicates
Delivery is at least once. Lovable can deliver a row more than once, for example when it retries after a network error. Remove duplicates when you query the data:run= folder.
Monitor runs
The Data exports page lists your exports with their Last run, Activity, Next run, and Schedule. Click an export to open its details:- Destination: the destination address. Click to copy it.
- Success, Rows, and Runs: totals for the period in the label, the last 7 days or the last runs loaded.
- Run now: starts a run immediately.
- Recent history: one row per run with its start time, duration, row count, and status. Runs you started with Run now show a Manual badge.
Manage an export
Open the actions menu on an export row, or click the export to open its details.Edit an export
Choose Edit export or Edit configuration. You can change the name, the schedule, and some destination settings, such as the prefix or a Splunk token. You cannot change the source or the destination itself, such as the bucket, the Splunk endpoint, or the Azure workspace. To change them, create a new export.Pause and resume
Use the Schedule switch to pause or resume an export. A paused export does not run on its schedule, and Run now does not work until you resume it. When you resume, the next run starts within a few minutes and catches up on everything since the last successful run.Run now
Choose Run now to start a run immediately. It exports the same new data that the next scheduled run would. You cannot start a run while another run of the same export is in progress.Reset the watermark
The watermark marks how far an export has delivered. Choose Reset watermark to clear it. The next run exports the full history again, then continues with new data. You cannot reset while a run is in progress.Delete an export
Choose Delete export. Lovable stops the schedule and removes the run history for the export. Data that Lovable already delivered to your destination stays there. For Azure Log Analytics, the table and its data collection rule also stay.Activity in your audit logs
Lovable records data export activity in your workspace audit logs: creating, editing, and deleting exports, manual runs, watermark resets, and connection tests.Limitations
- Each export has one source and one destination. Neither can change after you create the export.
- The schedule is every hour or every 3 hours.
- Data arrives at the destination at least 5 minutes after it happened, plus the time until the next run.
- You cannot filter which events an export sends, for example by action or actor. Each export sends every audit log event in the workspace.
FAQ
Which plans include data exports?
Which plans include data exports?
Who pays for storage and ingestion at the destination?
Who pays for storage and ingestion at the destination?
Does Lovable store a password or access key for my destination?
Does Lovable store a password or access key for my destination?
Can I send audit logs to more than one destination?
Can I send audit logs to more than one destination?
Why do I see the same row twice?
Why do I see the same row twice?
id for object storage, lovable_event_id for Splunk, or EventId for Azure Log Analytics.What happens to my data if I delete an export?
What happens to my data if I delete an export?
Troubleshooting
Test connection fails
Test connection fails
A run failed
A run failed
The export paused itself
The export paused itself
A run shows 0 rows
A run shows 0 rows
Run now is not available or shows an error
Run now is not available or shows an error