Hello Team,
We are using Elasticsearch - 2.3.5 for feeding the Amazon Cloudtrail data. We have created mapping for a index and for certain fields their type will changes automatically. We want certain fields to use particular date format.
By default dynamic mapping is enabled. So we have scenarios where new fields can be added so we need dynamic mapping.
Eg:
"apiVersion": {
"type": "string"
}
automatically changed to
"apiVersion": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
We would like to know why ES is changing format and type of a field. How we can avoid this scenario.