{# plugins/syslog/templates/syslog/pattern_form.html — a pattern's phrases, severity, source and window, and Remove (#6001). #} {% extends "base.html" %} {% from "_macros.html" import crumbs, page_header %} {% set heading = ("Edit " ~ pattern.name) if pattern else "New pattern" %} {% block title %}{{ heading }} — Syslog — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Syslog", "/plugins/syslog/"), ("Patterns", "/plugins/syslog/patterns"), (pattern.name if pattern else "New", "")]) }}{% endblock %} {% block content %} {{ page_header(heading) }}
{% if error %}{% endif %}
{{ csrf_field() }}

Pattern

{% if pattern %}Alert rules watch {{ pattern.metric }}, which stays as it is when the name changes.{% endif %}
One per line. A line matches if it contains any of them, in any case. Leave empty to count every line at the severity below.
The count is of matches this far back, so an alert on it clears this long after the last one.
Cancel
{% if pattern %}

Remove

Stops counting. An alert rule on it then reads no data.

{{ csrf_field() }}
{% endif %}
{% endblock %}