Better Stack Elasticsearch logging

Start logging in 2 minutes

What you would like to collect from your Elasticsearch?

Collect logs & metrics

Collect logs and metrics from your Elasticsearch using Vector  and elasticsearch exporter .

1. Set up Elasticsearch exporter

Install and start latest elasticsearch exporter:

Install and start elasticsearch exporter
curl -sSL https://logs.betterstack.com/install/elasticsearch_exporter | sudo -E bash

2. Run exporter

Start the Elasticsearch exporter:

Linux macOS
systemctl start elasticsearch_exporter
launchctl start com.prometheus.elasticsearch_exporter

3. Set up Vector

Select your platform:

Ubuntu • Debian

Install and configure Vector  on Ubuntu or Debian:

Set up Vector
curl -sSL https://logs.betterstack.com/setup-vector/elasticsearch_with_metrics/$SOURCE_TOKEN \
  -o /tmp/setup-vector.sh && \
  bash /tmp/setup-vector.sh

Curious about what the script does?

  • Installs Vector using official package.
  • Configures Vector for your Better Stack source.
  • Enables and restarts Vector.

The script will ask for confirmation before making any changes.

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

Collect only logs

Collect logs from your Elasticsearch using Vector.

Select your platform:

Ubuntu • Debian

Install and configure Vector  on Ubuntu or Debian:

Set up Vector
curl -sSL https://logs.betterstack.com/setup-vector/elasticsearch/$SOURCE_TOKEN \
  -o /tmp/setup-vector.sh && \
  bash /tmp/setup-vector.sh

Curious about what the script does?

  • Installs Vector using official package.
  • Configures Vector for your Better Stack source.
  • Enables and restarts Vector.

The script will ask for confirmation before making any changes.

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

Need help?

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