I have installed ELK tools and also packetbeat and topbeat
When I configure them to send logs through localhost; there is no errors. However, when I typed the exact ip address of my machine, error pops out.
16/05/25 05:34:49.972415 single.go:126: INFO Connecting error publishing events (retrying): Head http://172.16.1.245:9200 : dial tcp 172.16.1.245:9200: getsockopt: connection refused
2016/05/25 05:34:49.972442 single.go:152: INFO send fail
2016/05/25 05:34:49.972456 single.go:159: INFO backoff retry: 2s
Anyone have any ideas to resolve it?
Thanks in advance.
warkolm
(Mark Walkom)
May 25, 2016, 5:47am
2
What does SSL have to do with this then?
When I use another machine to send to my server, it comes with another sentence, stating
16/05/25 05:34:49.972415 single.go:126: INFO Connecting error publishing events (retrying): Head http://172.16.1.245:9200 : dial tcp 172.16.1.245:9200: getsockopt: connection refused
2016/05/25 05:34:49.972442 single.go:152: INFO send fail
2016/05/25 05:34:49.972456 single.go:159: INFO backoff retry: 2s
warkolm
(Mark Walkom)
May 25, 2016, 5:52am
4
That's the same thing as your first bit of logs?
Maybe this will be clear.
I have two machines.
ELK server
client
When configuring beats file (topbeat.yml) to use elasticsearch as output and the host as localhost:9200, then everything is smooth without error. However, when I turn localhost:9200 to 172.16.1.221:9200, the first pile of errors come out
Then when I set up topbeat.yml in the client using elasticsearch as output and the host as 172.16.1.221:9200, the second pile of error comes out
warkolm
(Mark Walkom)
May 25, 2016, 5:59am
6
Ahh I can see you have update the topic, now it makes more sense!
Can you contact ES via 172.16.1.221:9200
from the host that filebeat is running on?
I didnt run on any filebeat
Is it a must to run filebeat
warkolm
(Mark Walkom)
May 25, 2016, 7:20am
8
Sorry, packetbeat or topbeat.
How to check if it is contacting the ES? I can only see the beats are reading logs when I run the yml with - "publish"
warkolm
(Mark Walkom)
May 25, 2016, 7:22am
10
Use telnet to see if it can connect.
No, it says connection refused when telnet IP 9200
warkolm
(Mark Walkom)
May 25, 2016, 7:54am
12
Do you have ES listening to that 172.16.1.221
IP? What's in your config?
Oh I have changed the elasticsearch.yml networkhost to 0.0.0.0
then everything is ok now
What's the reason though
warkolm
(Mark Walkom)
May 25, 2016, 8:29am
14
1 Like
Thanks for the guide. Great Thx.
I have come across another problem, not sure you have any ideas about it?
https://discuss.elastic.co/t/read-files-from-another-machine/50922?u=kennedy_kan1