2023-11-16 23:37:09 +00:00
|
|
|
<div>
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
2024-11-03 14:07:16 +00:00
|
|
|
{{ data_get_str($server, 'name')->limit(10) }} > Log Drains | Coolify
|
2024-06-07 09:01:10 +00:00
|
|
|
</x-slot>
|
2025-06-06 12:47:54 +00:00
|
|
|
<livewire:server.navbar :server="$server" />
|
2024-10-30 13:54:27 +00:00
|
|
|
<div class="flex flex-col h-full gap-8 sm:flex-row">
|
|
|
|
|
<x-server.sidebar :server="$server" activeMenu="log-drains" />
|
|
|
|
|
<div class="w-full">
|
|
|
|
|
@if ($server->isFunctional())
|
|
|
|
|
<div class="flex gap-2 items-center">
|
|
|
|
|
<h2>Log Drains</h2>
|
|
|
|
|
<x-loading wire:target="instantSave" wire:loading.delay />
|
|
|
|
|
</div>
|
2024-11-04 11:53:20 +00:00
|
|
|
<div>Sends service logs to 3rd party tools.</div>
|
2024-10-30 13:54:27 +00:00
|
|
|
<div class="flex flex-col gap-4 pt-4">
|
2025-06-25 08:56:35 +00:00
|
|
|
<div class="p-4 border dark:border-coolgray-300 border-neutral-200">
|
2024-10-30 13:54:27 +00:00
|
|
|
<form wire:submit='submit("newrelic")' class="flex flex-col">
|
|
|
|
|
<h3>New Relic</h3>
|
|
|
|
|
<div class="w-32">
|
|
|
|
|
@if ($isLogDrainAxiomEnabled || $isLogDrainCustomEnabled)
|
|
|
|
|
<x-forms.checkbox disabled id="isLogDrainNewRelicEnabled" label="Enabled" />
|
|
|
|
|
@else
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.checkbox instantSave canGate="update" :canResource="$server"
|
|
|
|
|
id="isLogDrainNewRelicEnabled" label="Enabled" />
|
2024-10-30 13:54:27 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
|
|
|
|
@if ($server->isLogDrainEnabled())
|
|
|
|
|
<x-forms.input disabled type="password" required id="logDrainNewRelicLicenseKey"
|
|
|
|
|
label="License Key" />
|
|
|
|
|
<x-forms.input disabled required id="logDrainNewRelicBaseUri"
|
|
|
|
|
placeholder="https://log-api.eu.newrelic.com/log/v1"
|
|
|
|
|
helper="For EU use: https://log-api.eu.newrelic.com/log/v1<br>For US use: https://log-api.newrelic.com/log/v1"
|
|
|
|
|
label="Endpoint" />
|
|
|
|
|
@else
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.input canGate="update" :canResource="$server" type="password" required
|
|
|
|
|
id="logDrainNewRelicLicenseKey" label="License Key" />
|
|
|
|
|
<x-forms.input canGate="update" :canResource="$server" required
|
|
|
|
|
id="logDrainNewRelicBaseUri"
|
2024-10-30 13:54:27 +00:00
|
|
|
placeholder="https://log-api.eu.newrelic.com/log/v1"
|
|
|
|
|
helper="For EU use: https://log-api.eu.newrelic.com/log/v1<br>For US use: https://log-api.newrelic.com/log/v1"
|
|
|
|
|
label="Endpoint" />
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex justify-end gap-4 pt-6">
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.button canGate="update" :canResource="$server" type="submit">
|
2024-10-30 13:54:27 +00:00
|
|
|
Save
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<h3>Axiom</h3>
|
|
|
|
|
<div class="w-32">
|
|
|
|
|
@if ($isLogDrainNewRelicEnabled || $isLogDrainCustomEnabled)
|
|
|
|
|
<x-forms.checkbox disabled id="isLogDrainAxiomEnabled" label="Enabled" />
|
2024-03-20 11:54:06 +00:00
|
|
|
@else
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.checkbox instantSave canGate="update" :canResource="$server"
|
|
|
|
|
id="isLogDrainAxiomEnabled" label="Enabled" />
|
2024-03-20 11:54:06 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
2024-10-30 13:54:27 +00:00
|
|
|
<form wire:submit='submit("axiom")' class="flex flex-col">
|
|
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
|
|
|
|
@if ($server->isLogDrainEnabled())
|
|
|
|
|
<x-forms.input disabled type="password" required id="logDrainAxiomApiKey"
|
|
|
|
|
label="API Key" />
|
|
|
|
|
<x-forms.input disabled required id="logDrainAxiomDatasetName"
|
|
|
|
|
label="Dataset Name" />
|
|
|
|
|
@else
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.input canGate="update" :canResource="$server" type="password" required
|
|
|
|
|
id="logDrainAxiomApiKey" label="API Key" />
|
|
|
|
|
<x-forms.input canGate="update" :canResource="$server" required
|
|
|
|
|
id="logDrainAxiomDatasetName" label="Dataset Name" />
|
2024-10-30 13:54:27 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex justify-end gap-4 pt-6">
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.button canGate="update" :canResource="$server" type="submit">
|
2024-10-30 13:54:27 +00:00
|
|
|
Save
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<h3>Custom FluentBit</h3>
|
|
|
|
|
<div class="w-32">
|
|
|
|
|
@if ($isLogDrainNewRelicEnabled || $isLogDrainAxiomEnabled)
|
|
|
|
|
<x-forms.checkbox disabled id="isLogDrainCustomEnabled" label="Enabled" />
|
2024-03-20 11:54:06 +00:00
|
|
|
@else
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.checkbox instantSave canGate="update" :canResource="$server"
|
|
|
|
|
id="isLogDrainCustomEnabled" label="Enabled" />
|
2024-03-20 11:54:06 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
2024-10-30 13:54:27 +00:00
|
|
|
<form wire:submit='submit("custom")' class="flex flex-col">
|
|
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
|
@if ($server->isLogDrainEnabled())
|
|
|
|
|
<x-forms.textarea disabled rows="6" required id="logDrainCustomConfig"
|
|
|
|
|
label="Custom FluentBit Configuration" />
|
|
|
|
|
<x-forms.textarea disabled id="logDrainCustomConfigParser"
|
|
|
|
|
label="Custom Parser Configuration" />
|
|
|
|
|
@else
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.textarea canGate="update" :canResource="$server" rows="6" required
|
|
|
|
|
id="logDrainCustomConfig" label="Custom FluentBit Configuration" />
|
|
|
|
|
<x-forms.textarea canGate="update" :canResource="$server"
|
|
|
|
|
id="logDrainCustomConfigParser" label="Custom Parser Configuration" />
|
2024-10-30 13:54:27 +00:00
|
|
|
@endif
|
2023-12-01 10:13:58 +00:00
|
|
|
|
2024-10-30 13:54:27 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="flex justify-end gap-4 pt-6">
|
2025-08-26 08:27:31 +00:00
|
|
|
<x-forms.button canGate="update" :canResource="$server" type="submit">
|
2024-10-30 13:54:27 +00:00
|
|
|
Save
|
|
|
|
|
</x-forms.button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2024-03-20 11:54:06 +00:00
|
|
|
|
2024-10-30 13:54:27 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@else
|
|
|
|
|
<div>Server is not validated. Validate first.</div>
|
|
|
|
|
@endif
|
2023-11-16 23:37:09 +00:00
|
|
|
</div>
|
2024-10-30 13:54:27 +00:00
|
|
|
</div>
|
2023-11-16 23:37:09 +00:00
|
|
|
</div>
|