How to use Log Formatter

  1. Paste log lines (one JSON object per line, e.g. NDJSON).
  2. Optional: put 'level:error' (or level:info, etc.) on the first line to show only that level.
  3. Click Format to pretty-print (and filter) JSON lines.
  4. Copy or download the formatted log.

Example

Input

Your input or data here

Output

Result will appear here after running the tool

Frequently asked questions

What if a line is not JSON?
Non-JSON lines are left unchanged when not filtering. When filtering by level, only matching JSON lines are included.
How does the level filter work?
If the first line is 'level:error', only log lines whose JSON has level equal to 'error' are shown (case-insensitive).