aiosyslogd Log Viewer

SQLite Log Search Interface

Advanced Filters

{% set toggle_sql_args = request.args.to_dict() %} {% if show_sql %} {% do toggle_sql_args.update({'show_sql': '0'}) %} Hide Executed SQL {% else %} {% do toggle_sql_args.update({'show_sql': '1'}) %} Show Executed SQL {% endif %}
{% if show_sql and debug_query %}

Executed SQL Query

{{ debug_query }}
{% endif %} {% if total_logs is not none %}
Found {{ "{:,}".format(total_logs) }} matching logs {% if query_time is not none %} in {{ "%.3f"|format(query_time) }}s. {% endif %}
{% endif %} {% if error %} {% elif logs %}
{% for log in logs %}
ID: {{ log.ID }}
Received At: {{ log.ReceivedAt.strftime('%Y-%m-%d %H:%M:%S') }}
From Host: {{ log.FromHost }}
Message:

{{ log.Message }}

{% endfor %}
{# Optional: Add a header for the desktop view #}
{% else %}

No logs found. Try adjusting your search.

{% endif %}
{% if page_info.has_prev_page %} {% set prev_args = request.args.to_dict() %} {# FIX: Explicitly set direction to 'prev' #} {% do prev_args.update({'last_id': page_info.prev_last_id, 'direction': 'prev'}) %} Previous {% endif %}
{% if page_info.has_next_page %} {% set next_args = request.args.to_dict() %} {# FIX: Explicitly set direction to 'next' #} {% do next_args.update({'last_id': page_info.next_last_id, 'direction': 'next'}) %} Next {% endif %}