英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论