Skip to main content

Logtail Provider

Manage Logtail log management resources with Pulumi
1 min read

The Logtail provider enables you to manage log sources, metrics, and analytics resources in Logtail using Pulumi. This provider is dynamically bridged from the Terraform Logtail Provider.

Installation#

Install the Logtail provider package using your preferred package manager:

Configuration#

Getting API Token#

  1. Log in to Logtail at logs.betterstack.com
  2. Navigate to Settings → API Tokens
  3. Create a new API token
  4. Copy the token value

Provider Setup#

Or using environment variables:

Quick Start#

Key Features#

Log Sources#

Linking an AWS Account#

For aws platform sources, attach the AWS account that Better Stack pulls logs from with logtail.SourceAwsAccount (added in 10.14.0). Connect a new account using the Better Stack CloudFormation stack outputs, or reuse one you've already connected via awsAccountId:

Collectors and Targets#

Collectors are agents that run inside your infrastructure to collect metrics from databases and processes. Use logtail.CollectorTarget (added in 10.11.3) to attach scrape targets to a collector:

Dashboards#