{% extends "base.html" %} {% block content %}

VPN Session Details

← Back to all logs

API Endpoints

Get log content via API: /api/log-content/{{ filename }}

Gateway: {{ gateway }}

Timestamp: {{ timestamp.strftime('%Y-%m-%d %H:%M:%S UTC') if timestamp else 'Unknown' }}

Filename: {{ filename }}

Log Content

{% if parsed_rows %}
{% for col in columns %} {% endfor %} {% for row in parsed_rows %} {% if 'Index' in columns %} {% endif %} {% if 'User' in columns %} {% endif %} {% if 'Group' in columns %} {% endif %} {# VPN Login Users fields #} {% if 'Auth Type' in columns %} {% endif %} {% if 'Timeout' in columns %} {% endif %} {% if 'Auth-Timeout' in columns %} {% endif %} {% if 'From' in columns %} {% endif %} {% if 'HTTP in/out' in columns %} {% endif %} {% if 'HTTPS in/out' in columns %} {% endif %} {% if 'Two-factor Auth' in columns %} {% endif %} {# VPN Sessions fields #} {% if 'Source IP' in columns %} {% endif %} {% if 'Duration' in columns %} {% endif %} {% if 'I/O Bytes' in columns %} {% endif %} {% if 'Tunnel/Dest IP' in columns %} {% endif %} {% endfor %}
{{ col }}
{{ row.index }}{{ row.user.strip() if row.user else "" }}{{ row.group.strip() if row.group else "" }}{{ row.auth_type.strip() if row.auth_type else "" }}{{ row.timeout.strip() if row.timeout else "" }}{{ row.auth_timeout.strip() if row.auth_timeout else "" }}{{ row.from_ip.strip() if row.from_ip else "" }}{{ row.http.strip() if row.http else "" }}{{ row.https.strip() if row.https else "" }}{{ row.two_factor.strip() if row.two_factor else "" }}{{ row.source_ip.strip() if row.source_ip else "" }}{{ row.duration.strip() if row.duration else "" }}{{ row.io_bytes.strip() if row.io_bytes else "" }}{{ (row.tunnel_dest_ip.strip() if row.tunnel_dest_ip else "") }}
{% else %}
{{ raw_content }}
{% endif %} {% endblock %}