Send logs to Axiom
Coolify's built-in Axiom log drain sends opted-in resource logs to an existing Axiom dataset over HTTPS.
Before you start
Create the dataset and token in Axiom, then copy their exact values before opening Coolify. Coolify accepts letters, numbers, underscores, hyphens, and periods in both Axiom fields.
The built-in integration sends data to api.axiom.co on port 443. This endpoint is not configurable from the Axiom section in Coolify.
Configure Axiom in Coolify
Enable a resource
Follow Enable log draining for a resource, then restart or redeploy the resource.
The Axiom configuration sends logs as gzip-compressed JSON, writes the event time to _time in ISO 8601 format, and flushes every five seconds.
Identify logs
The built-in configuration adds fields that help you filter records.
For example, add this environment variable to the resource:
COOLIFY_APP_NAME=webThe built-in filter excludes log records whose message contains 127.0.0.1. Local health-check requests may therefore be absent from the dataset.
Verify delivery
- Cause the resource to write a recognizable message to
stdoutorstderr. - Wait at least five seconds.
- Open the Axiom dataset and search recent events for the message,
coolify.server_name, orcoolify.app_name.
Verification in Axiom is required because Coolify does not perform a provider connection test.
Update the dataset or token
- Turn off Enabled in the Axiom section.
- Update API Key or Dataset Name.
- Select Save.
- Turn on Enabled again.
- Generate a new resource log and confirm that it arrives in the expected dataset.
Fix missing logs
- Confirm Axiom is the enabled server drain and the resource's Drain Logs setting is on.
- Confirm you restarted or redeployed the resource after enabling the setting.
- Confirm the token can ingest into the exact dataset name entered in Coolify.
- Confirm the server can reach
api.axiom.co:443. - Inspect the Fluent Bit container on the resource server:
docker ps --filter name=coolify-log-drain
docker logs --tail 100 coolify-log-drainAuthentication, dataset, and network errors appear in the Fluent Bit output.
