# 使用 Homebrew, Nix 安装 awslogs

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

## 安装

```sh
sudo av install brew:awslogs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install awslogs
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#awslogs
```

  证据: nixpkgs package indexes: pkgs/by-name/aw/awslogs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:awslogs
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/awslogs>
- **版本:** 0.15.0
- **来源摘要:** Simple command-line tool to read AWS CloudWatch logs
- **主页:** <https://github.com/jorgebastida/awslogs>
- **仓库:** <https://github.com/jorgebastida/awslogs>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://files.pythonhosted.org/packages/15/f5/8f3bd0f4a927b1fbb3a5e6a5b036f29e4263977fb167b301bc4a5f4db2b9/awslogs-0.15.0.tar.gz>
- **最后更新:** 2026-05-12T10:32:03Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- awslogs (cli)
- awslogs (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.15.0
- 管理器更新时间: 2026-05-12
- 本地数据: OK
- 上游仓库: https://github.com/jorgebastida/awslogs
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

awslogs is a command-line reader for Amazon CloudWatch Logs. It wraps common log-group, log-stream, tailing, filtering, and time-window workflows in a small CLI aimed at humans using pipes and terminal tools.

### 项目历史

The `jorgebastida/awslogs` repository was created in January 2015, shortly after CloudWatch Logs became a common AWS logging destination. The README describes it as a simple tool for querying groups, streams, and events from Amazon CloudWatch Logs, with features such as aggregation across streams, colored output, watching logs, and human-friendly relative time filters.

The project used Git tags rather than GitHub releases for much of its history. Tags show early 0.x releases by 2016 and a 0.15.0 tag in 2024, while the README continues to document both pip and Homebrew installation.

### 采用历史

awslogs became popular because it made CloudWatch Logs feel closer to `tail`, `grep`, and other local log-reading workflows. Before and alongside newer AWS CLI log commands and consoles, it gave operators a direct way to stream and search CloudWatch logs from a terminal.

Its public repository attention and package-manager availability reflect a narrow but durable use case: AWS users wanted log access that fit shell habits.

### 使用方式

Common usage includes `awslogs groups`, `awslogs streams GROUP`, and `awslogs get GROUP STREAM_EXPRESSION`, often with `--start`, `--end`, `--watch`, `--filter-pattern`, or `--query`. The README highlights piping output into tools such as `grep` for pseudo-realtime monitoring.

awslogs can take explicit AWS access keys, but its README recommends using AWS CLI-managed credentials when available; with multiple profiles, users pass `--profile` or set `AWS_PROFILE`.

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

awslogs matters to package-manager users as a classic single-purpose cloud CLI: small command surface, obvious executable name, and immediate value in incident-response shells. It represents the era when many AWS service gaps were filled by independent Python CLIs distributed through pip and Homebrew.

For package nerds, it is also a useful contrast with AWS CLI: not every AWS task wants a giant generated vendor CLI when a focused stream-oriented tool is nicer.

### 时间线

- 2015: Public GitHub repository `jorgebastida/awslogs` created.
- 2016: 0.5 tag published.
- 2024: 0.15.0 tag published.
- 2024: Repository still receives updates.

### Related projects

- AWS CLI can also retrieve CloudWatch Logs through generated service commands.
- Amazon CloudWatch Logs is the AWS service queried by awslogs.
- Boto/Boto3 and AWS shared credentials provide the underlying AWS Python ecosystem and credential conventions.

### 来源

- <https://api.github.com/repos/jorgebastida/awslogs>
- <https://api.github.com/repos/jorgebastida/awslogs/git/tags/0ba94c4dc2640cfa530fe882fc2ac347bf5f2a9f>
- <https://api.github.com/repos/jorgebastida/awslogs/git/tags/568570610dbbdd75ffb98349e0af768c7a2d0355>
- <https://api.github.com/repos/jorgebastida/awslogs/tags?per_page=100>
- <https://github.com/jorgebastida/awslogs>
- <https://raw.githubusercontent.com/jorgebastida/awslogs/master/README.rst>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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.


## Credential files

- Unix: ~/.aws/credentials
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** awslogs
- **Version Scheme:** 0
- **Revision:** 5
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - awslogs: normalized package name match | nixpkgs package indexes: pkgs/by-name/aw/awslogs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [awscli](https://pkg.so/zh-hans/brew/awscli/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [aws-sam-cli](https://pkg.so/zh-hans/brew/aws-sam-cli/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [cfn-lint](https://pkg.so/zh-hans/brew/cfn-lint/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [aws-iam-authenticator](https://pkg.so/zh-hans/brew/aws-iam-authenticator/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [aws-cdk](https://pkg.so/zh-hans/brew/aws-cdk/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [eksctl](https://pkg.so/zh-hans/brew/eksctl/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [rain](https://pkg.so/zh-hans/brew/rain/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [aws-elasticbeanstalk](https://pkg.so/zh-hans/brew/aws-elasticbeanstalk/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure.
- [s4cmd](https://pkg.so/zh-hans/brew/s4cmd/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, command-line.
- [aws-google-auth](https://pkg.so/zh-hans/brew/aws-google-auth/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, infrastructure.
- [aws-shell](https://pkg.so/zh-hans/brew/aws-shell/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, infrastructure.

## Combined YAML source

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


## 来源

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