Skip to main content
A log drain copies your project’s logs to a place you control, for longer retention or your own search tools. Open the project, then Settings > Log Drains. An account can have up to 3 drains, and each drain can serve several projects.

Destinations

Each line is one JSON event. Events can be build output, deployment events, runtime output, or HTTP requests.

Create a drain

1

Prepare the destination

Create a bucket or prefix, or an HTTPS endpoint. The endpoint must be public HTTPS.
2

Add the drain

In Settings > Log Drains, enter the endpoint, bucket, region, prefix, and keys (or the HTTPS URL and token). Pick the log sources to send.
3

Test it

Use the test button. Pxxl sends a test event right away.
4

Attach it to the project

Enable the drain for the project, then check that new files or requests arrive.
For S3, the key only needs s3:PutObject on the prefix, plus s3:ListBucket and s3:GetBucketLocation on the bucket.

HTTPS receiver

Your endpoint should check the token, accept a gzip body, store it, and return 2xx:

Failures

Pxxl retries failed deliveries with backoff. A drain that keeps failing for a long time is disabled. Fix the credentials or endpoint, then enable it again.