Overview
Find anomalies in logs: error-rate spikes per time window, new message patterns compared with a baseline, and shifts in HTTP status classes. Normalizes the lines (same parser as log-normalize), buckets them into time windows and flags windows whose error share exceeds the median plus three median absolute deviations (at least five errors).
Protocol
x402 (POST)
Price
$0.0040
Payment Asset
USD Coin
Payment Network
Base
Category
uncategorized
Provider
code
Indexed
2026-11-20 13:10:04
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"body": {
"baseline": "level=info msg=\"user 7 logged in\" ts=2026-10-30T10:00:01Z\nlevel=info msg=\"user 9 logged in\" ts=2026-10-30T10:00:02Z",
"lines": "level=error msg=\"payment provider timeout after 3000 ms\" ts=2026-10-31T10:00:00Z\nlevel=info msg=\"user 42 logged in\" ts=2026-10-31T10:00:01Z"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"result": {
"median_error_share": 0.5,
"mode": "baseline",
"new_pattern_count": 1,
"new_patterns": [
{
"count": 1,
"first_line": 1,
"level": "error",
"template": "payment provider timeout after <NUM> ms"
}
],
"spikes": [],
"status_shift": null,
"window_minutes": 5,
"windows": [
{
"error_share": 0.5,
"errors": 1,
"start": "2026-10-31T10:00:00.000Z",
"total": 2
}
]
},
"service": "log-anomaly",
"status": "success"
},
"type": "json"
}