I have my mapping as follows:
{
"payment_transaction": {
"mappings": {
"message_logs": {
"properties": {
"@timestamp": {
"type": "date"
},
"changed_date": {
"type": "date"
},
"created_date": {
"type": "date"
}
}
}
}
}
}
And I need to create new three fields such as (year,month,day) where the value of (created_date) should be trimmed and assigned as in a following manner:
year=2016
month=11
day=22
The format of the created_date looks like 2016-11-22T22:20:21.000Z.
Is this possible? Any help could be appreciated.