【问题标题】:Error sending data to elasticsearch将数据发送到 elasticsearch 时出错
【发布时间】:2016-06-07 18:26:34
【问题描述】:

我发现我的磁盘已满,可用于 elasticsearch

然后,当我尝试运行该命令时,遇到了以下问题。

[Administrator@localhost elasticsearch]$ curator --host 172.16.1.245 删除索引 --older-than 2 --time-unit days --timestring '%Y.%m.%d' 回溯(最近一次通话最后): 文件“/usr/bin/curator”,第 5 行,在 从 pkg_resources 导入 load_entry_point ImportError: 没有名为 pkg_resources 的模块

【问题讨论】:

  • 为什么不直接删除 elasticsearch 索引目录中的文件有帮助?
  • 我建议不要使用文件系统上的原始文件。正确使用 curator 或使用带有 curl 命令的 DELETE index 端点运行。

标签: elasticsearch logstash kibana


【解决方案1】:

要完成 Val 的评论,您可以使用:

curl -XDELETE 172.16.1.245:9200/_all

删除所有索引,或

 curl -XDELETE 172.16.1.245:9200/index_name

逐一删除索引。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-14
    • 1970-01-01
    • 1970-01-01
    • 2021-05-06
    • 1970-01-01
    • 1970-01-01
    • 2018-05-07
    • 2016-11-05
    相关资源
    最近更新 更多