logfmt parser
Parse logfmt key=value lines into a table or JSON.
Loading the tool…
What it does, how to use it, and questions
What it does
logfmt writes key=value pairs on a line, common in Heroku-style and many Go logs.
Parse lines into a table or JSON for grepping in a spreadsheet.
How to use it
- Paste log lines.
- Read the table.
- Copy JSON if you want structured output.
Things to watch for
- Quoted values may contain spaces. Unquoted values end at the next space.
- Duplicate keys on one line: last wins.
Questions
- Is this JSON logs?
- No. Use JSON Lines for NDJSON. This is logfmt.
- Can it emit logfmt?
- Parsing is the focus; copy JSON for further work.
- Huge files?
- Paste what you need. Extremely large pastes may slow the tab.
- Are logs uploaded?
- No.