簡體   English   中英

Elasticsearch 集群故障后 Filebeat 無法發送日志

[英]Filebeat can't send logs after Elasticsearch cluster failure

我們最近遇到了 ES 集群失敗的問題。 問題解決了,但是filebeat失敗后發送新數據失敗。
這是日志的一部分 - 它似乎永遠重試但無法發送數據:

2019-04-08T11:52:04.182+0300    INFO    elasticsearch/client.go:690    Connected to Elasticsearch version 6.4.0
2019-04-08T11:52:04.185+0300    INFO    template/load.go:73    Template already exists and will not be overwritten.
2019-04-08T11:52:04.185+0300    INFO    [publish]    pipeline/retry.go:172    retryer: send unwait-signal to consumer
2019-04-08T11:52:04.185+0300    INFO    [publish]    pipeline/retry.go:174      done
2019-04-08T11:52:59.058+0300    INFO    [publish]    pipeline/retry.go:149    retryer: send wait signal to consumer
2019-04-08T11:52:59.058+0300    INFO    [publish]    pipeline/retry.go:151      done
2019-04-08T11:53:00.065+0300    ERROR    pipeline/output.go:92    Failed to publish events: temporary bulk send failure
2019-04-08T11:53:00.065+0300    INFO    [publish]    pipeline/retry.go:172    retryer: send unwait-signal to consumer
2019-04-08T11:53:00.065+0300    INFO    [publish]    pipeline/retry.go:174      done
2019-04-08T11:53:00.065+0300    INFO    [publish]    pipeline/retry.go:149    retryer: send wait signal to consumer
2019-04-08T11:53:00.065+0300    INFO    [publish]    pipeline/retry.go:151      done

我重新啟動了 Filebeat 服務,所有數據都毫無問題地發送到 ES。
這是一個已知的問題? Filebeat 版本很舊,我應該更新嗎?
我在 Windows 上將 Filebeat 6.3.0 作為服務運行。 Elasticsearch 版本是 6.4.0。

請出示您的個人資料
我之前遇到過這個錯誤,因為我沒有寫procotol
下面是正確的配置文件

filebeat.inputs:
- type: log
  enabled: true
  paths:
  - /var/log/dmesg
  - /var/log/syslog

output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["http://192.168.13.173:30014"]

描述: https : //www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM