zoukankan      html  css  js  c++  java
  • graylog es 故障问题相关问题解决

    以下是整理关于因为es故障造成graylog 异常的一些解决方法

    问题

    • 现象
      Deflector exists as an index and is not an alias
    • 解决
      官方的步骤
     
    - Stop all Graylog nodes
    - (OPTIONAL) If you want to keep the already ingested messages, reindex them into the Elasticsearch index with the greatest number, e. g. graylog_23 if you want to fix the deflector graylog_deflector, via the Elasticsearch Reindex API.
    - Delete the graylog_deflector index via the Elasticsearch Delete Index API.
    - Add action.auto_create_index: false to the configuration files of all Elasticsearch nodes in your cluster and restart these Elasticsearch nodes, see Elasticsearch Index API - Automatic Index Creation and Creating an Index for details.
    - Start the Graylog master node.
    - Manually rotate the active write index of the index set on the System / Indices / Index Set page in the Maintenance dropdown menu.
    - (OPTIONAL) Start all remaining Graylog slave nodes.

    实际上我们可以不按照官方的做法,以下是一些实践(前提是现有的数据不是很重要,可以删除的)

    - 可以不用停止graylog server
    - 修改es 配置,添加action.auto_create_index: false注意需要重启es集群,理论上单台重启不会有影响的(和部署模型也有关系)
    - 删除*_deflector 索引(可以通过api以及ui)
    - 手工 rotate active write 

    参考资料

    https://docs.graylog.org/en/2.5/pages/faq.html

  • 相关阅读:
    CCF-CSP认证 C++题解目录
    LeetCode周赛#205
    LeetCode双周赛#34
    Codeforces Round #667 (Div. 3) B、C、D、E 题解
    Codeforces Round #656 (Div. 3) 题解
    牛客小白月赛#26 题解
    LeetCode周赛#204 题解
    LeetCode周赛#203 题解
    牛客小白月赛#27 题解
    N阶上楼梯问题——动态规划(递推求解)
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/13184573.html
Copyright © 2011-2022 走看看