tomer
(tomer zaks)
March 2, 2017, 7:59am
1
Hi,
I am trying to transfer logs from filebeats to logstash, but I get this error in the filebeats log:
dial tcp (ip number):5044: getsockopt: connection refused
In my LogStash config.d the configuration file is: and the content is:
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => "(ipnumber):9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
My filebeat configuration is:
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["(ipnumber):5044"]
index: filebeat
# Optional SSL. By default is off.
# List of root certificates for HTTPS server verifications
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
# Certificate for SSL client authentication
#ssl.certificate: "/etc/pki/client/cert.pem"
# Client Certificate Key
#ssl.key: "/etc/pki/client/cert.key"
As mentioned in here I checked and there is no more configuration files in conf.d
As mentioned in here I did not specify the ip number
Many thanks!
Are you able to telnet to port 5044 on the Logstash machine from the one where Filebeat is running?
tomer
(tomer zaks)
March 2, 2017, 9:18am
3
Hey Christian, They are actually sitting on the same VM
Does it work if you change the IP to localhost?
tomer
(tomer zaks)
March 2, 2017, 9:27am
5
No the error is constant also then. I get still:
dial tcp 127.0.0.1:5044: getsockopt: connection refused
tomer
(tomer zaks)
March 2, 2017, 9:30am
6
When I connect the filebeat straight to the ES there is a connection
tomer
(tomer zaks)
March 2, 2017, 12:42pm
7
Is this possible because I dont have the beats plugin? If so I am using 5.2, and as far as I know version 5.2 does not use plugins, and how can i install this?
steffens
(Steffen Siering)
March 2, 2017, 1:06pm
8
Is logstash running? Have you tried telnet localhost 5044
?
tomer
(tomer zaks)
March 2, 2017, 3:12pm
9
Hi steffends,
Well I tried to do telnet and it did not turn out good .
When I try ping it does work, how can this be?
tomer
(tomer zaks)
March 5, 2017, 8:32am
11
Hi @steffens ,
Thank you for all the help, I succeeded by installing Logstash on a diff. VM.
From some reason when they were running on the same machine they did not work (yes also Logstash was running)
1 Like
steffens
(Steffen Siering)
March 11, 2017, 6:03pm
12
Which OS have you been using?
system
(system)
Closed
March 23, 2017, 7:59am
13
This topic was automatically closed after 21 days. New replies are no longer allowed.