2023-11-16 23:37:09 +00:00
|
|
|
<div>
|
|
|
|
<x-server.navbar :server="$server" :parameters="$parameters" />
|
|
|
|
<h2>Log Drains</h2>
|
2023-11-17 20:16:25 +00:00
|
|
|
<div class="pb-4">Sends service logs to 3rd party tools.</div>
|
2023-11-17 09:21:19 +00:00
|
|
|
<div class="flex flex-col gap-4 pt-4">
|
2023-11-16 23:37:09 +00:00
|
|
|
<div class="p-4 border border-coolgray-500">
|
2023-12-07 18:06:32 +00:00
|
|
|
<form wire:submit='submit("newrelic")' class="flex flex-col">
|
2023-11-17 09:21:19 +00:00
|
|
|
<h3>New Relic</h3>
|
|
|
|
<div class="w-32">
|
|
|
|
<x-forms.checkbox instantSave='instantSave("newrelic")'
|
|
|
|
id="server.settings.is_logdrain_newrelic_enabled" label="Enabled" />
|
|
|
|
</div>
|
2023-11-16 23:37:09 +00:00
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
2024-02-11 13:31:21 +00:00
|
|
|
@if ($server->isLogDrainEnabled())
|
|
|
|
<x-forms.input disabled type="password" required
|
|
|
|
id="server.settings.logdrain_newrelic_license_key" label="License Key" />
|
|
|
|
<x-forms.input disabled required id="server.settings.logdrain_newrelic_base_uri"
|
|
|
|
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
|
|
|
|
<x-forms.input type="password" required id="server.settings.logdrain_newrelic_license_key"
|
|
|
|
label="License Key" />
|
|
|
|
<x-forms.input required id="server.settings.logdrain_newrelic_base_uri"
|
|
|
|
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
|
2023-11-16 23:37:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex justify-end gap-4 pt-6">
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Save
|
|
|
|
</x-forms.button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-11-23 11:44:08 +00:00
|
|
|
|
|
|
|
<h3>Axiom</h3>
|
2023-11-16 23:37:09 +00:00
|
|
|
<div class="w-32">
|
2023-11-23 11:44:08 +00:00
|
|
|
<x-forms.checkbox instantSave='instantSave("axiom")' id="server.settings.is_logdrain_axiom_enabled"
|
|
|
|
label="Enabled" />
|
2023-11-16 23:37:09 +00:00
|
|
|
</div>
|
2023-12-07 18:06:32 +00:00
|
|
|
<form wire:submit='submit("axiom")' class="flex flex-col">
|
2023-11-16 23:37:09 +00:00
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
2024-02-11 13:31:21 +00:00
|
|
|
@if ($server->isLogDrainEnabled())
|
|
|
|
<x-forms.input disabled type="password" required id="server.settings.logdrain_axiom_api_key"
|
|
|
|
label="API Key" />
|
|
|
|
<x-forms.input disabled required id="server.settings.logdrain_axiom_dataset_name"
|
|
|
|
label="Dataset Name" />
|
|
|
|
@else
|
|
|
|
<x-forms.input type="password" required id="server.settings.logdrain_axiom_api_key"
|
|
|
|
label="API Key" />
|
|
|
|
<x-forms.input required id="server.settings.logdrain_axiom_dataset_name"
|
|
|
|
label="Dataset Name" />
|
|
|
|
@endif
|
2023-11-16 23:37:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex justify-end gap-4 pt-6">
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Save
|
|
|
|
</x-forms.button>
|
2023-11-17 09:21:19 +00:00
|
|
|
</div>
|
2023-11-23 11:44:08 +00:00
|
|
|
</form>
|
|
|
|
{{-- <h3>Highlight.io</h3>
|
2023-11-17 09:21:19 +00:00
|
|
|
<div class="w-32">
|
2023-11-23 11:44:08 +00:00
|
|
|
<x-forms.checkbox instantSave='instantSave("highlight")'
|
|
|
|
id="server.settings.is_logdrain_highlight_enabled" label="Enabled" />
|
2023-11-17 09:21:19 +00:00
|
|
|
</div>
|
2023-12-07 18:06:32 +00:00
|
|
|
<form wire:submit='submit("highlight")' class="flex flex-col">
|
2023-11-17 09:21:19 +00:00
|
|
|
<div class="flex flex-col gap-4">
|
|
|
|
<div class="flex flex-col w-full gap-2 xl:flex-row">
|
2023-11-23 11:44:08 +00:00
|
|
|
<x-forms.input type="password" required id="server.settings.logdrain_highlight_project_id"
|
|
|
|
label="Project Id" />
|
2023-11-17 09:21:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex justify-end gap-4 pt-6">
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Save
|
2023-11-16 23:37:09 +00:00
|
|
|
</x-forms.button>
|
|
|
|
</div>
|
2023-11-23 11:44:08 +00:00
|
|
|
</form> --}}
|
2023-12-01 10:13:58 +00:00
|
|
|
<h3>Custom FluentBit configuration</h3>
|
|
|
|
<div class="w-32">
|
|
|
|
<x-forms.checkbox instantSave='instantSave("custom")' id="server.settings.is_logdrain_custom_enabled"
|
|
|
|
label="Enabled" />
|
|
|
|
</div>
|
2023-12-07 18:06:32 +00:00
|
|
|
<form wire:submit='submit("custom")' class="flex flex-col">
|
2023-12-01 10:13:58 +00:00
|
|
|
<div class="flex flex-col gap-4">
|
2024-02-11 13:31:21 +00:00
|
|
|
@if ($server->isLogDrainEnabled())
|
|
|
|
<x-forms.textarea disabled rows="6" required id="server.settings.logdrain_custom_config"
|
|
|
|
label="Custom FluentBit Configuration" />
|
|
|
|
<x-forms.textarea disabled id="server.settings.logdrain_custom_config_parser"
|
|
|
|
label="Custom Parser Configuration" />
|
|
|
|
@else
|
|
|
|
<x-forms.textarea rows="6" required id="server.settings.logdrain_custom_config"
|
|
|
|
label="Custom FluentBit Configuration" />
|
|
|
|
<x-forms.textarea id="server.settings.logdrain_custom_config_parser"
|
|
|
|
label="Custom Parser Configuration" />
|
|
|
|
@endif
|
|
|
|
|
2023-12-01 10:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex justify-end gap-4 pt-6">
|
|
|
|
<x-forms.button type="submit">
|
|
|
|
Save
|
|
|
|
</x-forms.button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2023-11-16 23:37:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|