amazon-web-services - AWS Cloudwatch通过Kinesis Firehose登录到ElasticSeacrh

标签 amazon-web-services elasticsearch amazon-kinesis-firehose

我正在尝试使用Kinesis Firehose将AWS cloudwatch日志流式传输到Amazon ES。但是,我在ES错误日志中不断收到以下错误。任何的想法?

无法像{“attemptsMade”:0,“arrivalTimestamp”:1494910856979,“errorCod‌e”:“InvalidEncodingE‌xception”,“errorMess‌age”:“中所述,将数据解码为UTF-8:”无法解码数据为UTF-8", “attemptEndingTimestamp”:1494911157268 “RAWDATA”: “H4S IAAAAAAAAADWO0QqCMBi FX2XsWiJBQ70LUW8sIYU uQmLpnxvpJttMQnz3Ztr lxzmcQj0RXNBWNMkErmk SKoTfZSrmWQLoV1fBQlW S9ZoLHrNUgFQ5u5a8XvY HrBSfM6rWumdHQpDNjtu M7vr333IPnOtZfbxG4pm jTQ5tegEIK1YvxBlEgra ZIPFFtlhgnyzOKmQQqFO zwXM5fj / HcTewAAAA =”, “esDocumentId” :空值

最佳答案

这很可能是因为Cloudwatch日志已压缩。您可以使用Firehose转换lambda蓝图并添加代码以解压缩记录。

关于amazon-web-services - AWS Cloudwatch通过Kinesis Firehose登录到ElasticSeacrh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44015038/

相关文章:

amazon-web-services - AWS Kinesis Firehose无法将数据索引到AWS Elasticsearch中

amazon-web-services - 如何将我的结构放入Rust中用于AWS Kinesis的PutRecordInput中?

amazon-web-services - 使用AWS开发工具包Go从Fargate任务中的角色加载AWS凭证的正确方法是什么?

elasticsearch - 计算给定结果集上查询的文档数

elasticsearch - 无法使用Java API和Shield连接到ElasticSearch服务器

elasticsearch - Elasticsearch 中索引的段数

amazon-web-services - AWS Kinesis Firehose - 按纪元以外的时间戳进行动态分区

amazon-web-services - 来自 S3 对象的 SELECT 内容可以与 API 网关一起使用吗?

amazon-web-services - AWS HTTP API网关Lambda处理程序的 typescript

linux - 在 AWS 实例中设置环境变量