curl -X PUT -H 'Content-Type: application/json' "localhost:9200/indexName" -d '
{
"mappings": {
"dynamic_date_formats": ["yyyy-MM-dd HH:mm:ss"]
}
}'
https://www.elastic.co/guide/en/elasticsearch/reference/7.16/dynamic-field-mapping.html