South Star

Syslog Parser RFC 3164 RFC 5424 Nginx Apache API

Free tier included · Monitoring
Parse RFC 3164, RFC 5424, Nginx, Apache and key-value logs into structured JSON.

Syslog Parser API normalizes mixed log feeds into structured JSON. It auto-detects RFC 5424 (version digit + ISO 8601 timestamp) vs RFC 3164 (Mmm dd hh:mm:ss, year inferred from the current year) per line, and also parses Nginx/Apache access logs (Common and Combined formats) and key=value telemetry lines. Each record returns PRI with facility/severity numbers and RFC 5427 keyword names, normalized ISO timestamp, hostname, tag/PID (RFC 3164) or APP-NAME/PROCID/MSGID (RFC 5424), and STRUCTURED-DATA parsed into dicts with RFC 5424 escape handling.

Endpoints available: `POST /parse` for general log parsing, `POST /stats` for batch statistics, `POST /parse/full` for full log parsing, `POST /parse/web` for web-server log parsing, and `POST /parse/kv` for key-value telemetry parsing.

Use cases: (1) normalize mixed legacy/protocol syslog feeds into JSON for analytics; (2) pre-flight validation of log shipping pipelines with `?strict=true` as a CI gate; (3) parse web-server access logs for security monitoring or traffic analysis; (4) extract key-value telemetry from application logs.

The service is offline and stateless: no external network calls, no databases, no request logs. It is tested against the example messages printed in the RFC texts (RFC 3164 §4.1.2/§5.4, RFC 5424 §6.5.1–6.5.3) and handles edge cases like space-padded days, nil SD fields, escaped SD values, and tags with/without PIDs. A single `POST /parse` accepts 1–500 lines; `POST /stats` aggregates a batch by RFC, severity and top apps; `POST /parse/full`, `/parse/web`, and `/parse/kv` target specific formats.

Endpoints

MethodPathWhat it does
GET/API metadata: name, version, and paths to the interactive docs and health endpoint.
GET/healthLiveness probe; returns status "ok" while the process is up.
POST/parseParse a batch of syslog messages (RFC 3164 or RFC 5424) with auto-detection. Body: {"lines": ["..."]}. Optional query param ?strict=true turns any invalid line into a 422.
POST/statsAggregate a batch of syslog messages by RFC, severity, and top apps. Body: {"lines": ["..."]}.
POST/parse/fullParse a batch of log lines in any supported format (syslog, nginx, apache, kv, or auto-detect). Body: {"lines": ["..."], "format": "auto"}. Returns structured fields including timestamp, host, client_ip, method, path, status, bytes, referer, user_agent, facility, severity, and key-value pairs.
POST/parse/webParse Nginx or Apache access logs in Common or Combined format. Body: {"lines": ["..."], "format": "nginx"}. Returns timestamp, host, client_ip, method, path, status, bytes, referer, and user_agent.
POST/parse/kvParse key=value telemetry lines into a dictionary. Supports quoted values. Body: {"lines": ["..."], "format": "kv"}.

Quick start

curl -X POST "https://syslogp.p.rapidapi.com/parse" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: syslogp.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"lines":["<34>Oct 11 22:14:15 mymachine sshd[1234]: failed","<165>1 2026-09-26T10:00:00.003Z host app 2001 ID47 - Done"]}'

FAQ

Does the API receive live syslog over the network?

No. It parses text lines you POST to it. It does not listen on UDP/TCP syslog ports.

How many lines can I send in one request?

Up to 500 lines per request across all parse endpoints. Each line must be a string.

What happens if a line can't be parsed?

By default, unparseable lines are returned in the `invalid` array with a reason. Add `?strict=true` to `/parse` to make any invalid line return HTTP 422 instead.

Does the API store or log my log data?

No. The service is stateless and offline. It does not persist requests, log payloads, or make external network calls.

Try Syslog Parser RFC 3164 RFC 5424 Nginx Apache free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs