Log Parser
Parse log files in JSON, syslog, ISO, logfmt or Laravel format into timestamps, levels and messages, with a summary of errors and warnings.
Pay by wallet (x402)
log-parse Example
Input
{
"logs": "test_value"
} Answer
{
"errors": [],
"warnings": [],
"time_range": {
"last": null,
"first": null
},
"error_count": 0,
"total_lines": 1,
"level_counts": {},
"parsed_sample": [
{
"raw": "test_value",
"format": "unknown",
"message": "test_value",
"line_number": 1
}
],
"warning_count": 0,
"detected_format": "unknown"
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
logs | string | Yes | — |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
errors | array | Always (present in every successful answer) |
error_count | integer | Always (present in every successful answer) |
total_lines | integer | Always (present in every successful answer) |
level_counts | object | Always (present in every successful answer) |
detected_format | string | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "log-parse",
"inputs": {
"logs": "test_value"
},
"max_price_cents": 5
}' {
"tool": "strale_execute",
"arguments": {
"slug": "log-parse",
"inputs": {
"logs": "test_value"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "log-parse",
inputs: {
"logs": "test_value"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="log-parse",
inputs={
"logs": "test_value",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/log-parse?logs=test_value' Limitations
Custom log formats can require explicit hints
AI-powered log parsing — custom or proprietary log formats may require specific format hints for accurate parsing
What to do instead: Include a sample log line description or format string in the input for non-standard log formats
Related tools
- Agent Trace Analysis €0.20
- API Docs Generator €0.20
- API Mock Responses €0.05
- Changelog Generator €0.03
- Code Converter €0.05
- Commit Message Generator €0.05