Logflare
List Logflare sources and read the results of a Logflare Endpoint (a saved query you create in Logflare).
Connect it in the console under Integrations > Connectors. See Connectors for how connectors work and who can use them.
Create a read-only credential
Section titled “Create a read-only credential”Copy an API key from your Logflare account settings. To read log events, create an Endpoint in Logflare first: Logflare has no general API that lists events.
The host must resolve to a public address: VAIF Studio refuses private, loopback, link-local and cloud metadata addresses, and connects to the address it checked, so a DNS change cannot redirect it.
Settings
Section titled “Settings”| Setting | Notes | |
|---|---|---|
| API key | Required | Stored encrypted and never shown again. |
| API URL | Optional | Only for self-hosted Logflare. For example https://api.logflare.app. |
Set API URL only for a self-hosted Logflare server, for example https://logflare.example.com. It must use HTTPS.
Tables
Section titled “Tables”| Table | Filters | Returns |
|---|---|---|
sources | None | Log sources in the account. |
endpoint_results | endpoint (required), params | Rows returned by a Logflare Endpoint (by its token or name). |
Query from the API
Section titled “Query from the API”curl -s -X POST "https://api.vaif.studio/database/connector/$VAIF_PROJECT_ID/query" \ -H "Authorization: Bearer $VAIF_TOKEN" -H "Content-Type: application/json" \ -d '{"wrapperId":"logflare_fdw","table":"endpoint_results","filters":{"endpoint":"errors-by-hour","params":"{\"project\":\"web\"}"},"limit":50}'$VAIF_TOKEN is a console access token. See Connectors for the routes.
How it stays read-only
Section titled “How it stays read-only”An Endpoint is a saved query, so the connector only reads what the Endpoint returns. params passes the Endpoint’s parameters as JSON.