@kenjimiyao/aws-logs-tailer
v1.0.0
Published
A CLI tool to easily tail AWS CloudWatch Logs.
Downloads
2
Readme
@kenjimiyao/aws-logs-tailer
A CLI tool to easily tail AWS CloudWatch Logs with interactive log group selection.
Features
- Interactive log group selection from all available CloudWatch Log Groups
- Support for AWS profiles with
--profileoption - Real-time log tailing using AWS CLI's native
tail --followfunctionality - Alphabetically sorted log group list for easy navigation
Prerequisites
- Node.js (v20.x or later)
- AWS CLI installed and configured
- AWS credentials with CloudWatch Logs permissions
Installation
npm install -g @kenjimiyao/aws-logs-tailerUsage
Basic usage
tail-aws-logsThis will:
- Fetch all available CloudWatch Log Groups from your AWS account
- Display an interactive list for you to select from
- Start tailing the selected log group
Using a specific AWS profile
tail-aws-logs --profile myprofileRequired AWS Permissions
The following IAM permissions are required:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:DescribeLogGroups",
"logs:FilterLogEvents"
],
"Resource": "*"
}
]
}License
MIT
Author
kenjimiyao
