{# Log viewer (R7.4, Hani #1 2026-10-24): filters, newest first, live until paused; rows expand to the full message. #} {% set lv = log_view %}{% set f = lv.filters %}{% set res = lv.result %}
{% set lc = lv.counts or {} %}{% set counting = lv.counts is none %}{% set qp = request.query_params if request is defined else {} %} {# R59.2: lines per class in the period; a class is a filter #} {% include "_per_day_chart.html" %} {% if qp.get('normal_done') %}
Marked normal: lines like it from this device now count as Expected.
{% elif qp.get('normal_error') %}
{{ qp.get('normal_error') }}
{% endif %}
{% if lv.scope == 'device' %}{% endif %} {% if lv.devices %}{% endif %}
{% if f.ip or f.mac or f.iface or f.text or f.category or f.life or f.level != 'all' or f.device %}Clear filters{% endif %}
Live Download
{% if res.error %}
{{ res.error }}
{% endif %} {% set back = lv.back %}{% if is_admin %}{% with bar_id='bulk-logs' %}{% include "_address_bulk_bar.html" %}{% endwith %}{% endif %}
{% if is_admin %}{% endif %}{% if lv.scope != 'device' %}{% endif %}{% if is_admin %}{% endif %} {% import "_ai_analysis.html" as ai with context %}{% set AIG = ai_analysis(res.rows|map(attribute='src_ip')|select|list) if is_admin else {} %}{% for r in res.rows %}{% if is_admin %}{% endif %}{% if lv.scope != 'device' %}{% endif %}{% if is_admin %}{% endif %}{% endfor %}
Time (UTC) {{ fresh_tag("logs:web-lines") }}DeviceLevelCategoryClassFromToMessageActions
{% if r.src_ip %}{% endif %}{{ r.shown_at|replace('T', ' ')|replace('Z', '') }}{% if r.asset_id %}{{ r.device }}{% else %}{{ r.device }}{% endif %}{{ r.level or '—' }}{{ r.category }}{{ lv.classes.get(r.life, r.life) }}{% if is_admin and r.asset_id and r.life in ('unknown', 'device') %} {% endif %}{% if r.src_ip %}{{ r.src_ip }}{% if is_admin %}›{% endif %}{% if r.src_port %}:{{ r.src_port }}{% endif %}{% if is_admin %}{{ ai.inline(AIG.get(r.src_ip), r.src_ip, False) }}{% endif %}{% endif %}{% if r.src_mac %}
{% endif %}{% if r.in_iface %}
{% endif %}
{% if r.dst_ip %}{{ r.dst_ip }}{% if is_admin %}›{% endif %}{% if r.dst_port %}:{{ r.dst_port }}{% endif %}{% endif %}{% if r.dst_mac %}
{% endif %}{% if r.out_iface %}
{% endif %}{% if r.protocol %}
{% endif %}
{% if r.app_name %} {% endif %}{{ r.message }}{% with address=r.src_ip, no_analyse=True %}{% include "_address_row_actions.html" %}{% endwith %}

No messages for these filters yet.{% if lv.scope == 'device' %} If the device does not send its log yet, set it up under Tools › Logs.{% endif %}

{% if is_admin %}

This is normal?

Lines like this one from (same program, same text with addresses, numbers and times left out) will count as Expected. Expected lines are kept the shortest time (R59.5). Attacks can never be marked normal.

Lines marked normal ({{ lv.normal_rules|length }}) {% if lv.normal_rules %}
{% for n in lv.normal_rules %}{% endfor %}
DeviceProgramLines likeByRemove
{{ n.device }}{{ n.app_name or '—' }}{{ n.sample }}{{ n.created_by }} · {{ n.created_at[:10] }}
{% else %}

None yet. Press Normal? on a line of a device to add one.

{% endif %}
{% endif %} {% if is_admin %}{% with act_asset_id=(lv.scope_id if lv.scope == 'device' else none) %}{% include "_address_shared_dialogs.html" %}{% endwith %}{% endif %}

Select a row to see the whole message. Acting on messages - notices, blocking an address, if-then rules - follows in R8.