Grok Debugger
Test grok patterns against log lines with the full Logstash pattern library and highlighted matches.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/grok-debugger/install.ps1 | iexlocaltools-grok-debugger updatelocaltools-grok-debugger uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/grok-debugger/install.sh | bashlocaltools-grok-debugger updatelocaltools-grok-debugger uninstall
brew install chayprabs/localtools/localtools-grok-debuggerbrew upgrade localtools-grok-debuggerbrew uninstall localtools-grok-debugger
scoop bucket add localtools https://github.com/chayprabs/homebrew-localtools; scoop install localtools-grok-debuggerscoop update localtools-grok-debuggerscoop uninstall localtools-grok-debugger
winget install localtools.GrokDebuggerwinget upgrade localtools.GrokDebuggerwinget uninstall localtools.GrokDebugger
Opens at http://127.0.0.1:47118 in your browser. Run localtools-grok-debugger --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.
Direct download
| Platform | File | Size |
|---|---|---|
| Linux ARM64 | grok-debugger-1.0.3-linux-arm64.zip | 2.8 MB |
| Linux x64 | grok-debugger-1.0.3-linux-x64.zip | 3.1 MB |
| macOS Apple Silicon | grok-debugger-1.0.3-macos-arm64.zip | 2.9 MB |
| macOS Intel | grok-debugger-1.0.3-macos-x64.zip | 3.1 MB |
| Windows x64 | grok-debugger-1.0.3-windows-x64.zip | 3.2 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Paste log lines or drop a log file (up to 8 MB in the UI; the CLI has no limit).
- Enter one or more grok patterns, one per line; they are tried in order and the first match wins. Browse the Logstash pattern library to insert %{NAME} references, or press "Suggest from first line".
- Press Match (Ctrl+Enter): every captured field is color-highlighted in its line; the Table and JSON tabs show the extracted fields and the nested event.
- Open Export to get a Logstash filter, Elasticsearch ingest pipeline, Vector VRL or Fluent Bit parser. From a terminal: localtools-grok-debugger match --pattern ... file.log --json.
FAQ
Does it behave exactly like Logstash?
It uses the same official pattern files (ECS v1 by default, legacy optional) and Logstash rules for named captures, empty captures and int/float hints. The regex engine is Go RE2 instead of Oniguruma: atomic groups and possessive quantifiers are relaxed, and lookarounds or backreferences in your own patterns give an error with the column.
How does pattern suggestion work?
A deterministic tokenizer recognizes timestamps, IPs, HTTP request lines, log levels, paths, numbers, key=value pairs and prog[pid], then names the fields. The suggestion is matched against the line before it is shown. No AI or network is involved.
Can a slow pattern freeze it?
The UI/API allow 50 patterns of 16 KB each, expanding to 1 MB of regex in total. Match, Suggest and Export share two isolated worker slots, each killed after 15 seconds or on disconnect. Matching returns partial results after 10 seconds, with timing and slow-pattern warnings.
Are the Vector and Fluent Bit exports tested?
Yes. CI runs the generated configs through the real vector and fluent-bit binaries and checks they extract the same fields as the tool.
Can I add my own patterns?
Yes, under Custom patterns (or --custom FILE): one NAME regex per line, like a Logstash patterns_dir file. They override library patterns with the same name.