I am having trouble in setting up the ELK stack,
Filebeat is configured,
filebeat.prospectors:
- input_type: log
paths:
- /var/log/syslog
#- c:\programdata\elasticsearch\logs\*
document_type: syslog
output.logstash:
# The Logstash hosts
hosts: ["localhost:5044"]
bulk_max_size: 1024
These are the input files for logstash,
For input,
input {
beats {
type => beats
port => 5044
}
}
For Output,
output {
elasticsearch {
hosts => ["localhost:9200"]
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
I can see in the filebeat logs, that it is giving me this error,
2017-04-19T15:30:55+05:30 ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused
Clearly, the port is not opened by logstash, Also I can see via netstat that port is not open for listening.
Why the port is not opened by logstash, am I missing something ? Also, when the port will open, will it automatically keeps sending the data to logstash, and logstash then to elasticsearch ?