Skip to main content

Traffic Statistics

Traffic data is automatically saved to files named like traffic_username.json.

Example

{
"username": "user1",
"ip": "192.168.1.100",
"last_bytes_sent": 1024,
"last_bytes_received": 2048,
"total_bytes_sent": 1048576,
"total_bytes_received": 2097152,
"total_bytes": 3145728,
"last_timestamp": "2025-01-15T10:30:00Z"
}

Field Meanings

FieldMeaning
usernameAccount name
ipAssociated client IP
last_bytes_sentBytes sent in the latest observed window/session snapshot
last_bytes_receivedBytes received in the latest observed window/session snapshot
total_bytes_sentCumulative bytes sent
total_bytes_receivedCumulative bytes received
total_bytesCombined cumulative traffic
last_timestampLast update timestamp

Persistence Cadence

Traffic data is persisted periodically (about every 10 seconds) so operators can inspect usage even after sessions end.