← Back to directory

Normalize mixed log lines (nginx/Apache combined or common, Caddy JSON, generic ...

https://code.halowerk.com/v1/log-normalize

Overview

Normalize mixed log lines (nginx/Apache combined or common, Caddy JSON, generic JSON, logfmt, syslog RFC 3164 and RFC 5424) into one JSON schema. Parses each line with the matching grammar, also in mixed files, and returns records with ISO 8601 UTC timestamp, level (syslog severity, JSON level or derived from the HTTP status), host, client IP, method, path, protocol, status, bytes, duration in milliseconds, user agent, referrer, application, PID and message.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
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

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "lines": "203.0.113.7 - - [31/Oct/2026:23:59:01 +0100] \"GET /api/orders?token=abc HTTP/1.1\" 500 512 \"-\" \"curl/8.5.0\"\n<34>1 2026-10-31T23:00:00.003Z web1 app 4711 ID47 - Database connection lost", "mask_ip": true }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "formats": { "clf_combined": 1, "syslog_rfc5424": 1 }, "records": [ { "app": null, "bytes": 512, "client_ip": "203.0.113.0", "duration_ms": null, "format": "clf_combined", "host": null, "level": "error", "line": 1, "message": null, "method": "GET", "path": "/api/orders?token=REDACTED", "protocol": "HTTP/1.1", "referrer": null, "status": 500, "timestamp": "2026-10-31T22:59:01.000Z", "user_agent": "curl/8.5.0" }, { "app": "app", "bytes": null, "client_ip": null, "duration_ms": null, "facility": 4, "format": "syslog_rfc5424", "host": "web1", "level": "critical", "line": 2, "message": "Database connection lost", "method": null, "path": null, "pid": "4711", "protocol": null, "referrer": null, "status": null, "timestamp": "2026-10-31T23:00:00.003Z", "user_agent": null } ], "stats": { "errors": 2, "lines": 2, "parsed": 2, "unparsed": 0 }, "truncated": false, "unparsed": [] }, "service": "log-normalize", "status": "success" }, "type": "json" }