- Check the conflict fileds in kibana index patterns under
management > index patterns
- Edit list-invalid-data-types.py with the fields shown in the above step
- Run the list-invalid-data-types.py to see the correct mappings
- Take a backup of the index
curl -XGET https://domain.name.example.com.us-east-1.es.amazonaws.com/github-data-2019.02.27/?pretty > index-github-data-2019.02.27.backup.json
Open the file index-github-data-2019.02.27.backup.json and fix the mappings, types etc.
Edit fields like: index-name, created, version etc. and save
Create a new index with the fixed file
curl -XPUT https://domain.name.example.com.us-east-1.es.amazonaws.com/github-data-2019.02.27-fixed -H 'Content-Type: application/json' -d@index-github-data-2019.02.27.backup.json
- Re-index
curl -X POST "https://domain.name.example.com.us-east-1.es.amazonaws.com/_reindex" -H 'Content-Type: application/json' -d'
{
"source": {
"index": "github-data-2019.02.27"
},
"dest": {
"index": "github-data-2019.02.27-fixed"
}
}
'
- Delete the old index
curl -X DELETE "https://domain.name.example.com.us-east-1.es.amazonaws.com/github-data-2019.02.27"