Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

HttpOutput does not respect http_proxy environment variable #1929

Open
gravaton opened this issue May 9, 2016 · 1 comment
Open

HttpOutput does not respect http_proxy environment variable #1929

gravaton opened this issue May 9, 2016 · 1 comment

Comments

@gravaton
Copy link

gravaton commented May 9, 2016

When attempting to use HttpOutput to push messages to an endpoint outside our corporate network, it attempts to connect directly. Go's documentation implies that the http_proxy environment variable should be respected however it does not seem to be. The Nagios Output plugin seems to have some capability for proxying but the HttpOutput plugin does not.

@michaelgibson
Copy link
Contributor

I think....this would be as simple as adding Proxy: http.ProxyFromEnvironment,
From:
https://github.com/mozilla-services/heka/blob/dev/plugins/nagios/nagios_output.go#L94
To:
https://github.com/mozilla-services/heka/blob/dev/plugins/http/http_output.go#L81

But haven't tested it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants