This is an advanced feature
Collector will always batch the sent data. We recommend you install it via one of the options above. Install collector as egress proxy to batch data you're already sending to Better Stack.
Run collector as fowarding proxy for logs, traces, and metrics to save on egress costs.
Collector will always batch the sent data. We recommend you install it via one of the options above. Install collector as egress proxy to batch data you're already sending to Better Stack.
Set the PROXY_PORT variable before installing and updating collector. Make sure the chosen port is free on the host system.
Send logs to /v1/logs, metrics to /v1/metrics, and traces to /v1/traces. Use any format you'd otherwise send to Better Stack directly.
Optionally, secure the proxy with HTTP Basic authentication:
Secure the proxy with SSL certificates from Let’s Encrypt.
Set PROXY_PORT and USE_TLS before installing or upgrading collector:
When USE_TLS is set, collector will also bind port 80 to handle Let’s Encrypt HTTP-01 challenges.
If port 80 is already in use, collector will fail to start. We recommend using 443 as PROXY_PORT with SSL.
Enable SSL in the collector configuration:
The configured domain name is updated automatically as part of the remote configuration. Collector will try to obtain a certificate from Let’s Encrypt every 10 minutes until successful. Once issued, the certificate is automatically renewed every 6 hours.
Test the egress proxy by sending a sample log line.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.