{% extends "admin/base_site.html" %} {% load i18n %} {% block title %}{% translate "Log viewer" %}{% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{% if log_notice %}

{{ log_notice }}

{% endif %}

{% translate "Operational logs dashboard" %}

{% translate "Tracked files" %} {{ log_dashboard.total_files }}
{% translate "Total lines" %} {{ log_dashboard.total_lines }}

{% translate "Recommended aggregator" %}: {{ recommended_stack.name }} — {{ recommended_stack.summary }}

{% translate "Evaluate integration" %}

{% translate "Aggregator integration status" %}: {{ observability_status.status_label }}

{{ observability_status.status_help }}

{% if observability_status.grafana_url %}

{% translate "Open Grafana" %}

{% endif %}
{% if log_dashboard.level_rows %} {% for row in log_dashboard.level_rows %} {% endfor %}
{% translate "Recent severity totals (last 500 lines per file)" %}
{% translate "Level" %} {% translate "Count" %}
{{ row.level }} {{ row.count }}
{% endif %} {% if log_dashboard.file_rows %} {% for row in log_dashboard.file_rows %} {% endfor %}
{% translate "Per-file health snapshot" %}
{% translate "File" %} {% translate "Lines" %} {% translate "Warnings" %} {% translate "Errors" %} {% translate "Critical" %} {% translate "Last updated" %}
{{ row.name }} {{ row.line_count }} {{ row.recent_warning }} {{ row.recent_error }} {{ row.recent_critical }} {{ row.last_updated|default:'-' }}
{% endif %}
{% if log_error %}

{{ log_error }}

{% endif %} {% if selected_log and not log_error %} {% blocktranslate with name=selected_log asvar viewer_heading %}Viewing {{ name }}{% endblocktranslate %} {% translate 'Log copied to your clipboard.' as copy_success %} {% translate 'Copy failed. Use your browser copy command instead.' as copy_error %} {% translate 'Copy to clipboard' as copy_label %} {% if log_last_updated or log_full_path %}
{% if log_last_updated %}
{% translate "Last updated" %} {{ log_last_updated }}
{% endif %} {% if log_full_path %}
{% endif %}
{% endif %} {% with encoded_log=selected_log|urlencode %} {% with download_url="?log="|add:encoded_log|add:"&download=1" %} {% with viewer_prefix="system-log" viewer_wrapper_class="" viewer_heading=viewer_heading log_filename=selected_log log_download_url=download_url log_content=log_content copy_label=copy_label copy_success=copy_success copy_error=copy_error copy_status_class="log-viewer-status" copy_button_class="button button-secondary log-viewer-copy-button" content_class="log-viewer-content" hide_limit_slider=hide_limit_slider %} {% include "includes/log_viewer.html" %} {% endwith %} {% endwith %} {% endwith %} {% endif %}
{% endblock %}