I am indexing documents to my index as below:
"name": "test",
"version": 1,
"user": [
{
"created": 1548321909,
"latest": false
},
{
"created": 1548321916,
"latest": false
}
I am trying to create a scripted field based on the user.created nested field and convert it into Date data type. Currently, the user.created field data type is number
I would like the documents to look like this when they are ingested.
"name": "test",
"version": 1,
"user": [
{
"created": 1548321909,
"latest": false,
"modified_date": <epoch time of created field converted to date format>
},
{
"created": 1548321916,
"latest": false,
"modified_date": <epoch time of created field converted to date format>
}
I'd really like to know if this can be done using scripted fields in Kibana ? If not using a scripted field is there any other possibility of achieving the desired outcome ?