Star us on GitHub
Star
Menu

HTTP OTLP

Set up highlight.io log ingestion via OTLP HTTP.
1
Use curl to test how logs look in Highlight.

Get started quickly with logs transmitted over the OTLP HTTP protocol.

curl -X POST https://otel.highlight.io:4318/v1/logs \ -H 'Content-Type: application/json' \ -d '{ "resourceLogs": [ { "resource": { "attributes": [] }, "scopeLogs": [ { "scope": {}, "logRecords": [ { "timeUnixNano": "'$(date +%s000000000)'", "severityNumber": 9, "severityText": "Info", "name": "logA", "body": { "stringValue": "Hello, world! This is sent from a curl command." }, "attributes": [ { "key": "highlight.project_id", "value": { "stringValue": "YOUR_PROJECT_ID" } }, { "key": "foo", "value": { "stringValue": "bar" } } ], "traceId": "08040201000000000000000000000000", "spanId": "0102040800000000" } ] } ] } ] }'
Copy
2
Verify your backend logs are being recorded.

Visit the highlight logs portal and check that backend logs are coming in.