Skip to content

mathisve/golang-cloudwatch-logs-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang CloudWatch Logs Example

build

Simple example explaining the basics of CloudWatch Logs.

Sample

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

picture

More Information

Find the Cloudwatch Logs Documentation here.