How to convert type in index

Hi there,

I have issue recently. I have production index mapping where I defined "elapsed_time" as "float", then later accidentally inject "elasped_time" as "string". It becomes type conflict now.
When I re-index, I got this response

failures": [
{
"index": "logstash-2019.05.new",
"type": "logs",
"id": "AWq1uGtoIXYchKQKQ_9j",
"cause": {
"type": "mapper_parsing_exception",
"reason": "failed to parse [elapsed_time]",
"caused_by": {
"type": "number_format_exception",
"reason": "For input string: "0,104""
}
},
"status": 400
}

index is monthly format. but i don't want to delete index either
how do i solve it? plz kindly advise to me.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.