Logs & JSON Tools API
Parse nginx access logs into structured JSON and compute JSON diffs for auditing, debugging, and change tracking.
Included endpoints
POST /api/v1/logs/parse– parse nginx access log linesPOST /api/v1/diff/json– key-level JSON diff (added, removed, changed)
Example: Parse nginx access log
curl --request POST \
--url https://hefftools.dev/api/v1/logs/parse \
--header 'Content-Type: application/json' \
--header 'X-RapidAPI-Key: <your-rapidapi-key>' \
--data '{
"log_type": "nginx_access",
"line": "127.0.0.1 - - [30/Nov/2025:12:34:56 +0000] \"GET / HTTP/1.1\" 200 612 \"-\" \"curl/7.81.0\""
}'
Response (snippet):
{
"log_type": "nginx_access",
"parsed": {
"remote_addr": "127.0.0.1",
"status": "200",
"request": "GET / HTTP/1.1",
"http_user_agent": "curl/7.81.0"
},
"raw": "127.0.0.1 - - [30/Nov/2025:12:34:56 +0000] \"GET / HTTP/1.1\" 200 612 \"-\" \"curl/7.81.0\""
}
Use cases
- Preprocessing logs before sending them to a logging platform
- Automated incident reports showing JSON diffs of configs or payloads
- Debugging API behavior by comparing old vs new responses