Log Analyzer
Open an nginx or Apache access log (even .gz, up to 500 MB) and see status codes, errors by URL, slowest requests, top IPs and traffic per minute. Nothing is uploaded.
● Runs 100% in your browser — nothing you type leaves this page.
How to use it
- Open a log file: an
access.log, a rotatedaccess.log.1oraccess.log.2.gz, up to 500 MB. Or paste a few thousand lines (up to 5 MB). - The file is read line by line in the background, with a progress bar; the page stays usable.
- Read the summary first (how many requests, the share of 4xx and 5xx), then the minute chart to see when a problem started, then the tables to see where.
Nothing is uploaded. Access logs hold IP addresses and URLs with tokens: they stay on your machine.
Which logs it reads
- combined, the default of nginx and the usual Apache format:
IP - user [time] "request" status bytes "referer" "user agent". - common, the shorter Apache format, without referer and user agent.
- Either one with timings after it, as
key=value:rt=orrequest_time=(nginx$request_time) andurt=orupstream_response_time=($upstream_response_time). - The
timedformat from the nginx cheat sheet, on its own.
Lines that aren’t access log lines (error log lines, blank lines) are counted and skipped. Error logs and system logs (journald, syslog) aren’t read yet.
What it shows
- Status codes, with their share, and a link to the article for the ones that usually mean trouble: 502, 504, 499, 413, 403.
- Requests per minute, and the minute with the most 5xx: an outage shows up as a gap or a wall of errors.
- 4xx and 5xx by URL, with the codes each URL got.
- The slowest requests, and how long half, 95% and 99% of them took, when the log has
$request_time. - The most requested URLs, the most active IPs and the user agents.
Times are shown in UTC, whatever time zone the log was written in.
Big files
The tool only keeps counts, never the lines, so memory stays small. Totals are always exact. When a log has hundreds of thousands of different URLs or IPs, the top lists become approximate, and the page says so.
To analyze only the last part of a huge log, cut it first:
tail -n 2000000 /var/log/nginx/access.log > recent.logzcat /var/log/nginx/access.log.*.gz | grep ' 502 ' > 502s.logFAQ
There are no slow requests listed
The default log formats don’t record how long a request took. Add $request_time (and $upstream_response_time behind a proxy) to your log_format: the nginx cheat sheet has a ready one.
Can it read logs from Docker or Kubernetes?
Yes, if the lines are the same format: save them first with docker logs web > web.log 2>&1 or kubectl logs deploy/web > web.log. The official nginx image writes its access log there.
Why are some lines skipped?
They’re not in an access log format: usually error log lines mixed in by docker logs, or a custom log_format with fields in another order. The page shows the first skipped line, so you can see what it was.
Articles
Learn more
Nginx "504 Gateway Time-out": find out what's slow before raising the timeout
Fix Nginx "504 Gateway Time-out": read the error log, measure the backend, set proxy_read_timeout or fastcgi_read_timeout, and check Cloudflare and load balancers.
Intermediate · 5 min read
Nginx "413 Request Entity Too Large": raise the upload limit in the right place
Fix 413 Request Entity Too Large on uploads: set client_max_body_size in nginx, then the limits of PHP, Node.js, the Kubernetes ingress and any proxy in front.
Beginner · 4 min read
Nginx "502 Bad Gateway": find the cause in the error log
Fix nginx 502 Bad Gateway: read error.log, then fix the backend that is down, the wrong address or socket, the crashing app, or SELinux on RHEL.
Intermediate · 6 min read