v1

latestOpenAPI 3.1.02026-07-1311417.6 KB
Ingestion

Send Logs (OTLP/HTTP)

Ingest log records in OTLP HTTP/JSON format. This is the primary ingestion endpoint for LogClaw Cloud. Logs are processed through the pipeline: OTel Collector → Kafka → Bridge → OpenSearch.

The auth proxy automatically injects your project's tenant_id into each log record based on your API key.

post/v1/logs

Request body

Example request

{
  "resourceLogs": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "my-app"
            }
          }
        ]
      },
      "scopeLogs": [
        {
          "logRecords": [
            {
              "timeUnixNano": "1709312400000000000",
              "severityText": "INFO",
              "severityNumber": 9,
              "body": {
                "stringValue": "Hello from LogClaw!"
              },
              "traceId": "abcdef1234567890abcdef1234567890",
              "spanId": "abcdef1234567890"
            }
          ]
        }
      ]
    }
  ]
}

Response

Logs accepted

partialSuccessobject
All 11 operations