Log formatter
Paste a log or open a log file to get a readable table. The format is detected for you. Filter on level or text, then copy, download, print or share the rows you need.
About this tool
The formatter reads JSON lines (one JSON object per line), key=value logs (logfmt), syslog in both the old and the new format, web server access logs in the common and combined format, and CSV with a header. Other logs that start each line with a time stamp are read as time, level and message. Anything else becomes one row per line. If the detected format is wrong, choose it yourself, or write your own pattern with named groups such as (?<time>\S+).
Lines that do not match the format, such as the lines of a stack trace, are joined with the row above, so one error is one row. Turn off Join stack traces to see every line on its own.
Levels are read from a level field, from the syslog priority, from the HTTP status (4xx is a warning, 5xx an error) or from words like ERROR and WARN. Tick levels to show only those. In Search, plain text searches every column, and column=value or column!=value searches one column.
The table shows up to 2,000 rows. Copy, Download and Share use every row that matches the filter. Tab separated text pastes straight into a spreadsheet. Print prints the table only.
Mask e-mail, IP and tokens replaces e-mail addresses, IPv4 addresses, JSON Web Tokens, Bearer and Basic credentials and values of fields such as password, secret and api_key in the table, in copies and in share links. It catches the common cases, not everything, so read the result before you share it.
Share link packs the rows that match the filter into the link, after the #. Browsers never send that part to a server. The size under the table tells you how long the link will be. Links longer than 8,000 characters may be cut by some chat and email apps, so filter the rows or download the table instead.
Files up to 20 MB are read in your browser and never uploaded. Shortcut: Ctrl + Enter formats the input.
Found a problem?
Tell us what went wrong. You decide whether your own work is included.
Licences
This tool is built with these third-party libraries:
- Papa Parse 5.7.0: MIT