{"id":37134640,"url":"https://github.com/udhos/cloudwatchlog","last_synced_at":"2026-01-14T15:42:40.101Z","repository":{"id":293937649,"uuid":"985444160","full_name":"udhos/cloudwatchlog","owner":"udhos","description":"This Go module https://github.com/udhos/cloudwatchlog helps in explicitly sending log events do AWS CloudWatch.","archived":false,"fork":false,"pushed_at":"2025-08-12T00:47:52.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-15T11:50:48.062Z","etag":null,"topics":["aws","cloudwatch","cloudwatch-logs","go","go-module","golang","modules"],"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/udhos.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,"zenodo":null}},"created_at":"2025-05-17T19:19:21.000Z","updated_at":"2025-08-12T00:47:51.000Z","dependencies_parsed_at":"2025-05-18T03:47:21.434Z","dependency_job_id":null,"html_url":"https://github.com/udhos/cloudwatchlog","commit_stats":null,"previous_names":["udhos/cloudwatchlog"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/udhos/cloudwatchlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fcloudwatchlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fcloudwatchlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fcloudwatchlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fcloudwatchlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udhos","download_url":"https://codeload.github.com/udhos/cloudwatchlog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fcloudwatchlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["aws","cloudwatch","cloudwatch-logs","go","go-module","golang","modules"],"created_at":"2026-01-14T15:42:39.307Z","updated_at":"2026-01-14T15:42:40.067Z","avatar_url":"https://github.com/udhos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/cloudwatchlog/blob/main/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/cloudwatchlog)](https://goreportcard.com/report/github.com/udhos/cloudwatchlog)\n[![Go Reference](https://pkg.go.dev/badge/github.com/udhos/cloudwatchlog.svg)](https://pkg.go.dev/github.com/udhos/cloudwatchlog)\n\n# cloudwatchlog\n\nThis Go module [https://github.com/udhos/cloudwatchlog](https://github.com/udhos/cloudwatchlog) helps in explicitly sending log events do AWS CloudWatch.\n\n# Synopsis\n\n```golang\nimport \"github.com/udhos/cloudwatchlog/cwlog\"\n\nawsConfig, errAwsConfig := awsconfig.AwsConfig(awsconfig.Options{})\nif errAwsConfig != nil {\n    log.Fatalf(\"aws sdk config error: %v\", errAwsConfig)\n}\ncw, err := cwlog.New(cwlog.Options{\n    AwsConfig: awsConfig.AwsConfig,\n    LogGroup:  \"/cloudwatchlogs/example\",\n    LogStream: \"/cloudwatchlogs/example\",\n})\nif err != nil {\n    log.Fatalf(\"client error: %v\", err)\n}\nnow := time.Now().UnixMilli()\nevents := []types.InputLogEvent{\n    {\n        Message:   aws.String(\"hello cloudwatchlog-example - 1\"),\n        Timestamp: aws.Int64(now),\n    },\n    {\n        Message:   aws.String(\"hello cloudwatchlog-example - 2\"),\n        Timestamp: aws.Int64(now),\n    },\n}\nif err := cw.PutLogEvents(events); err != nil {\n    log.Printf(\"log failed: %v\", err)\n}\n```\n\n# Example\n\nSee [./examples/cloudwatchlog-example/main.go](./examples/cloudwatchlog-example/main.go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fcloudwatchlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudhos%2Fcloudwatchlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fcloudwatchlog/lists"}