Skip to content
ohsudo, Home

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.

nginx or Apache access log, .log, .txt or .gz, up to 500 MB
Read in your browser, line by line; nothing is uploaded. Logs hold IP addresses: this keeps them on your machine.

How to use it

  1. Open a log file: an access.log, a rotated access.log.1 or access.log.2.gz, up to 500 MB. Or paste a few thousand lines (up to 5 MB).
  2. The file is read line by line in the background, with a progress bar; the page stays usable.
  3. 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

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

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:

Terminal window
tail -n 2000000 /var/log/nginx/access.log > recent.log
zcat /var/log/nginx/access.log.*.gz | grep ' 502 ' > 502s.log

FAQ

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