handy.moe

All tools / Debug tools

A stack of important documents

Log viewer: open big .log files in your browser

Open a big log file, filter it by text, regex or severity, highlight words and jump to the lines that matter. The file is streamed from your disk and never uploaded.

Runs in your browser. Pasted data never leaves it.

or drop a file here. Files of 200 MB and more are fine: they are read in slices, never uploaded.

How to use it

  1. Open a log file, or drop it on the page. The line count appears as the file is indexed.
  2. Type in the filter box to show only matching lines (tick Regex for patterns). Use the Level menu to keep errors and warnings.
  3. Set context lines to see the lines around each match, and Highlight to colour a word.
  4. Download the visible lines to share just the relevant part.

Questions

How can it open a 200 MB log in a browser?

The file is never loaded as a whole. It is read in 8 MB slices to find where each line starts (a compact index of numbers), and only the lines that are on the screen are read and drawn. Filtering streams through the file in the same way, so memory use stays small.

What are the limits?

Lines are cut at 2,000 characters when shown (the copy and download buttons use the whole line). The line index needs 8 bytes per line, so a 1 GB log with 10 million lines needs about 80 MB. Browsers have different file size limits; Chrome and Firefox read multi-gigabyte files.

How does the level filter know what is an error?

It looks for the common words in each line: ERROR, ERR, FATAL, CRITICAL, SEVERE, PANIC, Exception for errors; WARN and WARNING for warnings; INFO and NOTICE for info; DEBUG and TRACE. It is a text match, not a parser, so it works on most formats (nginx, Apache, syslog, log4j, Python logging, JSON lines).

Is the file uploaded?

No. It is read directly from your disk by this page. Nothing leaves your computer: that is the point.

Can I search by regular expression?

Yes, tick Regex and use JavaScript syntax. Tick Invert to hide the matches instead, which is the quick way to drop noise like health-check lines.

Is what I paste or test sent anywhere?

No. This page works entirely inside your browser, and pasted data never leaves your device. It makes no network requests while you use it, and the page also tells your browser to block them (a Content-Security-Policy with connect-src 'none'), so even a bug could not send your data out. To check it yourself, open your browser's developer tools, go to the Network tab, and use the tool: nothing will appear. There is no account, no analytics and no logging.