簡體   English   中英

FileBeat 不向 ElasticSearch Kibana 發送數據

[英]FileBeat not sending data to ElasticSearch Kibana

我無法在 Kibana 儀表板中從 Filebeat 代理接收數據。 我將自我管理的 ELK 與 AWS EC2 服務器一起使用。 下面是我的文件beat.yml

filebeat.inputs:
  - type: log
  enabled: true
  paths:
    - /home/ubuntu/logs/consumer-app/*.log

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

setup.template.settings:
  index.number_of_shards: 1

output.elasticsearch:
  hosts: ["http://PUBLIC_IP:9200"]
setup.kibana:
  host: "http://PUBLIC_IP:5601"

elasticsearch.yaml

path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: PUBLIC_IP
http.port: 9200
discovery.type: single-node

kibana.yml

server.port: 5601
server.host: PUBLIC_IP
elasticsearch.hosts: ["http://PUBLIC_IP:9200"]

當我嘗試點擊sudo filebeat setup命令時。 我收到以下錯誤。

覆蓋 ILM 策略已禁用。 設置setup.ilm.overwrite: true以啟用。 索引設置完成。 加載儀表板(Kibana 必須正在運行並且可以訪問)

Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails: fail to execute the HTTP GET 請求:Get "http://localhost:5601/api /狀態”:撥打 tcp 127.0.0.1:5601:連接:連接被拒絕。 回復: 。

由於我是 ELK 和 filebeat 的新手,非常感謝任何幫助。

我相信 filbeat 正在嘗試與 kibana 通信,但不幸的是 kibana 沒有運行。

在 filebeat.yml 添加這一行

setup.ilm.overwrite: true

確保 elasticsearch 和 kibana 正在運行,然后執行 filebeat 的設置命令。 繼續發帖,謝謝!!!

暫無
暫無

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

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