logstash config我已经在elasticsearch和kibana上创建了我的索引并且已经上传了数据.现在我想更改索引的映射并将某些字段更改为未分析.Below是我想要从现有映射替换的映射.但是当我在命令下运行它会给我错误
{"error":{"root_cause":[{"type":"index_already_exists_exception","reason":"已存在","index":"rettrmt"}],"type":"index_already_exists_exception","reason" :"已存在","索引":"rettrmt"},"状态":400}
请帮忙把它关闭.
curl -XPUT 'http://10.56.139.61:9200/rettrmt' -d '{
"rettrmt": {
"aliases": {},
"mappings": {
"RETTRMT": {
"properties": {
"@timestamp": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"@version": {
"type": "string"
},
"acid": {
"type": "string"
},
"actor_id": {
"type": "string",
"index": "not_analyzed"
},
"actor_type": {
"type": "string",
"index": "not_analyzed"
},
"channel_id": {
"type": "string",
"index": "not_analyzed"
},
"circle": {
"type": "string",
"index": "not_analyzed"
},
"cr_dr_indicator": {
"type": "string",
"index": "not_analyzed"
},
"host": {
"type": "string"
},
"message": { …Run Code Online (Sandbox Code Playgroud)