I\'m trying out the new machine learning module in x pack. I\'m trying to identify rare response codes in HTTP Access logs in time. My logs are being stored in elasticsearch
The error message means that you are trying to change an existing mapping. However, that is not possible in Elasticsearch. Once a mapping has been created, it cannot be changed.
As explained by Shay Banon himself:
You can't change existing mapping type, you need to create a new index with the correct mapping and index the data again.
So you must create a new index to create this mapping. Depending on the situation, you either
Of course in the latter case you will lose all data in the index, so prepare accordingly.