FileBeat未向ElasticSearch Kibana发送数据

ujv3wf0j  于 2023-03-17  发布在  ElasticSearch
关注(0)|答案(2)|浏览(232)

我无法从Filebeat代理接收Kibana Jmeter 板中的数据。我正在使用带有AWS EC2服务器的自我管理ELK。以下是我的filebeat.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以启用。索引设置已完成。正在加载 Jmeter 板(Kibana必须正在运行并且可以访问)
正在退出:连接Kibana时出错:无法获取Kibana版本:发送到http://localhost:5601/api/status的HTTP GET请求失败:无法执行HTTP GET请求:获取“http://localhost:5601/api/status”:拨号传输控制协议127.0.0.1:5601:connect:连接被拒绝。响应:。
由于我是新的麋鹿和filebeat,任何帮助是非常感谢。

sczxawaw

sczxawaw1#

我相信filbeat试图与kibana沟通,但不幸的是kibana没有运行。
在filebeat.yml中添加以下行

setup.ilm.overwrite: true

确保elasticsearch和kibana正在运行,然后执行filebeat的安装命令。保持发布,谢谢!!!

ubof19bj

ubof19bj2#

重写设置可通过以下方式更改,即仅为当前命令传递-E标志:
1百万美元1倍
这将导致在不更改filebeat.yml的情况下覆盖索引,因此索引保持只读。

相关问题