After I successfully made it to connect FileBeat with Logstash and Elasticsearch I am now having troubles with it, I tried to adjust my filter in Logstash and even after getting it back to the initial state I am unable to connect them.
I'm running all as windows services. My operation system is VMWare workstation windows 2016 and here are my config files:
filebeat.yaml:
#=========================== Filebeat prospectors =============================
filebeat.prospectors:
- type: log
enabled: true
paths:
- c:\programdata\filebeat\Applogs\AxesPlus\*.txt
#============================= Filebeat modules ===============================
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3
#================================ General =====================================
tags: ["AxesPlus"]
#============================== Kibana =====================================
setup.kibana:
host: "localhost:5601"
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["localhost:5044"]
logstash config:
input {
beats {
port => 5044
type => "log"
}
}
output {
elasticsearch {
hosts => "localhost:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
Logstash log:
[2017-11-22T16:11:19,430][INFO ][logstash.pipeline ] Pipeline started {"pipeline.id"=>"main"}
[2017-11-22T16:11:19,444][INFO ][org.logstash.beats.Server] Starting server on port: 5044
[2017-11-22T16:11:19,546][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>["main"]}
filebeat:
2017-11-22T16:32:12+02:00 INFO Home path: [C:\Program Files\Filebeat] Config path: [C:\Program Files\Filebeat] Data path: [C:\Program Files\Filebeat\data] Logs path: [C:\Program Files\Filebeat\logs]
2017-11-22T16:32:12+02:00 INFO Beat UUID: 9b0b57c2-7109-471c-9295-d0bbc9f21ab7
2017-11-22T16:32:12+02:00 INFO Metrics logging every 30s
2017-11-22T16:32:12+02:00 INFO Setup Beat: filebeat; Version: 6.0.0
2017-11-22T16:32:12+02:00 INFO Elasticsearch url: http://localhost:9200
2017-11-22T16:32:12+02:00 INFO Beat name: WIN-E56I4JOUMH9
2017-11-22T16:32:12+02:00 INFO Elasticsearch url: http://localhost:9200
2017-11-22T16:32:12+02:00 INFO Connected to Elasticsearch version 6.0.0
2017-11-22T16:32:12+02:00 INFO Template already exists and will not be overwritten.