I have two servers one for production and one for test, I've been trying to install metricbeat on both servers. I did on my test server and set it to send logs to my amazon elasticsearch service and now I can see on kibana all data from that server but I did the same process to my production server and when I use command sudo metricbeat -e it starts but I get ERROR pipeline/output.go:74 Failed to connect: Get https://amazon-endpoint request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) but the config for both is the same
Asked
Active
Viewed 1,178 times
0
-
your production server could not connect to amazon elasticsearch – Ijaz Ahmad Oct 26 '18 at 23:46
-
Check Amazon Elasticsearch domain access policy and see if your production server is whitelisted. From production server are you able to curl AWS ES URL and see a successful response ? – ben5556 Oct 27 '18 at 04:48
-
yes, I'm able to curl my amazon URL with a successful response – Diogo Silva Oct 28 '18 at 00:38
-
Then metricbeat should also be able to connect unless something wrong in metricbeat config – ben5556 Oct 28 '18 at 10:38
-
sorry guys I did a curl test in other server , I tried curl on production but does not work just work on my test server – Diogo Silva Oct 29 '18 at 16:55
-
Check AWS ES domain access policy and see if your production server is whitelisted ? Are you using a single AWS ES domain for both test & prod or separate ? – ben5556 Nov 01 '18 at 05:33
-
Thanks guys my problem was a whitelisted – Diogo Silva Nov 01 '18 at 12:50