Change mapping to convert live string data to integer for field?


I am very new to Elasticsearch and I am working on a project where I have a source producing events data. I am then visualising this data within Kibana.

The issue is one of the fields, of the events data being outputted, has type string and I want to convert it into an integer.

I have no access to the source creating the data and Injest Nodes is not an option as I'm currently restricted to Elasticsearch v2.4.

So how do I write this transformation from String to Integer for this data coming into elasticsearch? And how?

Thanks in advance.


Once the field datatype determined, You cannot change it (adding new field is enable).
So you should create new index with new mapping, and reindex the data in old index to new one.


1 Like

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