fluent-bit-go
fluent-bit-go copied to clipboard
Tweaks
@cosmo0920 Thanks for the work on fluent-bit-go
I made a little branch with a couple of other minor tweaks.
-
Dump go version, and update the dependency go 1.20 github.com/ugorji/go/codec
-
Verify timestamp without reflection To verify the timestamp is being decoded correctly added a extractTimeStamp() function to extract the time without using reflection.
-
More test data Also tried to add another test input, and this actually fails. I believe the input data is valid, because I extracted it from my running version of fluentbit. Have I just made a coding error, or has it found a real issue? I added some log lines, and the input data looks ok-ish.
`das@t:~/Downloads/fluent-bit-go/output$ ~/Downloads/msgpack-inspect ./testdata/data | more
- format: "array32"
header: "0xdd"
length: 2
children:
- format: "array32"
header: "0xdd"
length: 2
children:
- format: "fixext8" header: "0xd7" exttype: 0 length: 8 data: "0x64b579fd24b76a00"
- format: "fixmap" header: "0x80" length: 0 children: []
- format: "map16"
header: "0xde"
length: 43
children:
- key: format: "fixstr" header: "0xa4" length: 4`
- format: "array32"
header: "0xdd"
length: 2
children:
Thanks in advance