filebeat测试output连通性

在默认的情况下,直接运行filebeat的话,它选择的默认的配置文件是当前目录下的filebeat.yml文件。

filebeat.yml文件内容

filebeat.inputs:
- type: log
  enabled: true
  paths:
    - ./sample.log
 
output.logstash:
  hosts: ["localhost:5044"]

打入一个测试命令来看一下执行的结果:
./filebeat test output

显示结果:

logstash: localhost:5044...
  connection...
    parse host... OK
    dns lookup... OK
    addresses: ::1, 127.0.0.1
    dial up... ERROR dial tcp 127.0.0.1:5044: connect: connection refused

返回信息显示,logstash没有运行,端口5044没有被打开。

posted @ 2020-05-08 09:52  哈喽哈喽111111  阅读(1500)  评论(0编辑  收藏  举报