macOS
brew install groklocal Homebrew formula metadata
sudo port install grokMacPorts ports tree · sysutils/grok/Portfile · source: api.github.com
brew
DRY and RAD for regular expressions and then some. Version 0.9.2 via Homebrew; verified 2026-06-25.
install
brew install groklocal Homebrew formula metadata
sudo port install grokMacPorts ports tree · sysutils/grok/Portfile · source: api.github.com
overview
DRY and RAD for regular expressions and then some
history
Jordan Sissel's grok is a small Unix-oriented log parsing tool that turns reusable regular-expression patterns into structured output.
The project predates its GitHub repository through the semicomplete.com and Google Code era referenced from the repository metadata. Its manual page describes the command as software for parsing logs, handling events, and turning unstructured text into structured data.
The C implementation builds a `grok` command, `discogrok`, and a shared library. Its pattern-file model lets users name regular expressions once and compose them in match blocks instead of repeating long PCRE expressions across log-processing configurations.
The standalone package remained a niche command-line tool, but the grok pattern idea became culturally important in log processing. Similar pattern syntax appears in widely used log pipelines and observability products, while the original package stayed available through package managers such as Homebrew and MacPorts.
A typical invocation points `grok` at a configuration file with `-f`. Configurations declare inputs such as files or command output, define match blocks, and emit reactions such as the original line, captured fields, JSON, or shell-command input.
For package nerds, the appeal is the old-school Unix shape: a C command, PCRE-backed named patterns, installable pattern files, and log parsing without pulling in a larger log-ingestion stack.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
discogrok | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/jordansissel/grok
install metadata
| Package key | brew:grok |
|---|---|
| Version | 0.9.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/grok |
| Homepage | https://github.com/jordansissel/grok |
| Repository | https://github.com/jordansissel/grok |
| Upstream docs | https://github.com/jordansissel/grok#readme |
| License | BSD-2-Clause |
| Source archive | https://github.com/jordansissel/grok/archive/refs/tags/v0.9.2.tar.gz |
| Last updated | 2026-06-25T13:37:44+02:00 |
| Pulse | updated |
| Dependencies | libevent, pcre, tokyo-cabinet |
| Bottle | available (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | grok |
| Version Scheme | 0 |
| Revision | 2 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | yes |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
grok
sudo port install groksource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.