Audit newline-delimited JSON logs against a contract, and across the whole set
Audit newline-delimited JSON logs against a contract, and across the whole set. The two findings that need every line at once: a field whose type varies between lines, so an index either rejects the minority or coerces them silently; and a message field with nearly as many distinct values as lines, which is interpolated rather than templated so nothing groups and cost scales with volume. Also reports absent required fields, a level differing only in case, and a timestamp with no offset.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.zfinia.com/x402/v1/log-schema-contract-audit
| Category | Code and developer |
|---|---|
| Provider host | api.zfinia.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-04 | valid payment request | 402 | $0.19 | 5932 ms |
Example input (from the provider)
{
"body": {
"contract": {
"field_types": {
"duration_ms": "number",
"status": "number"
},
"permitted_levels": [
"debug",
"info",
"warn",
"error"
],
"require_timestamp_offset": true,
"required_fields": [
"timestamp",
"level",
"message",
"service"
]
},
"logs": "{\"timestamp\":\"2026-10-02T12:00:00.000Z\",\"level\":\"info\",\"message\":\"request completed\",\"status\":200,\"duration_ms\":12}\n{\"timestamp\":\"2026-10-02T12:00:01.000Z\",\"level\":\"ERROR\",\"message\":\"request failed for order 8827341 after 3 retries\",\"status\":500,\"duration_ms\":\"940\"}\n{\"timestamp\":\"2026-10-02T12:00:02.000Z\",\"level\":\"info\",\"message\":\"request failed for order 8827342 after 1 retries\",\"status\":500,\"duration_ms\":880}\n{\"timestamp\":\"2026-10-02 12:00:03.000\",\"level\":\"warn\",\"message\":\"request failed for order 8827343 after 2 retries\",\"status\":503}\n{\"timestamp\":\"2026-10-02T12:00:04.000Z\",\"level\":\"info\",\"message\":\"request failed for order 8827344 after 1 retries\",\"status\":500,\"duration_ms\":790}\n{\"level\":\"info\",\"message\":\"request failed for order 8827345 after 4 retries\",\"status\":500,\"duration_ms\":1200}\n{\"timestamp\":\"2026-10-02T12:00:06.000Z\",\"level\":\"info\",\"message\":\"request failed for order 8827346 after 2 retries\",\"status\":500,\"duration_ms\":810}\n{\"timestamp\":\"2026-10-02T12:00:07.000Z\",\"level\":\"info\",\"message\":\"request failed for order 8827347 after 1 retries\",\"status\":500,\"duration_ms\":760}\n{\"timestamp\":\"2026-10-02T12:00:08.000Z\",\"level\":\"info\",\"message\":\"request failed for order 8827348 after 3 retries\",\"status\":500,\"duration_ms\":920}\n{\"timestamp\":\"2026-10-02T12:00:09.000Z\",\"level\":\"info\",\"message\":\"request failed for order 8827349 after 1 retries\",\"status\":500,\"duration_ms\":700}\n{not json at all"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"contract": {
"additionalProperties": false,
"properties": {
"field_types": {
"type": "object"
},
"level_field": {
"maxLength": 128,
"type": "string"
},
"message_field": {
"maxLength": 128,
"type": "string"
},
"permitted_levels": {
"items": {
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
},
"require_timestamp_offset": {
"type": "boolean"
},
"required_fields": {
"items": {
"maxLength": 256,
"type": "string"
},
"maxItems": 500,
"minItems": 1,
"type": "array"
},
"timestamp_field": {
"maxLength": 128,
"type": "string"
}
},
"type": "object"
},
"logs": {
"maxLength": 2097152,
"type": "string"
}
},
"required": [
"logs",
"contract"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}