You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of this project you're using: 1.6.2
Platform version: Debian Stretch
Framework version: JRE 11
Splunk version: 7.0.8.5
Other relevant information:
We are using the HttpEventCollectorLogbackAppender to send some of our logs to splunkcloud. The app sending these logs lives behind an egress proxy (for allowing only certain domains etc.)
The HttpEventCollectorSender class news up an Apache HttpClient using the HttpAsyncClients.custom() method.
Unfortunately the Apache HttpClient class does not respect the https.proxyHost/http.proxyPort system properties. As there is no way for us to new up the client ourselves and there are no proxy settings that we can pass in to the HttpEventCollectorLogbackAppender, we cannot get the appender to reach splunkcloud through the egress proxy.
It would be great if either the HttpClient could use the system properties (HttpAsyncClients.custom().useSystemProperties()) or if the proxy settings could be passed into the HttpEventCollectorLogbackAppender constructor so that we can correctly configure the client.
The text was updated successfully, but these errors were encountered:
Thanks for creating an issue. We're open to a pull request for making the changes to support your use case, I think this is a reasonable change to bring in.
I agree with this one, we also needed the useSystemProperties(). A protected method would have been nice to at least override or enrich the HTTPAsyncClients settings. I could throw together a quick pull request if @andy-paine hasn't already started one.
kfud
pushed a commit
to fudcom/splunk-library-javalogging
that referenced
this issue
Jul 10, 2019
Version of this project you're using: 1.6.2
Platform version: Debian Stretch
Framework version: JRE 11
Splunk version: 7.0.8.5
Other relevant information:
We are using the
HttpEventCollectorLogbackAppender
to send some of our logs to splunkcloud. The app sending these logs lives behind an egress proxy (for allowing only certain domains etc.)The
HttpEventCollectorSender
class news up an ApacheHttpClient
using theHttpAsyncClients.custom()
method.Unfortunately the Apache
HttpClient
class does not respect thehttps.proxyHost
/http.proxyPort
system properties. As there is no way for us to new up the client ourselves and there are no proxy settings that we can pass in to theHttpEventCollectorLogbackAppender
, we cannot get the appender to reach splunkcloud through the egress proxy.It would be great if either the
HttpClient
could use the system properties (HttpAsyncClients.custom().useSystemProperties()
) or if the proxy settings could be passed into theHttpEventCollectorLogbackAppender
constructor so that we can correctly configure the client.The text was updated successfully, but these errors were encountered: