cosmo0920 / fluent-bit-go-s3

[Deprecated] The predessor of fluent-bit output plugin for Amazon S3. https://aws.amazon.com/s3/
Apache License 2.0
33 stars 13 forks source link

Get time from input? #22

Open digitalsanity opened 4 years ago

digitalsanity commented 4 years ago

Preloading 5GB of old logs here -- would it be possible to add a TimeKey / use time from the input if available rather than time.Now for the filename?

cosmo0920 commented 4 years ago

No. I followed the time behavior for fluent-plugin-s3. It uses time.Now() equivalent value for timestamp: https://github.com/fluent/fluent-plugin-s3/blob/master/lib/fluent/plugin/out_s3.rb