Nginx and Apache access log to JSON
Parse combined access log lines into JSON Lines.
Loading the tool…
What it does, how to use it, and questions
What it does
Nginx and Apache combined log formats pack IP, user, time, request, status, bytes and user-agent onto one line.
Parse those lines into JSON Lines for jq or spreadsheets.
How to use it
- Paste log lines.
- Confirm combined format.
- Copy JSONL output.
Things to watch for
- Custom log_format strings will not match. Use a dedicated parser for custom formats.
- IPv6 and unusual quote placements can break a line; failures are reported per line.
Questions
- Which format?
- Common combined / combined-like formats used by Nginx and Apache.
- Does it geo-locate IPs?
- No. That would need a network database.
- User-agent parsing?
- The string is kept. Open the user-agent tool for browser/OS fields.
- Are logs uploaded?
- No.