{% extends "base.html" %} {% from "_log_levels.html" import log_levels_form %} {% block title %}Logs · NEXXVU{% endblock %} {% block scripts %}{% endblock %} {% block content %}
Settings
Syslog from the inventory's devices (UDP 514). A device is set up from its Tools › Logs; these settings apply to every ecosystem and device unless an ecosystem or a device has its own.
Logs are not available on this Portal.
{% else %} {% set r = syslog.receiver %}{% set st = r.stats or {} %} {% if tab == 'overview' %}{{ 'Listening on UDP 514' if r.running else 'Not running' }}
{% if not r.running %}Another program may use port 514 on this server, or the Portal was updated a moment ago.{% endif %}{% if r.running and st.tls %}{{ 'TLS on TCP 6514' if st.tls == 'listening' else 'TLS: ' ~ st.tls }} {{ fresh_tag("logs:tls") }}
{{ st.tls_connections or 0 }} TLS connection{{ '' if st.tls_connections == 1 else 's' }}{% if st.tls_open %}, {{ st.tls_open }} open now{% endif %}{% if st.tls_refused %} · {{ st.tls_refused }} refused (not an allowed sender){% endif %}{% if st.tls_failed %} · {{ st.tls_failed }} failed (TLS or framing{% if st.tls_last_error %}; last: {{ st.tls_last_error }}{% endif %}){% endif %}{% endif %}{{ st.accepted or 0 }} messages
{{ ((st.bytes or 0) / 1048576)|round(1) }} MB{% if st.started %} · since {{ st.started|replace('T', ' ')|replace('Z', ' UTC') }}{% endif %}{{ (st.dropped_public or 0) + (st.dropped_rate or 0) + (st.dropped_daily or 0) + (st.dropped_sources or 0) + syslog.last.over_limit + syslog.unknown|sum(attribute=1) }}
over a device's limits {{ (st.dropped_rate or 0) + (st.dropped_daily or 0) + syslog.last.over_limit }} · not in the inventory {{ syslog.unknown|sum(attribute=1) }} · public address {{ st.dropped_public or 0 }}{% if st.allowed_public is defined %} ({{ st.allowed_public }} approved internet device address{{ '' if st.allowed_public == 1 else 'es' }} accepted){% endif %}{% if st.allow_unreadable %}The receiver cannot read its list of approved internet devices ({{ st.allow_unreadable }}): their logs are dropped. Update this Portal.
{% endif %}{{ 'The data server' if syslog.remote else 'This Portal' }}
{{ syslog.local_count }} messages on the Portal{{ syslog.devices|selectattr('last_at')|list|length }}
See the devicesOpen the log viewer All devices, live. Each device also has a Logs tab, and each ecosystem a Logs page.
To have a device send its log here, open the device, then Tools › Logs: NEXXVU configures MikroTik, Ubuntu and Proxmox with the administrator account you enter for that step.
{% elif tab == 'rules' %}{% set rv = rules %} {% if not rv %}Rules are not available on this Portal.
{% else %} {% set back = '/settings/logs?tab=rules' %} {% if rv.pending %}| Address | Rule | Messages | When (UTC) | Last message | Decision | |
|---|---|---|---|---|---|---|
| {{ e.address }}{{ ai.inline(AIQ.get(e.address), e.address) }}{% if admin %} {% with address=e.address %}{% include "_address_row_actions.html" %}{% endwith %}{% endif %} | {{ e.rule_name }} | {{ e.count }} | {{ e.at|replace('T', ' ')|replace('Z', '') }} | {% if admin %}{% endif %} |
IF matching messages arrive N times within M minutes (per address, per device or in total) THEN NEXXVU acts: a notice, an e-mail to the administrators, watching the address, or blocking it - after your approval, or by itself if you choose. Each rule has a Preview of what it would have done with the logs already stored.
{% if rv.rules %}| Rule | If | Then | Fired | On |
|---|---|---|---|---|
| {{ r.name }} | {{ r['if'] }} | {{ r.then }} | {{ r.triggered }}{% if r.last_triggered_at %} {{ r.last_triggered_at|replace('T', ' ')|replace('Z', '') }}{% endif %} |
{% if admin %}{% else %}{{ 'On' if r.enabled else 'Off' }}{% endif %} |
No rule yet. Start from one of the examples under + New rule.
{% endif %} {% if rv.recent %}| When (UTC) | Rule | For | Messages | Actions | Status | Address actions | |
|---|---|---|---|---|---|---|---|
| {% if e.address %}{% endif %} | {{ e.at|replace('T', ' ')|replace('Z', '') }} | {{ e.rule_name }} | {% if e.address %}{{ e.address }}{{ ai.inline(AIX.get(e.address), e.address) }}{% else %}{{ e.group_key if e.group_key != e.asset_id else 'device' }}{% endif %} | {{ e.count }} | {{ e.actions|join(', ') }} | {{ e.status }}{% if e.decided_by %} by {{ e.decided_by }}{% endif %} | {% if admin and e.address %}{% with address=e.address %}{% include "_address_row_actions.html" %}{% endwith %}{% endif %} |
| Device | Sends from | Messages | Last message (UTC) | Own settings |
|---|---|---|---|---|
| {{ d.name }} | {{ d.address or '—' }} | {{ d.messages or 0 }} | {{ (d.last_at or 'none yet')|replace('T', ' ')|replace('Z', '') }} | {{ 'yes' if d.asset_id in own else '' }} |
No device sends its log yet. Set one up from the device's Tools › Logs.
{% endif %} {% if syslog.unknown %}These addresses send syslog here. Their messages are not kept until a device with this address is in the inventory.
| Address | Messages since the Portal started |
|---|---|
{{ address }} | {{ count }} |
With a data server connected, logs are stored in its logs database and kept as set on Data server › Logs; "Keep on the Portal" applies to what stays on the Portal. Documents logs follow Resources.