Prerequisites
- Splunk Cloud or Splunk Enterprise with the HTTP Event Collector enabled.
- An HEC token that can write to the index you want to use.
- An HTTPS HEC endpoint that Lovable can reach over the public internet.
- The workspace admin or owner role in Lovable, on an Enterprise plan.
Set up the export
Create the export in Lovable with your HTTP Event Collector endpoint and token.1
Start a new export
Go to Data exports, click New data export, and choose Splunk HEC under Destination.
2
Enter the endpoint and token
Fill in the form:
- Endpoint URL: your HTTPS HEC endpoint, for example
https://prd-p-example.splunkcloud.com:8088/services/collector/event. You can also enter the URL without a path, or with/services/collector. Lovable always sends to/services/collector/event. - Token: your HEC token.
- Index (optional), Source (optional), and Sourcetype (optional): values Lovable sets on every event. Leave them blank to use the defaults of your token.
3
Choose TLS verification
Under TLS verification, choose how Lovable checks your endpoint’s certificate:
4
Choose the source and test
Choose the Source and click Test connection. Lovable sends one test event to your HEC endpoint. See Test events.
5
Create the export
Click Create export.
Exported events
Each row becomes one HEC event. The event time is the row’stimestamp. The event body is the row, with the fields described in Sources. Lovable adds these fields to every event:
Here is an audit log event as Lovable sends it, formatted for readability:
event object holds every field of the source. This example shows only some of them.
Search and remove duplicates
Search bylovable_export_id, lovable_run_id, or lovable_workspace_id. Delivery is at least once, so a retried run can send an event again. Remove duplicates with dedup in searches and dashboards:
Test events
Test connection sends one event with the messagelovable customer data export connection test and the field lovable_probe=true. To leave test events out of a search, add NOT lovable_probe=true.
Troubleshooting
TLS certificate verification failed
TLS certificate verification failed
Lovable could not verify your endpoint’s certificate. Check that the endpoint host matches the certificate. For a private certificate authority, choose Custom CA certificate and paste the signing certificate. For a self-signed certificate, choose Skip TLS verification.
Authentication denied
Authentication denied
Splunk rejected the token. Check the token, and that it can write to the index you set.
Splunk rejected the request
Splunk rejected the request
Check the Index and Sourcetype, and that the token can write to that index.
Destination configuration is invalid
Destination configuration is invalid
Lovable could not use your endpoint settings. This covers a wrong Endpoint URL, an endpoint that Lovable cannot reach over the public internet, and an invalid CA certificate. Check the Endpoint URL, your network settings, and the CA certificate (PEM) if you use one.
A run fails because an event is too large
A run fails because an event is too large
Splunk rejects events larger than the HEC
max_content_length setting. Raise max_content_length on your Splunk deployment, then let the next run retry. Until the limit is raised, the export does not advance past that data. If you cannot change the limit, contact Lovable support.