Skip to main content

Drain Logs

You can drain logs of your deployed services to third-party applications like Axiom or New Relic.

How to Enable​

  1. Enable on your Server — Go to your Server settings and click on the Log Drains tab.
  2. Enable on your Resource — Go to your resource, Advanced tab and enable Drain 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.