Hi Team,
I am getting below errro while fetching logs by using filebeat .
Details are mentioned below
[root@nagios-core ~]# systemctl status filebeat
● filebeat.service - filebeat
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-08-20 17:15:38 IST; 1s ago
Docs: https://www.elastic.co/guide/en/beats/filebeat/current/index.html
Main PID: 2531 (filebeat)
CGroup: /system.slice/filebeat.service
└─2531 /usr/bin/filebeat -c /etc/filebeat/filebeat.yml
Aug 20 17:15:38 nagios-core systemd[1]: Started filebeat.
Aug 20 17:15:38 nagios-core systemd[1]: Starting filebeat...
Aug 20 17:15:38 nagios-core /usr/bin/filebeat[2531]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.37.147:5044: getsockopt: connection refused
[root@nagios-core ~]#
Elasticsearch server:-
[root@node1 conf.d]# netstat -ntulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5601 0.0.0.0:* LISTEN 683/node
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1049/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1330/master
tcp6 0 0 :::9200 :::* LISTEN 1053/java
tcp6 0 0 :::9300 :::* LISTEN 1053/java
tcp6 0 0 :::22 :::* LISTEN 1049/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1330/master
udp 0 0 0.0.0.0:68 0.0.0.0:* 867/dhclient
[root@node1 conf.d]#
[root@node1 conf.d]# systemctl status logstash
● logstash.service - logstash
Loaded: loaded (/etc/systemd/system/logstash.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-08-20 17:14:27 IST; 22s ago
Main PID: 5634 (java)
CGroup: /system.slice/logstash.service
└─5634 /bin/java -Xms1g -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.aw...
Aug 20 17:14:27 node1 systemd[1]: Started logstash.
Aug 20 17:14:27 node1 systemd[1]: Starting logstash...
Please help me to fix this issue.
Regards,
Rituraj