I'm using filebeat-6.2.3 ,logstash-6.2.2
filebeat config:
filebeat.prospectors:
- type: log
paths:
- /path/to/file/log/*.log
output.logstash:
# The Logstash hosts
hosts: ["192.168.15.41:5044"]
enabled: true
logstash:
input {
beats{
port=>5044}
}
output{
stdout { codec => rubydebug }
}
I run the command filebeat ,logstash didn't print the log on stdout.
logstash's console like this:
[2018-03-22T14:57:23,959][INFO ][logstash.inputs.beats ] Beats inputs: Starting input listener {:address=>"0.0.0.0:5044"}
[2018-03-22T14:57:24,015][INFO ][logstash.pipeline ] Pipeline started succesfully {:pipeline_id=>"main", :thread=>"#<Thread:0x6df34d4d sleep>"}
[2018-03-22T14:57:24,051][INFO ][org.logstash.beats.Server] Starting server on port: 5044
[2018-03-22T14:57:24,078][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>["main"]}
For testing,I changed the filebeat's config "output.logstash" into output.file ,the test file can be built with log content.
config like this:
#output.file:
# path: "/tmp/filebeat"
# filename: filebeat
# enabled: true
I wonder how I confirm filebeat has communicated with logstash.
Why the logstash can't receive the log .
Thanks a lot!