Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts 安装 grok

查看 grok 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install grok

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install grok

MacPorts ports tree · sysutils/grok/Portfile · 来源: api.github.com

概览

软件包摘要

DRY and RAD for regular expressions and then some

命令和别名

  • discogrok

历史

项目历史与用法

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.

时间线

  • 2011: The GitHub repository was created and release tags from the 2011 series were published.
  • 2012: Homebrew and other package ecosystems carried the standalone tool during the early 2010s log-processing boom.
  • 2020s: The original project persisted as a niche packaged utility while grok-style patterns became common in larger logging systems.

Related projects

  • Related projects include Jordan Sissel's Ruby grok implementation, Logstash-style grok filters, and observability tools that use named pattern matching for unstructured logs.
  • It is also adjacent to traditional text-processing tools such as grep, awk, sed, and PCRE-based command-line filters.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 10 个平台目标。
  • 安装时包含 3 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
discogrokcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本0.9.2
管理器更新时间2026-06-25
本地数据OK
上游当前
检测到的最新版本v0.9.2

https://github.com/jordansissel/grok

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:grok
版本0.9.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/grok
主页https://github.com/jordansissel/grok
仓库https://github.com/jordansissel/grok
上游文档https://github.com/jordansissel/grok#readme
许可证BSD-2-Clause
源码归档https://github.com/jordansissel/grok/archive/refs/tags/v0.9.2.tar.gz
最后更新2026-06-25T13:37:44+02:00
Pulseupdated
依赖libevent, pcre, tokyo-cabinet
Bottle可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegrok
Version Scheme0
Revision2
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts95%

grok

sudo port install grok
  • normalized package name match
  • 匹配方式:Grok
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/grok/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment