[英]ELK convert data stream back to regular index
I want to use regular index instead of datastream, but unable to delete/update it neither from Kibana UI nor with a help of direct ES api call我想使用常规索引而不是数据流,但既不能从 Kibana UI 也不能在直接 ES api 调用的帮助下删除/更新它
"reason" : "composable template [logs_template] with index patterns [new-pattern*], priority [200] would cause data streams [logstash-2020.12.24] to no longer match a data stream template"
I cannot我不能
How can I migrate back to the regular index and discard data stream settings?如何迁移回常规索引并丢弃数据 stream 设置?
Kibana v 7.9.2
/ ES 7.9.2
Kibana v 7.9.2
/ ES 7.9.2
I was able to delete data stream first and the corresponding index template by running ES/Kibana connection on different port.通过在不同端口上运行 ES/Kibana 连接,我能够首先删除数据 stream 和相应的索引模板。
# http.port: 9201
# /etc/elasticsearch/elasticsearch.yml
# /etc/kibana/kibana.yml
$ systemctl restart kibana
$ systemctl restart elasticsearch
This way datastream was not constantly recreated as nobody was writing to the new Elastic endpoint, so no issue occurs.这种方式不会不断地重新创建数据流,因为没有人向新的 Elastic 端点写入数据,因此不会出现任何问题。
I faced the same task.我面临同样的任务。 I stoped Logstash
to not allow to recreate datastream's indices.我Logstash
不允许重新创建数据流的索引。
sudo systemctl stop logstash
I removed datastreams and changed index templates to not use data streams.我删除了数据流并更改了索引模板以不使用数据流。 After that I started Logstash
.之后我开始了Logstash
。
sudo systemctl start logstash
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.