{% extends "layout2.html" %} {% load i18n %} {% load static %} {% block css_include %} {% endblock %} {% block js_include %} {% endblock %} {% block content %}
{% csrf_token %}

 {% translate "Elasticsearch Log forwarder" %}

{# Print form errors correctly #} {% if form.non_field_errors %}

Form errors

{{ form.non_field_errors|safe }}
{% endif %} {# If there is save/configuration errors #} {% if save_error %} {% endif %}
{{form.enabled}} {{form.enabled.errors|safe}}
{{form.name}} {{form.name.errors|safe}}
{{form.servers}} {{form.servers.errors|safe}}
{{form.es8_compatibility}} {{form.es8_compatibility.errors|safe}}
{{form.data_stream_mode}} {{form.data_stream_mode.errors|safe}}
{{form.retry_on_els_failures}} {{form.retry_on_els_failures.errors|safe}}
{{form.index_pattern}} {{form.index_pattern.errors|safe}}
{{form.uid}} {{form.uid.errors|safe}}
{{form.pwd}} {{form.pwd.errors|safe}}
{{form.tls_profile}} {{form.tls_profile.errors|safe}}
{{form.send_as_raw}} {{form.send_as_raw.errors|safe}}
{{form.queue_size}} {{form.queue_size.errors|safe}}
{{form.dequeue_size}} {{form.dequeue_size.errors|safe}}
{{form.max_workers}} {{form.max_workers.errors|safe}}
{{form.queue_timeout_shutdown}} {{form.queue_timeout_shutdown.errors|safe}}
{{form.new_worker_minimum_messages}} {{form.new_worker_minimum_messages.errors|safe}}
{{form.worker_timeout_shutdown}} {{form.worker_timeout_shutdown.errors|safe}}
{{form.enable_retry}} {{form.enable_retry.errors|safe}}
{{form.enable_disk_assist}} {{form.enable_disk_assist.errors|safe}}
{{form.high_watermark}} {{form.high_watermark.errors|safe}}
{{form.low_watermark}} {{form.low_watermark.errors|safe}}
{{form.max_file_size}} {{form.max_file_size.errors|safe}}
{{form.max_disk_space}} {{form.max_disk_space.errors|safe}}
{{form.spool_directory}} {{form.spool_directory.errors|safe}}
{% endblock %} {% block jquery_code %} if (!String.prototype.endsWith) { String.prototype.endsWith = function(searchString, position) { var subjectString = this.toString(); if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) { position = subjectString.length; } position -= searchString.length; var lastIndex = subjectString.lastIndexOf(searchString, position); return lastIndex !== -1 && lastIndex === position; }; } $(function() { $('.select2').select2(); /* Switchery mandatory code */ var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch')); elems.forEach(function(html) { var switchery = new Switchery(html, { 'color': '#FA9834' }); }); $('#id_data_stream_mode').on('change', function(event) { if ($(this).is(':checked')) { $('.datastream-mode').show(); } else { $('.datastream-mode').hide(); if($('#id_retry_on_els_failures').is(':checked') ) { $('#id_retry_on_els_failures').click(); } } }).trigger('change'); $('#id_enable_retry').on('change', function(e){ if ($(this).is(':checked')) { $('#tab-queue').show(); } else { $('#tab-queue').hide(); } }).trigger('change'); $('#id_enable_disk_assist').on('change', function(e){ if ($(this).is(':checked')) { $('#tab-disk').show(); } else { $('#tab-disk').hide(); } }).trigger('change'); }); // end of function() {% endblock %}