在默认的情况下,直接运行filebeat的话,它选择的默认的配置文件是当前目录下的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没有被打开。

相关文章:

  • 2022-12-23
  • 2021-04-24
  • 2021-12-22
  • 2022-12-23
  • 2021-11-28
  • 2021-11-29
  • 2021-05-07
  • 2021-12-16
猜你喜欢
  • 2021-10-30
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
相关资源
相似解决方案