ntopng/scripts/plugins/endpoints/syslog_alert_endpoint/templates/syslog_endpoint.template
Simone Mainardi 1dce9e5842 Migrates to Bootstrap 5
Adds bootstrap-5.0.0-beta3-dist

Adds bootstrap-5.0.0

Updates bootstrap-5.0.0-beta3-dist to bootstrap-5.0.0-dist

initial migration to bs v5

porting to bs5

improvements on dropdown menu filter

fixed host map dropdown

removed excessive padding

fix button toggle

re-add blog news

removed text decoration for links

fix button layout (#5348)

remove underscore from href (#5347)
2021-05-18 11:39:59 +02:00

66 lines
2.2 KiB
Text

<div class="mb-3 row">
<label class="col-form-label col-sm-3">
<b>{{ i18n("syslog_alert_endpoint.alert_format") }}</b>
</label>
<div class="col-sm-5">
<select name="syslog_alert_format" class="form-select" required>
<option value="plaintext">{{ i18n("syslog_alert_endpoint.text") }}</option>
<option value="plaintextrfc">{{ i18n("syslog_alert_endpoint.text") }} (RFC 5424)</option>
<option value="json">Raw JSON</option>
{%
if ntop.isEnterpriseM() then
%}
<option value="ecs">ECS</option>
{%
end
%}
</select>
</div>
</div>
<div class="mb-3 row">
<label class="col-form-label col-sm-3">
{{ i18n("syslog_alert_endpoint.host") }}
</label>
<div class="col-sm-5">
<input
data-validation-message="{{ i18n('syslog_alert_endpoint.validation.invalid_host') }}"
data-pattern="host" name="syslog_host" type="text" class="form-control" />
<small class="text-muted">{{ i18n("optional_field") }}</small>
</div>
</div>
<div class="mb-3 row">
<label class="col-form-label col-sm-3">
{{ i18n("syslog_alert_endpoint.port") }}
</label>
<div class="col-sm-5">
<input
data-validation-message="{{ i18n('syslog_alert_endpoint.validation.invalid_port') }}"
data-pattern="port" name="syslog_port" value="514" type="text" class="form-control" />
<small class="text-muted">{{ i18n("optional_field") }}</small>
</div>
</div>
<div class="mb-3 row">
<label class="col-form-label col-sm-3">
<b>{{ i18n("syslog_alert_endpoint.protocol") }}</b>
</label>
<div class="col-sm-5">
<select name="syslog_protocol" class="form-select">
<option value="udp">UDP</option>
<option value="tcp">TCP</option>
</select>
<small class="text-muted">{{ i18n("optional_field") }}</small>
</div>
</div>
<small>
<ul>
<li> {* i18n('syslog_alert_endpoint.description') *}</li>
<li> {* i18n('syslog_alert_endpoint.description_ecs', {url = "https://www.ntop.org/guides/ntopng/alerts/available_recipients.html#elasticsearch", icon = "fas fa-external-link-alt"}) *}</li>
<li> {* i18n('syslog_alert_endpoint.description_raw_json', {url = "https://github.com/ntop/ntopng/", icon = "fas fa-external-link-alt"}) *}</li>
</ul>
</small>