Send logs to Better Stack using Fluentd | Better Stack Documentation

Explore documentation

Start logging to Better Stack

1. Install

Install Fluentd on your server.

2. Set up inputs

Install and set up Fluentd input plugins.

3. Install Better Stack

Install the Better Stack Fluent plugin:

Install Logtail gem

Copied!

Read more about Plugin Management in the official documentation.

4. Set up outputs

Modify the Fluentd configuration to send logs to Better Stack:

Output configuration

Copied!

<match **>
  @type logtail
  @id output_logtail
  source_token $SOURCE_TOKEN
  ingesting_host $INGESTING_HOST
  flush_interval 2 # in seconds
</match>

5. Restart

Restart the Fluentd service:

Restart the service

Copied!

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! 🙏