amazon_es amazones - 安装模板失败:无法解析映射[_default_]

时间:2018-04-17 12:17:07

标签: elasticsearch centos logstash aws-elasticsearch

我在amazon_es上使用logstash插件。

我的logstash.conf如下所示:

input {
    tcp {
    host => "0.0.0.0"
    port => 5959
    codec => json
  }
}
output {
    amazon_es {
        hosts => ["XXXXXXX.ap-south-1.es.amazonaws.com"]
        region => "ap-south-1"
        aws_access_key_id => "XXXXXXXXX"
        aws_secret_access_key => "XXXXXXXXXXXXX"
        index => "production-logs-%(YYYY-MM-dd)"
    }
}

我有以下错误:

[ERROR] 2018-04-17 12:03:59.056 [[main]-pipeline-manager] amazones - Failed to install template: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [string] declared on field [@version]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_default_]: No handler for type [string] declared on field [@version]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [string] declared on field [@version]"}},"status":400}

0 个答案:

没有答案