-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
Latest logstash-lugion version (2.1.0)
Hi,
I am using the logstash plugin to send console logs to ElasticSearch. The problem is that my application where I want to send my console logs is only accessible via proxy.
So I am setting proxy settings in Jenkins and I start a job that does a curl to my application (proxy is set only in Jenkins settings) and my curl command succeeds but I get this from the plugin:
[logstash-plugin]: No Further logs will be sent to APPLICATION_URL. org.apache.http.conn.HttpHostConnectException: Connect to APPLICATION_URL:443 [APPLICATION_URL] failed: Connection refused (Connection refused)
However, I checked out the project from github and made a custom version of the plugin. I added those lines: in ElasticSearchDao#push()
clientBuilder.useSystemProperties(); httpClient = clientBuilder.build();
or
clientBuilder.setProxy(new HttpHost(proxy-host, 8080));
httpClient = clientBuilder.build();
And with either of the versions I am able to send logs to my application via proxy.
So my question is, is the plugin able to use somehow proxy settings and if yes, how should I do it? I do not want to use a custom version of the plugin.
Best Regards,
Slavi