ES = ver 7.14
Linux , mysql 8
The error happens after upgrade to 7.14 from 7.13
the issue :
I use Logstash to input to ES from MySQL
U used to add null (nil) value to copy_to field, after upgrade it is not accepted and throw an exception
e.x
{
...
"product_id"=>12345,
"price"=>10,
@timestamp"=>2021-08-03T23:51:58.209Z,
....
"categories"=>nil,
.....
}
"reason"=>"Cannot copy field [categories] to fields [catch_all]. Copy-to currently only works for value-type fields, not objects."}}}}
Logstash :
output {
elasticsearch {
hosts => "localhost:9200"
index => "my-index"
document_id => "%{product_id}"
doc_as_upsert => true
action => "update"
}
stdout { codec => rubydebug }
}