{% from "partials/_macros.html" import card_header, pagination_bar %}
{{ card_header("log summary โ€” top sources & errors") }} {% if summary %}{{ summary.total }} group(s){% endif %}
{% if summary %} {# ----- filter bar ----- #}
{% endif %} {% if summary and summary.groups %} {# ----- totals strip ----- #}
{% set sm = summary.summary %}
{{ sm.groups }}
groups
{{ sm.errors }}
errors
{{ sm.warnings }}
warnings
{{ sm.lines }}
lines
{% for g in summary.groups %} {% endfor %}
# {{ summary.group_by }} occurrences errors warnings last seen
{{ (summary.page - 1) * summary.per_page + loop.index }}
{{ g.key }}
{% if summary.group_by == 'message' %}
{{ g.unit_label }} ยท {{ g.source_label }}
{% elif summary.group_by == 'unit' %}
{{ g.source_label }}
{% endif %}
{{ g.count }} {{ g.errors }} {{ g.warnings }} {{ g.last[11:19] if g.last else 'โ€”' }}
{{ pagination_bar("log-summary", summary.page, summary.total_pages, summary.total, summary.groups|length, summary.per_page, per_page_options) }} {% elif summary %}
no logs captured in the latest run yet โ€” the log collector needs journalctl or readable files under /var/log.
{% else %}
no run yet.
{% endif %}