# 使用 Homebrew, chocolatey, Nix, scoop 安装 logstash

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

## 安装

```sh
sudo av install brew:logstash
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install logstash
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#logstash
```

  证据: nixpkgs package indexes: logstash from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- Chocolatey (92%):

```sh
choco install logstash
```

  证据: Chocolatey community package catalog: logstash from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'

- Scoop (92%):

```sh
scoop install extras/logstash
```

  证据: Scoop official bucket manifest trees: bucket/logstash.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:logstash
- **软件包管理器:** Homebrew
- **版本:** 9.4.4
- **来源摘要:** Tool for managing events and logs
- **主页:** <https://www.elastic.co/products/logstash>
- **仓库:** <https://github.com/elastic/logstash>
- **最后更新:** 2026-07-21T15:31:37Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- logstash (别名)
- logstash-plugin (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 9.4.4
## 项目历史与用法

Logstash is Elastic's open-source server-side data processing pipeline for ingesting, transforming, enriching, and routing events and logs. It is one of the classic components of the Elastic Stack and the older ELK stack.

### 项目历史

The official repository describes Logstash as a tool to transport and process logs, events, and other data. Its GitHub repository was created in November 2010, and Elastic's current documentation frames it as a real-time data collection engine that can unify data from many sources and normalize it for downstream analytics and visualization.

Elastic documentation emphasizes Logstash's pipeline model: inputs receive events, filters parse or enrich them, and outputs send them onward. The project also developed a large plugin ecosystem; the upstream README notes more than 200 plugins and points plugin issues to separate repositories under the `logstash-plugins` organization.

### 采用历史

Logstash became widely adopted because it paired naturally with Elasticsearch and Kibana for log search and visualization. Elastic's own product pages and stack documentation present Logstash as part of the Elastic Stack alongside Elasticsearch, Kibana, Beats, and newer Elastic Agent components.

A 2014 Elastic press release for Logstash 1.4 described it as one of the most popular open-source log-management tools and tied its growth to the ELK stack. In package-manager terms, the supplied facts show distribution through Homebrew, Chocolatey, Nix, and Scoop, while Elastic also publishes official downloadable binaries and Debian/RPM packages.

### 使用方式

Users write pipeline configuration files that describe inputs, filters, and outputs, commonly placing `.conf` files under `/etc/logstash/conf.d` on Debian and RPM installations. Settings such as `logstash.yml`, `pipelines.yml`, and JVM options live in the `path.settings` directory.

The official docs also document a Logstash keystore for secrets. Sensitive values such as Elasticsearch passwords can be stored in the keystore and referenced from `logstash.yml` or pipeline configuration as `${KEY}`.

### 为什么软件包爱好者会关心

Logstash matters to package nerds because it is a heavyweight but scriptable bridge between Unix log files and modern search/observability stacks. It brought plugin-managed, package-distributed ETL behavior into the everyday log pipeline, and its config-file layout is a frequent concern for distro, Docker, and Homebrew packaging.

### 时间线

- 2010: Official GitHub repository created.
- 2014: Elastic announces Logstash 1.4 and promotes it as a major ELK-stack log-management component.
- 2015: Elastic blog describes Logstash Forwarder as started by Logstash creator Jordan Sissel and folded into Filebeat.
- 2026: Logstash 9.x tags are active in the official repository.

### Related projects

- Logstash is part of the Elastic Stack with Elasticsearch, Kibana, Beats, and Elastic Agent.
- Logstash plugins are maintained separately under the `logstash-plugins` GitHub organization and are published as Ruby gems.

### 来源

- <https://api.github.com/repos/elastic/logstash>
- <https://github.com/elastic/logstash#readme>
- <https://www.elastic.co/about/press/elasticsearch-releases-logstash-1-4-makes-log-analysis-faster-simpler>
- <https://www.elastic.co/docs/get-started/the-stack>
- <https://www.elastic.co/docs/reference/logstash>
- <https://www.elastic.co/logstash>
- source_facts.package-manager


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: {extract.path}/config/logstash.yml, /etc/logstash/logstash.yml, /etc/logstash/pipelines.yml, /etc/logstash/conf.d/*.conf

## Credential files

- Linux: /etc/logstash/logstash.keystore
- Unix: {path.settings}/logstash.keystore
## 其他软件包管理器记录

- Nix - logstash: normalized package name match | nixpkgs package indexes: logstash from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Chocolatey - logstash: normalized package name match | Chocolatey community package catalog: logstash from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'
- Scoop - extras/logstash: normalized package name match | Scoop official bucket manifest trees: bucket/logstash.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/logstash.yml](https://github.com/mxcl/pkgdb/blob/main/combined/logstash.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
