fluent / fluent/fluent-bit-go

failed to output.GetRecord(dec)

Open
#72 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
202
Forks
61
Avg merge
7d 20h
Merged PRs (30d)
2

Description

### summary

[https://github.com/fluent/fluent-bit-go/blob/master/examples/out_multiinstance/out.go#L45](https://github.com/fluent/fluent-bit-go/blob/master/examples/out_multiinstance/out.go#L45)

I have a question about what scenario will fail to execute `output.GetRecord(dec)` ? 😁 Or, how do I print a decode failure log.

I want to know why it failed. 😁

```go
//export FLBPluginFlushCtx
func FLBPluginFlushCtx(ctx, data unsafe.Pointer, length C.int, tag *C.char) int {
dec := output.NewDecoder(data, int(length))
count := 0
for {
ret, ts, record := output.GetRecord(dec)
if ret != 0 {
break
}
...
}
```

thank u.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.