Drain Logs
You can drain logs of your deployed services to third-party applications like Axiom or New Relic.
How to Enable
- Enable on your Server — Go to your
Serversettings and click on theLog Drainstab. - Enable on your Resource — Go to your resource,
Advancedtab and enableDrain Logs.
Caution
Once you enable at least one log drain, you need to Restart your service to apply the changes.
How to Configure
Axiom
You need a Dataset and an API key from Axiom. More information here.
New Relic
You need a License key from New Relic. More information here.
Per-Service Log Identification
To split logs by service in New Relic, add COOLIFY_APP_NAME=web (or any identifier) as an environment variable on your resource and restart.
Custom FluentBit Configuration
If you know how to configure FluentBit, you can use the Custom FluentBit configuration option to configure log drains.