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#
- Log in to Logtail at logs.betterstack.com
- Navigate to Settings → API Tokens
- Create a new API token
- 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: