{"uid":"cap_D975B8kLzayfxaWF3SFnm","slug":"api-strale-io-dc693f29","name":"Strale Log Parser","description":"Parse log files — auto-detects format (JSON, syslog, ISO, logfmt, Laravel). Extracts timestamps, levels, messages. Returns error/warning summary. Algorithmic.","url":"https://api.strale.io/x402/log-parse","method":"GET","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":{"request":{"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"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0xefb05d233c539401062bf59dfc227366d299af6d4de7ce0e7f71ae510ba220eb"},"capability":"log-parse","latency_ms":1,"provenance":{"source":"algorithmic","fetched_at":"2026-06-13T04:25:34.989Z"}},"errors":[],"warnings":[],"time_range":{"last":null,"first":null},"error_count":0,"total_lines":3,"level_counts":{},"parsed_sample":[{"raw":"2024-01-15T10:23:45Z ERROR [app] Database connection failed","format":"unknown","message":"2024-01-15T10:23:45Z ERROR [app] Database connection failed","line_number":1},{"raw":"2024-01-15T10:23:46Z WARN [app] Retrying connection","format":"unknown","message":"2024-01-15T10:23:46Z WARN [app] Retrying connection","line_number":2},{"raw":"2024-01-15T10:23:47Z INFO [app] Connection restored","format":"unknown","message":"2024-01-15T10:23:47Z INFO [app] Connection restored","line_number":3}],"warning_count":0,"detected_format":"unknown"}},"exampleRequest":{"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"},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"1.00","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rx3bnIAhDu-Oh0PrWy35g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses log file content with auto-detected format (JSON, syslog, ISO, logfmt, Laravel), extracting timestamps, levels, messages, and returning an error/warning summary.","exampleAgentPrompt":"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'","exampleUseCases":null,"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":3,"lastUsedAt":"2026-07-17T20:02:15.464Z","lastSuccessfullyRanAt":"2026-07-17T20:02:15.464Z","lastHealthCheckAt":"2026-09-13T13:04:22.795Z","isFirstParty":false}