错误复现
搭建1套新的ELK环境,将之前旧的ES的索引文件data/nodes/0/indices/
全部复制到新的ES中。期间不要停止ES。然后kibana就无法访问了,重启kibana报错如下:
log [02:59:35.875] [info][status][plugin:maps@6.7.2] Status changed from yellow to green - Ready
error [02:59:35.890] [warning][stats-collection] [illegal_argument_exception] Alias [.kibana] has more than one indices associated with it [[.kibana_1, .kibana_2]], can't execute a single index op :: {"path":"/.kibana/doc/kql-telemetry%3Akql-telemetry","query":{},"statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"Alias [.kibana] has more than one indices associated with it [[.kibana_1, .kibana_2]], can't execute a single index op\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"Alias [.kibana] has more than one indices associated with it [[.kibana_1, .kibana_2]], can't execute a single index op\"},\"status\":400}"}
at respond (/usr/local/elk/kibana-6.7.2-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:308:15