Skip to content

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.

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.

SettingNotes
API keyRequiredStored encrypted and never shown again.
API URLOptionalOnly 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.

TableFiltersReturns
sourcesNoneLog sources in the account.
endpoint_resultsendpoint (required), paramsRows returned by a Logflare Endpoint (by its token or name).
Terminal window
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.

An Endpoint is a saved query, so the connector only reads what the Endpoint returns. params passes the Endpoint’s parameters as JSON.