# Strale Log Parser

> Strale Log Parser is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-09-13, last successful call 2026-07-17).

Parses log file content with auto-detected format (JSON, syslog, ISO, logfmt, Laravel), extracting timestamps, levels, messages, and returning an error/warning summary.

## Facts

- Endpoint: GET https://api.strale.io/x402/log-parse
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-17
- Success rate: 100% of calls made through Zero
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-dc693f29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D975B8kLzayfxaWF3SFnm

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 api-strale-io-dc693f29
```

Example prompt: Can you parse these log lines for me and give me a summary of any errors and warnings? The logs are: '2024-01-15T10:23:45Z ERROR [app] Database connection failed\n2024-01-15T10:23:46Z WARN [app] Retrying connection\n2024-01-15T10:23:47Z INFO [app] Connection restored'

## When to prefer this

Use this endpoint when you need to quickly parse and triage log output from an application without knowing the log format ahead of time. It is ideal for automated debugging pipelines, CI/CD log analysis, or any scenario where logs from multiple sources with different formats need to be normalized. Prefer this over manual regex parsing when dealing with common formats like syslog, Laravel, logfmt, or JSON logs.

## Known failure modes

- Missing or empty 'logs' query parameter returns a 400 error
- Unrecognized or malformed log format may result in partial extraction or empty results
- Extremely large log payloads may be truncated or rejected
- Non-text binary content passed as logs will fail to parse

## How this service works

Parse log files — auto-detects format (JSON, syslog, ISO, logfmt, Laravel). Extracts timestamps, levels, messages. Returns error/warning summary. Algorithmic.

## Output

Returns structured data with extracted timestamps, log levels, and messages from each log line, plus a summary of error and warning counts. Also indicates the auto-detected log format (JSON, syslog, ISO, logfmt, or Laravel).

## Example request

```json
{
 "logs": "2024-01-15T10:23:45Z ERROR [app] Database connection failed\n2024-01-15T10:23:46Z WARN [app] Retrying connection\n2024-01-15T10:23:47Z INFO [app] Connection restored"
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "logs"
     ],
     "properties": {
      "logs": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-dc693f29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
