fluent / fluent-bit-go

Fluent Bit Golang package to build plugins
Apache License 2.0
189 stars 52 forks source link

Tweaks #69

Open randomizedcoder opened 1 year ago

randomizedcoder commented 1 year ago

@cosmo0920 Thanks for the work on fluent-bit-go

I made a little branch with a couple of other minor tweaks.

  1. Dump go version, and update the dependency go 1.20 github.com/ugorji/go/codec

  2. Verify timestamp without reflection To verify the timestamp is being decoded correctly added a extractTimeStamp() function to extract the time without using reflection.

  3. 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

Thanks in advance