local/tools
dev / Native app / v1.0.3

Grok Debugger

Test grok patterns against log lines with the full Logstash pattern library and highlighted matches.

Install

  • install
    irm https://raw.githubusercontent.com/chayprabs/localtools/main/grok-debugger/install.ps1 | iex
  • update
    localtools-grok-debugger update
  • remove
    localtools-grok-debugger uninstall

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

PlatformFileSize
Linux ARM64grok-debugger-1.0.3-linux-arm64.zip2.8 MB
Linux x64grok-debugger-1.0.3-linux-x64.zip3.1 MB
macOS Apple Silicongrok-debugger-1.0.3-macos-arm64.zip2.9 MB
macOS Intelgrok-debugger-1.0.3-macos-x64.zip3.1 MB
Windows x64grok-debugger-1.0.3-windows-x64.zip3.2 MB

SHA-256 checksums are in the release notes; the install scripts verify them for you.

See it

How to use

  1. Paste log lines or drop a log file (up to 8 MB in the UI; the CLI has no limit).
  2. 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".
  3. 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.
  4. 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.