问题:
graylog中search页面报错:
While retrieving data for this widget, the following error(s) occurred: Elasticsearch exception [type=index_not_found_exception, reason=no such index []].
解决办法:
System > indices > [index name] > maintenance
然后跳转到search刷新一下就好了
如果不能解决那可能数据有损坏或者需要手动分配
我是直接将报错的那个索引分片删掉,然后重新创建索引就好了
首先查看分片状态
curl -XGET "localhost:9200/_cat/shards?v"
如果有分片的state不是STARTED,那大概率就是他的问题
然后删掉对应分片(端口后面填要删的分片index)
curl -XDELETE "localhost:9200/graylog_10"
重新创建索引
curl -XPUT "localhost:9200/graylog_10" -H 'Content-Type: application/json' -d '{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
}
}'