{# plugins/syslog/templates/syslog/source.html — one source's kept lines, newest first, under a filter bar: severity and worse, app, text, time (#6000). The table loads further pages as the reader scrolls. #} {% extends "base.html" %} {% from "_macros.html" import crumbs, page_header %} {% block title %}{{ source.name }} — Syslog — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Syslog", "/plugins/syslog/"), (source.name, "")]) }}{% endblock %} {% block content %} {% call page_header(source.name, source.address) %} {% if session.user_role == 'admin' %}Edit{% endif %} {% endcall %}
{%- if source.state != 'accepted' %}Not added: its lines are counted, not kept. {%- else %}{{ "{:,}".format(source.rate or 0) }} line{{ "s" if source.rate != 1 }} in the last hour{% endif %} · last heard {{ source.last_seen_at|ago }} {%- if source.host %} · on {{ source.host.name }}{% endif %} {%- if source.hostname_seen and source.hostname_seen != source.name %} · calls itself {{ source.hostname_seen }}{% endif %}