This is a Golang SDK for Alibaba Cloud Log Service.

API Reference :

Build Status Coverage Status

Install Instruction

LogHub Golang SDK

go get github.com/aliyun/aliyun-log-go-sdk

Example

Write and Read LogHub

loghub_sample.go

Use Index on LogHub (SLS)

index_sample.go

Create Config for Logtail

log_config_sample.go

Create Machine Group for Logtail

machine_group_sample.go

Create LogHub Consumer for realtime consumption

log_dump_consumer.go

For developer

Update log protobuf

protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/gogo/protobuf/protobuf --gofast_out=. log.proto