LIke the title says, I have two VM's one has filebeat reading at a location, and the other has Logstash (and the rest of the ElasticSearch stack) on the other VM.
I've configured my filebeat to be:
filebeat.inputs:
-
type: log
paths:
- logpath/*.log
output.logstash:
hosts: ["IP of other VM:5044"]
logging:
level: error
to_files: true
files:
path: /tmp
name: fbeats.log
keepfiles: 7
rotateeverybytes: 10485760: log
and my logstash is configured to be:
input {
beats {
port="5044"
}
}
output {
elasticsearch {
hosts => ["IP OF current VM:9200"]
index => "some index"
}
}
However, when I fire up kibana, I am getting that elasticsearch has no data. I believe this is because filebeat is not sending data to the logstash in the other VM or that logstash is not sending data to elastic search (both logstash and elasticsearch are on the same VM)...
I added some logging to the filebeats, but I cannot find its' logs, either in the host VM or within the filebeat docker container.
Any help or direction is greatly appreciated. Thanks!