I searched in the other topics but cannot find the solution to my problem....
Scenary:
FileBeat 5.2.2.1
Filebeat-input-plugin 3.1.14
ELK 5.2
I have 4 server successfully sending logs to the logstash servers... I create a new server but it's imposible to make it work...
This is my config:
filebeat.prospectors:
- input_type: log
paths:
- /var/log/maillog
document_type: maillog
- input_type: log
paths:
- /var/log/secure
document_type: maillogin
- input_type: log
paths:
- /var/log/fail2ban.log
document_type: fail2ban
output.elasticsearch:
hosts: ["host1:5044", "host2:5044"]
loadbalance: true
And I get the following errors...
2017-03-21T11:30:41-03:00 ERR Connect failed with: Get http://host1:5044: read tcp 10.73.1.25:49879->10.73.2.86:5044: read: connection reset by peer
2017-03-21T11:30:41-03:00 ERR Connect failed with: Get http://host2:5044: read tcp 10.73.1.25:35833->10.73.2.87:5044: read: connection reset by peer
2017-03-21T11:31:08-03:00 INFO Non-zero metrics in the last 30s: libbeat.es.publish.write_bytes=264 libbeat.es.publish.read_errors=2
While the others servers say:
2017-03-21T10:36:49-03:00 INFO Non-zero metrics in the last 30s: publish.events=193 libbeat.logstash.call_count.PublishEvents=6 libbeat.logstash.publish.write_bytes=12409 registrar.states.update=193 libbeat.logstash.publish.read_bytes=72 libbeat.logstash.published_and_acked_events=193 libbeat.publisher.published_events=193 registrar.writes=6
- The configs are identical... All the servers are Centos 6 or 7.
- I'm not using TLS/SSL.
- There is no firewall rules or SELinux enabled.
- The logstash server dont write any log about the "Cause of rejection".
What can I do?