I filled ElasticSearch with dictionaries. I want to mapp one key to the date in Kibana:
rep_ID:TZ14 createdOn:1,522,158,913,843
The value of the key'creatOn' should be the date. I tried the Painless Scripts in Dev Tools:
PUT testindex
{
"mappings": {
"_doc": {
"properties": {
"creatOn": {
"type": "date"
}
}
}
}
}
PUT testindex
{
"mappings": {
"_doc": {
"properties": {
"creatOn": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}
}
it gives me an error and it doesnt work. I deleted the data. then I ran that scripts and then I filled the data again. And I tried it also in the opposite way. What ist wrong ?