我在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}