# Aient OpenTelemetry Log Search

> Aient OpenTelemetry Log Search is a paid API for AI agents from aient.ai, paid per call via x402, $0.005000/call, status unknown (last checked 2026-09-14).

Search OpenTelemetry log records across services using full-text queries and attribute filters, returning up to 200 matching log entries

## Facts

- Endpoint: GET https://aient.ai/x402/telemetry/logs
- Price: $0.005000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aient-ai-24e2d112
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mp7HsEB_A3yhFEEh81BeE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aient-ai-24e2d112
```

Example prompt: Search my Aient telemetry logs for the payment-service for ERROR severity messages containing 'connection refused' from the last 2 hours, and return up to 50 records so I can figure out why checkouts are failing.

## When to prefer this

Use this endpoint when you need to retrieve actual raw log records from OpenTelemetry-instrumented services, especially to ground an LLM in real error messages before proposing a fix. Prefer it over the traces endpoint when the signal of interest is log output (print statements, structured log events) rather than span timing. Prefer it over the problems endpoint when you need raw records rather than grouped error signatures.

## Known failure modes

- No logs found matching filters — returns empty logs array
- Invalid date-time format for since/until — returns 400 validation error
- Unknown service name — returns empty result set
- Limit exceeds maximum of 200 — may be capped or return 400
- Authentication/payment failure — returns 402 payment required
- Query syntax error — returns 400 with parse error details

## How this service works

Search OpenTelemetry logs across your services with full-text and attribute filters; useful for grounding an LLM in real error messages before proposing a fix. Returns up to 200 log records.

## Output

Returns an array of up to 200 OpenTelemetry log record objects (each with timestamp, severity, body, and attributes), plus an optional nextCursor string for pagination. The logs match the provided full-text query and attribute filters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "since": {
       "type": "string",
       "format": "date-time"
      },
      "until": {
       "type": "string",
       "format": "date-time"
      },
      "service": {
       "type": "string"
      },
      "severity": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "logs"
     ],
     "properties": {
      "logs": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "nextCursor": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aient-ai-24e2d112/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aient.ai](https://www.zero.xyz/host/aient.ai/llms.txt)
