Hello! I am new to ELKStack. Somebody else have installed Logstash, Elasticsearch on the logstash server and filebeat on another server. But there is a problem remain and I responsible of solving it.
The problem seems like the connection between filebeat and logstash server is not success. When I run 'systemctl status filebeat -l'. I got below:
[ruoyu@compute-20 filebeat]$ systemctl status filebeat -l
● filebeat.service - filebeat
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2016-07-17 14:45:06 EDT; 19h ago
Docs: https://www.elastic.co/guide/en/beats/filebeat/current/index.html
Main PID: 18016 (filebeat)
CGroup: /system.slice/filebeat.service
└─18016 /usr/bin/filebeat -c /etc/filebeat/filebeat.yml -v
Jul 18 09:56:28 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:159: backoff retry: 1m0s
Jul 18 09:58:58 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:76: Error publishing events (retrying): read tcp 10.13.37.73:54950->10.13.37.99:5044: i/o timeout
Jul 18 09:58:58 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:152: send fail
Jul 18 09:58:58 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:159: backoff retry: 1m0s
Jul 18 10:00:08 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:76: Error publishing events (retrying): EOF
Jul 18 10:00:08 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:152: send fail
Jul 18 10:00:08 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:159: backoff retry: 1m0s
Jul 18 10:02:38 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:76: Error publishing events (retrying): read tcp 10.13.37.73:55110->10.13.37.99:5044: i/o timeout
Jul 18 10:02:38 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:152: send fail
Jul 18 10:02:38 compute-20.moc.ne.edu /usr/bin/filebeat[18016]: single.go:159: backoff retry: 1m0s
But I use 'telnet 10.13.37.99 5044' to test the connection and the result is alright.
[ruoyu@compute-20 filebeat]$ telnet 10.13.37.99 5044
Trying 10.13.37.99...
Connected to 10.13.37.99.
Escape character is '^]'.
Below is the filebeat.yml file on the other server (not logstash server).
filebeat:
1 prospectors:
2 -
3 paths:
4 # - /var/log/*.log
5 - /var/log/secure
6 - /var/log/messages
7 # - /var/log/ceph/*
8 # - /var/log/nova/*
9 # - /var/log/neutron/*
10 # - /var/log/openvswitch/*
11 # - /var/log/cinder/*
12 # - /var/log/glance/*
13 # - /var/log/horizon/*
14 # - /var/log/httpd/*
15 # - /var/log/keystone/*
16
17 encoding: plain
18 fields_under_root: false
19 input_type: log
20 ignore_older: 24h
21 document_type: syslog
22 scan_frequency: 10s
23 harvester_buffer_size: 16384
24 tail_files: false
25 force_close_files: false
26 backoff: 1s
27 max_backoff: 10s
28 backoff_factor: 2
29 partial_line_waiting: 5s
30 max_bytes: 10485760
31 spool_size: 1024
32 idle_timeout: "15s"
33 registry_file: /var/lib/filebeat/registry
34 output:
35 logstash:
36 hosts: ["10.13.37.99:5044"]
37 shipper: {}
38 logging:
39 level: info
40 runoptions: {}
Below are the configurations of logstash:
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => ["10.13.37.99:9200"]
sniffing => true
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
Any help is greatly appreciated. Thank you very much!