{"id":19827824,"url":"https://github.com/albertolinde/cloudwatch-logs-cli","last_synced_at":"2026-01-23T17:33:39.644Z","repository":{"id":253293519,"uuid":"843060984","full_name":"AlbertoLinde/cloudwatch-logs-cli","owner":"AlbertoLinde","description":"A CLI tool to read and stream AWS CloudWatch logs directly from your terminal. 🚀 Simplify monitoring and debugging with real-time log streaming and easy navigation through log groups. 📊🔍","archived":false,"fork":false,"pushed_at":"2024-08-15T22:48:21.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T04:55:30.140Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlbertoLinde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T17:40:30.000Z","updated_at":"2024-10-23T11:17:34.000Z","dependencies_parsed_at":"2025-04-10T04:32:23.322Z","dependency_job_id":"fa0a3e08-0a65-4ab6-9aa2-71e58933d40d","html_url":"https://github.com/AlbertoLinde/cloudwatch-logs-cli","commit_stats":null,"previous_names":["albertolinde/cloudwatch-logs-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AlbertoLinde/cloudwatch-logs-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertoLinde%2Fcloudwatch-logs-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertoLinde%2Fcloudwatch-logs-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertoLinde%2Fcloudwatch-logs-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertoLinde%2Fcloudwatch-logs-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlbertoLinde","download_url":"https://codeload.github.com/AlbertoLinde/cloudwatch-logs-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlbertoLinde%2Fcloudwatch-logs-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28696722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T11:14:15.083Z","updated_at":"2026-01-23T17:33:39.625Z","avatar_url":"https://github.com/AlbertoLinde.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudWatch Logs CLI 📊\n\n![Node.js](https://img.shields.io/badge/Node.js-18+-brightgreen)\n![AWS](https://img.shields.io/badge/AWS-CloudWatch-orange)\n![CLI](https://img.shields.io/badge/CLI-Tool-blue)\n\nTired of logging into CloudWatch via the web or using AWS commands to view logs? 😓 Want a simpler, faster way to do it?\n\nIntroducing **CloudWatch Logs CLI**! 🚀 This CLI tool lets you read and stream CloudWatch logs directly from your terminal. Just select the log group and stream logs in real-time. Perfect for quick monitoring and debugging, all from your terminal.\n\n## Features ✨\n\n- **AWS Configuration Check**: Ensures your AWS credentials are set and valid before proceeding.\n- **Region Selection**: Choose your AWS region for fetching logs.\n- **Log Group Navigation**: Easily navigate through your log groups, including sub-groups.\n- **Date Filtering**: Filter log groups by creation date (all, this year, this month, today).\n- **Real-Time Streaming**: Stream logs in real-time, updating every 2 seconds.\n- **Back Navigation**: Seamlessly navigate back to previous menus.\n- **Credentials Handling**: Handles expired or invalid tokens, prompting for new credentials when needed.\n- **User-Friendly Interface**: Simple and intuitive prompts to guide you through the process.\n\n## Installation 📦\n\nMake sure you have [Node.js](https://nodejs.org/) (version 18 or higher) installed.\n\n```bash\nnpm install -g cloudwatch-logs-cli\n```\n\n## Usage 🚀\n\n### Start the CLI:\n\n```bash\ncwlogs logs\n```\n\n### Follow the prompts to:\n\n- Ensure your AWS credentials are configured.\n- Select your AWS region.\n- Navigate through log groups.\n- Stream logs in real-time.\n\n### Stop Streaming:\n\nPress `q` to stop streaming logs and navigate back.\n\n## Prerequisites 🛠\n\n- AWS credentials (Access Key ID, Secret Access Key, and optionally Session Token)\n- AWS IAM permissions to access CloudWatch logs\n\n## Example Commands 🌟\n\n```bash\n# Start the CLI tool\ncwlogs logs\n```\n\n## Important Notes 📌\n\nEnsure your AWS credentials are configured. You can provide these when prompted or set them as environment variables:\n\n```bash\nexport AWS_ACCESS_KEY_ID=\"your-access-key-id\"\nexport AWS_SECRET_ACCESS_KEY=\"your-secret-access-key\"\nexport AWS_SESSION_TOKEN=\"your-session-token\"  # if applicable\n```\n\n## Dependencies 📚\n\n- [Node.js 18+](https://nodejs.org/)\n- [AWS SDK for JavaScript (v3)](https://github.com/aws/aws-sdk-js-v3)\n- [Inquirer](https://github.com/SBoudrias/Inquirer.js)\n- [Chalk](https://github.com/chalk/chalk)\n- [Ora](https://github.com/sindresorhus/ora)\n\n## License 📄\n\nThis project is licensed under the MIT License.\n\n## Author 👨‍💻\n\nDeveloped with ❤️ by [Alberto Linde](https://www.albertolinde.com)  \nFor any queries, you can reach me at [abreulindealberto@gmail.com](mailto:abreulindealberto@gmail.com)\n\n---\n\nRemember: Monitoring your logs is crucial for maintaining robust and reliable systems. Keep coding and keep improving! 🖥️💪\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertolinde%2Fcloudwatch-logs-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertolinde%2Fcloudwatch-logs-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertolinde%2Fcloudwatch-logs-cli/lists"}