LogClaw

Log Ingestion

Upload logs to the pipeline

Drag & drop log files here

JSON, NDJSON, CSV, or plain text — validated before upload

Quick JSON Upload

API Reference

POST

/api/otel/v1/logs

Send log entries via OTLP HTTP to the OpenTelemetry Collector.

curl -X POST https://app.logclaw.ai/api/otel/v1/logs \
  -H "Content-Type: application/json" \
  -d '{
    "resourceLogs": [{
      "resource": {
        "attributes": [
          {"key": "service.name", "value": {"stringValue": "payment-api"}}
        ]
      },
      "scopeLogs": [{
        "logRecords": [{
          "timeUnixNano": "1741003200000000000",
          "severityText": "ERROR",
          "body": {"stringValue": "Connection timeout"},
          "attributes": [
            {"key": "host.name", "value": {"stringValue": "prod-web-01"}}
          ]
        }]
      }]
    }]
  }'

Supported Formats

JSON

.json

Array or single object

NDJSON

.ndjson

One JSON per line

CSV

.csv

Header row required

Text

.txt/.log

One log per line

Required Fields

FieldTypeDescription
messagestringLog message (required)
levelstringDEBUG, INFO, WARN, ERROR, FATAL
timestampISO 8601Auto-generated if missing
servicestringService name for grouping
trace_idstringDistributed trace correlation