Index Epoch to date time in elasticserarch

I have a filed in my index with epoch time value as "1,596,041,843.199"

when ever I try to re-index is using date mapping it gives me error "ailed to parse field [field_name] of type [date] in document with id 'xxxxxxxxxx'. Preview of field's value: '1.59604202052859E9"

reindex
'''
PUT index
{
"mappings": {
"properties": {
"field_name": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}
'''
'''
POST _reindex
{
"source": {
"index": "original-*"
},
"dest": {
"index": "index"
}
}
'''
I want to use my filed in human readable date, but no success till now

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