{"id":16188991,"url":"https://github.com/fogfish/awslog","last_synced_at":"2025-04-07T13:43:32.096Z","repository":{"id":57621710,"uuid":"393169590","full_name":"fogfish/awslog","owner":"fogfish","description":"Command line application to query AWS CloudWatch Logs","archived":false,"fork":false,"pushed_at":"2022-12-06T17:38:12.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-18T16:25:36.870Z","etag":null,"topics":["aws-cloudwatch","aws-cloudwatch-insight","aws-cloudwatch-logs","command-line","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fogfish.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}},"created_at":"2021-08-05T21:01:35.000Z","updated_at":"2022-12-06T17:37:24.000Z","dependencies_parsed_at":"2023-01-23T11:20:15.523Z","dependency_job_id":null,"html_url":"https://github.com/fogfish/awslog","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogfish%2Fawslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogfish%2Fawslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogfish%2Fawslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fogfish%2Fawslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fogfish","download_url":"https://codeload.github.com/fogfish/awslog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247665913,"owners_count":20975783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aws-cloudwatch","aws-cloudwatch-insight","aws-cloudwatch-logs","command-line","utility"],"created_at":"2024-10-10T07:33:15.728Z","updated_at":"2025-04-07T13:43:32.075Z","avatar_url":"https://github.com/fogfish.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# awslog\n\nCommand line application to query AWS CloudWatch Logs\n\n\n## Getting Started\n\n```\ngo install github.com/fogfish/awslog@latest\n```\n\n**Note**: go get installs the application to `$GOPATH/bin`. This folder shall be accessible to your user and be part of the `PATH` environment variable. Please see [Golang instructions](https://golang.org/doc/gopath_code.html#GOPATH).\n\n\n## Stream Log events\n\n```bash\nawslog stream -g \"/aws/lambda/myfun\" -q \"some pattern\"\n```\n\noptionally use [filter and pattern syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) to control visibility of events.\n\n\n## Query Log events\n\n```bash\nawslog latest -g \"/aws/lambda/myfun\" -q query.insight -t 3h\n```\n\nit uses Logs Insight Queries to collect events from the logs. See [query syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html) for details\n\n```\nfields @timestamp, @message\n| filter @message like /debug/ and ...\n| sort @timestamp desc\n| limit 20\n```\n\n## License\n\n[![See LICENSE](https://img.shields.io/github/license/fogfish/awslog.svg?style=for-the-badge)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogfish%2Fawslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffogfish%2Fawslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffogfish%2Fawslog/lists"}