Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Filebeat到Logstash-InvalidFrameProtocolException_Logstash_Filebeat - Fatal编程技术网

Filebeat到Logstash-InvalidFrameProtocolException

Filebeat到Logstash-InvalidFrameProtocolException,logstash,filebeat,Logstash,Filebeat,我正在尝试将数据从filebeat加载到logstash。加载时,运行命令时-> bin/logstash -f first-pipeline.conf --config.reload.automatic ,遇到以下错误: [2018-06-05T11:30:43,987][INFO ][logstash.inputs.beats ] Beats inputs: Starting input listener {:address=>"0.0.0.0:5044"} [2018-06

我正在尝试将数据从filebeat加载到logstash。加载时,运行命令时->

bin/logstash -f first-pipeline.conf --config.reload.automatic 
,遇到以下错误:

[2018-06-05T11:30:43,987][INFO ][logstash.inputs.beats    ] Beats inputs: Starting input listener {:address=>"0.0.0.0:5044"}
[2018-06-05T11:30:44,047][INFO ][logstash.pipeline        ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x969dfe run>"}
[2018-06-05T11:30:44,083][INFO ][org.logstash.beats.Server] Starting server on port: 5044
[2018-06-05T11:30:44,112][INFO ][logstash.agent           ] Pipelines running {:count=>1, :pipelines=>["main"]}
[2018-06-05T11:32:05,045][INFO ][org.logstash.beats.BeatsHandler] [local: 0:0:0:0:0:0:0:1:5044, remote: 0:0:0:0:0:0:0:1:31903] Handling exception: org.logstash.beats.BeatsParser$InvalidFrameProtocolException: Invalid Frame Type, received: 69
Filebeat.yml文件:

filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - \C:\PATH-TO-DOC\elasticDoc\logstash-tutorial-dataset.log
#----------------------------- Logstash output --------------------------------
output.logstash:
  # The Logstash hosts
  hosts: ["localhost:5044"]
logstash-tutorial-dataset.log的示例数据集:

83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-dashboard3.png HTTP/1.1" 200 171717 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"

这个错误的原因是什么?这个问题以前已经问过了,但没有人回答。也请让我知道我在哪里可以完善我的logstash和filebeat更多概念。我是初学者

问题在于我在filebeat.yml中的文件名。不需要延长期限。
同样在first-pipeline.conf文件中,我删除了编解码器,并将日志直接发送到elastic search,它开始为我工作

除了logstash输出,还发生了什么?日志存储过程是否停止?这些消息不再被处理了?当我试图将数据从stdin从logstash发送到elasticsearch时,它工作正常。但数据不能从filebeat发送到logstash。我认为这些消息根本不是进程。Logstasah终于显示了这一点:[2018-06-06T13:22:38140][WARN][io.netty.channel.DefaultChannelPipeline]触发了exceptionCaught()事件,它到达了管道的尾部。这通常意味着管道中的最后一个处理程序没有处理异常。io.netty.handler.codec.DecoderException:org.logstash.beats.BeatsParser$InvalidFrameProtocolException:Invalid帧类型,收到:84可能是兼容性问题?ie您使用的logstash版本不支持您使用的filebeat版本我有最新的logstash和filebeat版本,即6.2.4
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-dashboard3.png HTTP/1.1" 200 171717 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"