Better Stack OpenTelemetry logging

Start logging in 5 minutes

Send logs and metrics to Better Stack using OpenTelemetry collector.

1. Install

Install latest OpenTelemetry collector:

Install OpenTelemetry collector
curl -sSL https://logs.betterstack.com/install/otelcol-contrib | sudo -E bash

2. Setup

Download OpenTelemetry configuration for your source:

Download OpenTelemetry config

curl https://logs.betterstack.com/otel/$SOURCE_TOKEN > /etc/otelcol-contrib/config.yaml

3. Restart

Restart OpenTelemetry collector for the new configuration to take effect:

Restart
systemctl restart otelcol-contrib

You should see your logs in Better Stack → Live tail.

Check out your metrics in the OpenTelemetry dashboard.

No logs coming in?

Check the status and logs of OpenTelemetry collector:

Check OpenTelemetry collector
systemctl status otelcol-contrib
journalctl -u otelcol-contrib -n 20 -f

Need help?

Please let us know at hello@betterstack.com.
We're happy to help! 🙏