# WritersLogic Log Collapse – Log Signature Grouper

> WritersLogic Log Collapse – Log Signature Grouper is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Groups up to 8,000 lines of log or CI output into deduplicated signatures by replacing volatile tokens (timestamps, UUIDs, IPs, hex IDs, numbers) with placeholders and reporting count, severity, and example per pattern.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/log-collapse?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-log-collapse-log-signature-grouper-fa558797
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_unbo7zcLONzSxeZJcEkCC

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 writerslogic-log-collapse-log-signature-grouper-fa558797 -d '<json body>'
```

Example prompt: Collapse this CI log into its top 20 signatures — replace timestamps, UUIDs, and numbers with placeholders and group repeated lines together, only keeping records at warn level or above: [paste log text here]

## When to prefer this

Use this endpoint when you need to reduce a large, noisy plaintext log or CI output into a compact set of human-readable patterns before passing them to an LLM or agent for diagnosis. It is especially valuable when log volume exceeds prompt context limits and you need a lossless-summary of which patterns occur how often. It is NOT suitable for structured JSON logs requiring field-level parsing, non-ISO timestamp formats, or root-cause diagnosis.

## Known failure modes

- Text exceeds 300,000 characters or 8,000 lines — returns validation error
- topN out of range (must be 1–100) — returns schema validation error
- minSeverity enum value not recognized — returns validation error
- signatureFrames out of range (must be 0–10) — returns schema validation error
- Empty or whitespace-only text — returns validation or empty-result error
- Non-ISO timestamps in log lines are not parsed and will not appear in timestamp fields
- Structured JSON logs treated as raw text lines — JSON fields are not parsed

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A ranked list of up to N log signatures (default 20, up to 100), each containing: the normalized pattern string with placeholders, occurrence count, representative severity, first and last line numbers, first and last ISO 8601 timestamps if present, and one verbatim example line.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 300000,
   "minLength": 1,
   "description": "Log text, at most 8000 lines."
  },
  "topN": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1,
   "description": "Signatures returned, by count. Default 20."
  },
  "minSeverity": {
   "enum": [
    "fatal",
    "error",
    "warn",
    "info",
    "debug",
    "trace",
    "unknown"
   ],
   "type": "string",
   "description": "Ignore records below this severity. Default: keep all."
  },
  "signatureFrames": {
   "type": "integer",
   "maximum": 10,
   "minimum": 0,
   "description": "Continuation lines (stack frames) that are part of the signature. Default 3."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-log-collapse-log-signature-grouper-fa558797/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
