South Star

Access Log Parser Nginx Apache Stats Export Gzip API

Free tier included · Monitoring
Parse Nginx and Apache access logs into stats, top IPs, and CSV/JSON export.

Access Log Parser transforms raw web server access logs (nginx and Apache combined format, Common Log Format, and Apache-escaped variations) into structured, actionable JSON or CSV statistics. It instantly computes top client IPs, top request paths, status-code distributions, total bytes sent, unique visitor counts, and covered time ranges. Malformed lines are gracefully counted as errors rather than crashing the parse, matching the rigor of tools like GoAccess without requiring any local CLI installations, complex self-hosted ELK stacks, or heavy log-aggregation infrastructure.

Recent additions bring enterprise-grade power to the API. Use `/export` to directly output aggregated metrics in JSON or CSV, `/parse/gzip` to process compressed logs sent as raw binary bytes, and `/parse/full` combined with `/parse/{cursor}` for streaming and chunked pagination of massive log files up to 10MB per request. Additionally, `/stats/full` allows precise filtering by IP range, HTTP method, and status code prefix (such as `4xx` or `5xx`) alongside custom field projection.

The API is fully stateless, offline, and secure, ensuring zero logging or storage of your sensitive web traffic data.

Honest limits: individual payload limits apply up to 10MB (`MAX_LOG`), and standard request rate limits are enforced per plan. Query strings are stripped from paths, and non-combined log formats without standard structures will register under error lines.

Endpoints

MethodPathWhat it does
GET/Root
GET/healthHealth
POST/parseParse
POST/statsStats
POST/parse/fullParse log with cursor pagination
GET/parse/{cursor}Fetch log chunk status by cursor
POST/stats/fullCompute filtered stats with field selection
POST/exportExport parsed log stats as CSV or JSON
POST/parse/gzipParse gzip-compressed access log

Quick start

curl -X POST "https://accesslog.p.rapidapi.com/parse" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: accesslog.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"log": "203.0.113.7 - - [24/Sep/2026:10:00:01 +0000] \"GET / HTTP/1.1\" 200 5123 \"-\" \"TestAgent/1.0\"\n198.51.100.9 - - [24/Sep/2026:10:00:02 +0000] \"GET /login HTTP/1.1\" 200 2345 \"https://example.com/\" \"Mozilla/5.0\"", "top_ips": 10, "top_paths": 10}'

FAQ

What log formats are supported?

Nginx and Apache combined log formats, Common Log Format (without referer/agent), Apache-escaped quotes, and lines with trailing extra fields.

What happens if my log file contains malformed or corrupt lines?

Malformed lines are safely counted under `error_lines` rather than throwing a server error or interrupting the parsing process.

Can I send compressed or large log files?

Yes. You can submit gzip-compressed logs via `/parse/gzip`, upload multipart form files, or chunk large logs up to 10MB using cursor pagination endpoints (`/parse/full`).

Are my log contents stored or logged by the API?

No. The API is completely stateless and offline. Your log data is processed on-the-fly in memory and never saved or logged.

Try Access Log Parser Nginx Apache Stats Export Gzip free

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

Open on RapidAPI

Related APIs