AWS Kinesis Firehose 记录的数据不可读

huangapple go评论67阅读模式
英文:

AWS Kinesis Firehose record data not readable

问题

我尝试在转换Lambda中读取Kinesis Firehose记录数据,但我得到一些奇怪的字符串(截图)。发送到Firehose的数据是VPC流日志。Firehose的目的地是S3存储桶,我能够更改存储桶对象的元数据并实际读取日志,但我需要在数据传输到S3之前在Lambda中获取可读的数据。我尝试了各种解码方法,但都没有成功。

英文:

I'm trying to read Kinesis Firehose record data in transformation Lambda, but I'm getting some weird string (screenshot). Data coming to Firehose is VPC flow log. Destination for Firehose is S3 bucket and I'm able to change metadata of bucket object and actually read the logs, but I need to get readable data in lambda before it goes to S3. I tried various decodings, but no luck.

答案1

得分: 0

修复。来自 KinesisFirehoseEvent 记录的数据已经压缩,我需要解压缩它以便读取。

英文:

Fixed. Data from KinesisFirehoseEvent record is compressed, I needed to decompress it in order to read it.

huangapple
  • 本文由 发表于 2023年6月8日 22:13:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76432767.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定