I want to send elasticsearch.output through an nginx proxy.
If i set that nginx IP i get:
2017-03-28T10:50:51-04:00 ERR Connecting error publishing events (retrying): Failed to parse JSON response: invalid character '<' looking for beginning of value
if i set ES host actual IP all works ok.
Idea is to obfuscate ES endpoint from the remote machines where beats are running
Hi Carlos,
Actually i think I've just managed to get it work. Not quite what I would like but i think it works like this. I needed to use proxy_url
In metricbeat.yml I've added this lines:
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["browser.shows.this.server.com"]
index: metricbeat-client1
proxy_url: "54.77.26.243/client1" # that's NGINX on AWS
Thanks again for looking at this. Will probably follow with other topics on securing this deployment and how to leverage using elastic cloud not AWS elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.