https://github.com/mathisve/golang-cloudwatch-logs-example
An example of how to use Cloudwatch Logs with Golang
https://github.com/mathisve/golang-cloudwatch-logs-example
aws cloudwatch example logging observability
Last synced: 11 months ago
JSON representation
An example of how to use Cloudwatch Logs with Golang
- Host: GitHub
- URL: https://github.com/mathisve/golang-cloudwatch-logs-example
- Owner: mathisve
- Created: 2021-05-04T15:28:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T11:39:01.000Z (about 5 years ago)
- Last Synced: 2025-07-13T06:49:38.576Z (11 months ago)
- Topics: aws, cloudwatch, example, logging, observability
- Language: Go
- Homepage: https://youtu.be/aZ-gP4rbFDo
- Size: 364 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang CloudWatch Logs Example

Simple example explaining the basics of CloudWatch Logs.
## Sample
```go
func createLogStream() error {
name := uuid.New().String()
_, err := cwl.CreateLogStream(&cloudwatchlogs.CreateLogStreamInput{
LogGroupName: &logGroupName,
LogStreamName: &name,
})
logStreamName = name
return err
}
```
## Step-By-Step Youtube Video
[](https://youtu.be/aZ-gP4rbFDo)
## More Information
Find the Cloudwatch Logs Documentation [here](https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchlogs/).