{"uid":"cap_unbo7zcLONzSxeZJcEkCC","slug":"writerslogic-log-collapse-log-signature-grouper-fa558797","name":"WritersLogic Log Collapse – Log Signature Grouper","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/log-collapse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LYvrE8iuD65j5pufp76Qd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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]","exampleUseCases":[{"title":"CI pipeline failure triage","prompt":"Here's 4,000 lines of output from our failing GitHub Actions build — collapse it into the top 15 error and warning signatures so I can see what's actually repeating without scrolling through everything."},{"title":"Production server log review","prompt":"I've got this nginx error log with thousands of lines — group it into unique message patterns, only show me error-level and above, and give me the first and last time each pattern appeared."},{"title":"Agent context compression for log analysis","prompt":"My AI agent needs to analyze this application log but it's 6,000 lines — can you collapse it into at most 20 signatures, including up to 3 stack trace frames per record, so it fits in context?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:41:00.449Z","isFirstParty":false,"canonicalSlug":"writerslogic-log-collapse-log-signature-grouper-fa558797"}