Skip to content

Commit

Permalink
fix ecs enricher (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jono Yan authored Feb 20, 2023
1 parent 1b6f558 commit 1bf3726
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fluent-bit-kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/canva/amazon-kinesis-streams-for-fluent-bit/enricher"
"github.com/canva/amazon-kinesis-streams-for-fluent-bit/kinesis"
)
import "github.com/canva/amazon-kinesis-streams-for-fluent-bit/enricher/ecs"

const (
// Kinesis API Limit https://docs.aws.amazon.com/sdk-for-go/api/service/kinesis/#Kinesis.PutRecords
Expand Down Expand Up @@ -229,6 +230,7 @@ func newKinesisOutput(ctx unsafe.Pointer, pluginID int) (*kinesis.OutputPlugin,
// ECS Enricher
if strings.ToLower(enrichRecords) == "true" {
enricherEnable = true
e = ecs.NewEnricher()
}

var enricherEksEnable bool
Expand Down

0 comments on commit 1bf3726

Please sign in to comment.