Thanks for the help Hendrik,
I created the mapping manually before hand using the preview and was able to set the date format manually in dev tools. Probably a bug with the transform ui as the source doc.timeStamp I'm pulling from was the same. Also the transform preview shows the date parsed correctly prior to begining the transform which is strange. I will test my ml jobs hopefully they work the same.
For reference i am using 7.6.2
Source doc.timeStamp mapping
"timeStamp" : {
"type" : "date",
"ignore_malformed" : true,
"format" : "yyyy-MM-dd HH:mm:ss||dateOptionalTime||MM/dd/yyyy||yyyy-MM-dd"
},
I also noticed the resulting mapping of the transform now looks different in comparision to when i did not set the mapping manually.
{
"xxx" : {
"mappings" : {
"dynamic_templates" : [
{
"dates" : {
"match" : ".*timeStamp*",
"match_pattern" : "regex",
"mapping" : {
"format" : "yyyy-MM-dd HH:mm:ss||dateOptionalTime||MM/dd/yyyy||yyyy-MM-dd",
"ignore_malformed" : true,
"type" : "date"
}
}
}
],
"properties" : {
"xxx" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"xxx" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"xxx" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"xxx" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"xxx" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"xxx" : {
"type" : "double"
},
"xxx" : {
"type" : "long"
},
"xxx" : {
"type" : "long"
},
"doc" : {
"properties" : {
"xxx" : {
"properties" : {
"keyword" : {
"type" : "keyword"
}
}
},
"timeStamp" : {
"properties" : {
"max" : {
"type" : "date",
"ignore_malformed" : true,
"format" : "yyyy-MM-dd HH:mm:ss||dateOptionalTime||MM/dd/yyyy||yyyy-MM-dd"
},
"min" : {
"type" : "date",
"ignore_malformed" : true,
"format" : "yyyy-MM-dd HH:mm:ss||dateOptionalTime||MM/dd/yyyy||yyyy-MM-dd"
}
}
}
}
},
"xxx" : {
"properties" : {
"sum" : {
"type" : "double"
}
}
}
}
}
}
}
Where before it omitted any scripted field mappings. Not sure if this is purposefully done.
{
"xxx" : {
"mappings" : {
"_meta" : {
"created_by" : "transform",
"_transform" : {
"transform" : "xxx",
"version" : {
"created" : "7.6.2"
},
"creation_date_in_millis" : 1586896729706
}
},
"properties" : {
"xxx" : {
"type" : "double"
},
"xxx" : {
"type" : "long"
},
"xxx" : {
"type" : "long"
},
"doc" : {
"properties" : {
"xxx" : {
"properties" : {
"keyword" : {
"type" : "keyword"
}
}
},
"timeStamp" : {
"properties" : {
"max" : {
"type" : "date"
},
"min" : {
"type" : "date"
}
}
}
}
},
"xxx" : {
"properties" : {
"sum" : {
"type" : "double"
}
}
}
}
}
}
}