Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.29 KB

proxy.md

File metadata and controls

27 lines (18 loc) · 1.29 KB

Connecting through a proxy

Stanza supports sending logs through a HTTP proxy. To enable this, set the environment variables HTTP_PROXY and HTTPS_PROXY to the address of your proxy server.

For example:

export HTTP_PROXY=http://user:password@myproxy:3128
export HTTPS_PROXY=http://user:password@myproxy:3128
stanza -c ./config.yaml

To set this for the Stanza service on Linux, the service file can be modified with systemctl edit stanza, and add the following lines in the [Service] section.

[Service]
Environment=HTTP_PROXY=http://user:password@myproxy:3128
Environment=HTTPS_PROXY=http://user:password@myproxy:3128

Using a self-signed certificate

If your proxy uses a self-signed certificate, it will need to be installed in the OS's trusted certificate store. For an example of how to do that on RedHat Linux, see here under the heading "Updating ca-certificates to validate sites with an internal CA certificate".

Known issues

go-grpc, which is used for the Google Cloud Output operator, does not currently support sending a proxy CONNECT call over HTTPS, so proxy URLs must start with http://. Once the CONNECT request is made, a TLS tunnel will still be established, encrypting all the logs that are sent.