Unix 《文件节拍》发行;初始化发布服务器时出错:未定义任何输出&引用;尝试将日志转发到Logstash时

Unix 《文件节拍》发行;初始化发布服务器时出错:未定义任何输出&引用;尝试将日志转发到Logstash时,unix,logstash,filebeat,Unix,Logstash,Filebeat,我是麋鹿队的新手。 我正在尝试使用Windows(ELK服务器)和Vagrant Unix CentOS VM(Filebeat Shipper)实现它 首先,我尝试将Unix系统日志发送到ELK服务器,看看它是如何工作的 我已将Windows计算机上Logstash的central.conf文件配置为 input{ beats{ port => 5044 } } output{ stdout{ } elasticsearch{ hosts =>

我是麋鹿队的新手。 我正在尝试使用Windows(ELK服务器)和Vagrant Unix CentOS VM(Filebeat Shipper)实现它

首先,我尝试将Unix系统日志发送到ELK服务器,看看它是如何工作的

我已将Windows计算机上Logstash的central.conf文件配置为

input{

beats{
    port => 5044
    }  
}

output{

stdout{ }

elasticsearch{ 
     hosts => ["http://localhost:9200"] }

  }
Unix(CentOS-7)上的Filebeat YAML配置为

filebeat:
prospectors:
-
paths:
-"/var/log/*.log"
input_type: log
document_type: beat
registry: "/var/lib/filebeat"
output:
logstash:
hosts: ["127.0.0.1:5044"]
logging:
to_files: true
files:
path: "/var/log/filebeat"
name: filebeat.log
rotateeverybytes: 10485760
level: debug 
Elasticsearch和Logstash在我的windows计算机上正常运行

我现在面临以下两个问题,

1.当我尝试在Unix上运行filebeat shipper时,它给出了以下错误

[root@localhost filebeat]# filebeat -e -v -c filebeat.yml -d "*"
2016/05/08 11:07:00.404841 beat.go:135: DBG Initializing output plugins
2016/05/08 11:07:00.404873 geolite.go:24: INFO GeoIP disabled: No paths were set under output.geoip.paths
2016/05/08 11:07:00.404886 publish.go:269: INFO No outputs are defined. Please define one under the output section.
Error Initialising publisher: No outputs are defined. Please define one under the output section.
2016/05/08 11:07:00.404902 beat.go:140: CRIT No outputs are defined. Please define one under the output section.
二,。当我看到Logstash日志时,我发现它试图在“0.0.0.0:5044”上而不是在“127.0.0.1:5044”上侦听Beats输入

这两个问题是否相互关联,我如何解决它们,请有人帮助我,并为我指出正确的方向,以使其工作

非常感谢您提供的任何帮助。

错误显示:

没有定义任何输出。请在“输出”部分下定义一个

如果您的yaml文件与问题中的相同,则它是错误的。因为压痕在yaml中很重要。它必须是这样的:

...
output:
  logstash:
    hosts: ["127.0.0.1:5044"]
...
...
output:
  logstash:
    hosts: ["127.0.0.1:5044"]
...