Change date format on an existing field

Hi all,

i have this field:

"_source": {
"etl_timestamp": "2015-03-03T15:10:00.000Z",
"ggsn_mcc_mnc": "240",
"ggsn_ip_address": "62.140.134.92",
"data_center": null,
"bytes_transferred_output": 42,
"bytes_transferred_input": 923,

I want change the date format of etl_timestamp field.
I've done the following HTTP PUT request

PUT /my_index
{
"mappings": {
"data": {
"properties": {
"etl_timestamp": {
"format": "yyyy/MM/dd HH:mm:ss"
}
}
}
}
}

but it give me this error:

{
"error": {
"root_cause": [
{
"type": "index_already_exists_exception",
"reason": "index [diameter_metrics/q8InSAeASDmJHC3lXo73AQ] already exists",
"index_uuid": "q8InSAeASDmJHC3lXo73AQ",
"index": "my_index"
}
],

How i can change date format on the ETL_TIMESTAMP field?

thanks in advice.

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

You can't. You need to reindex.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.