Log Viewer
Open a log file, even a large one, and narrow it down: by level, by words or a regular expression, and by time. A timeline shows when entries happened, and a click picks that time. Stack traces and other multi-line entries stay together, times can be shown in your own time zone, and terminal colour codes are shown as colours or removed.
About this tool What it's for, how to use it and an example
What it's for
Find what matters in a log file. Application, server and system logs run to thousands of lines; this shows them as entries you can narrow down by level, text and time, with a stack trace or other multi-line message kept with the line it belongs to.
For example, when a customer sends a 50 MB application log and says it failed “around ten past nine”, open it here, untick everything but errors and warnings, and set the times either side.
How to use it
Choose a log file or drop it on the page (or paste lines under Or paste lines). Levels are recognised from words
such as ERROR, WARN and INFO near the start of a line, from JSON logs’ level field and from syslog
priorities; each level gets a box with its count. Times are read from ISO dates, Apache and nginx access logs,
syslog and JSON time fields.
- Contains keeps entries with that text, or matching a regular expression written as
/pattern/flags. - From and To keep entries in that time range. Above the lines, a timeline counts entries in bars (a second, a minute, 5 or 15 minutes, an hour or a day, whichever fits), coloured by level. Click a bar, or press Enter on it, to set From and To to that bar; Clear removes the range. The timeline shows when two or more entries have times, and uses this device’s time zone.
- Show each entry’s time in my time zone adds a column of times converted from the zone the log gives (the choice is remembered).
- Show terminal colours shows the colour and bold codes (ANSI escape codes) that command line programs write as colours; untick it for plain text. Levels, times and Contains always work on the text without the codes. Keep colour codes when copying and saving keeps them in what you copy or save; otherwise they’re removed.
Entries with more lines fold open. Copy these and Save these take every entry that passes the filters.
Example
Under Or paste lines, paste these and press Show:
2026-10-06 09:00:01,123 INFO Starting app
2026-10-06 09:00:02,500 WARN Disk at 91%
2026-10-06 09:00:03,000 ERROR Request failed
java.lang.IllegalStateException: boom
at com.example.Foo.bar(Foo.java:12)
2026-10-06T09:00:04Z DEBUG done
The message says 4 of 4 entries (6 lines). The error keeps its two lines of stack trace. Untick Info and type
/disk|fail/i under Contains, and 2 entries are left: the warning and the error.
Good to know
Up to 2,000 entries are shown at once, though Copy and Save include them all. Very large files are limited by the browser’s memory. A time without a zone is read as this device’s time, and syslog lines without a year as this year. Logs whose entries don’t start with a time are grouped only by indented and stack trace lines. To keep or remove plain lines by rules in order (starting with, ending with, containing, or not), with context lines and line numbers, use the Line Filter.
Guides: Filtering a log or file: Line Filter or Log Viewer? · Reading a crash or a log · Testing an upload limit or a slow upload
Or paste lines
| Line | Level | Time | Entry |
|---|
Built with The third-party code and data this tool uses, and their licences
This tool uses no third-party code or data of its own: its code was written for this site.
Every page also uses Montserrat (SIL Open Font License 1.1).
Everything the site uses is on Credits and licences.
Private: this tool runs in your browser. Nothing you type, paste or choose leaves this page.
Saved you a few minutes? Say thanks with a coffee.
Something wrong with this tool, or missing from it? Report a bug or suggest a feature.