I try to create a new template with the following mapping in ES7. So far it worked in ES6.7 but do not find what's wrong.
PUT _template/connect
{
"index_patterns": [
"connect"
],
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "1"
}
},
"mappings": {
"doc": {
"properties": {
"@timestamp": {
"type": "date",
"format": "epoch_second"
}
}
}
}
}
The error message looks as follows:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [doc : {properties={@timestamp={format=epoch_second, type=date}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [doc : {properties={@timestamp={format=epoch_second, type=date}}}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [doc : {properties={@timestamp={format=epoch_second, type=date}}}]"
}
},
"status": 400
}