๐ Server logs

The Server Logs view provides detailed insight into the SkyView backend operation. It displays system messages, component startup and shutdown information, runtime status updates, etc - all useful for diagnosing issues and verifying normal operation.
To view the serverโs activity and error history, select the Logs from the main menu:

Features:
- Search and Filter โ Use the Search bar at the top to quickly locate specific entries or keywords.
- Severity Levels โ Each log entry includes a level label such as:
- INFO โ informational messages (e.g., startup, configuration events)
- WARNING โ non-critical issues
- ERROR โ critical problems or failures
- Refresh and Clear Controls:
- REFRESH updates the log view to include the latest messages.
- CLEAR LOGS removes all entries from the view (useful when troubleshooting to see only new events).
- Timestamps โ Each entry includes a precise timestamp for accurate sequencing.
Only users with admin privileges can view the logs.
User Activity Logsโ
The User Activity Logs table provides a detailed table of user actions and connection events. This log helps administrators monitor access and usage patterns for security and auditing purposes.
The table displays the following columns:
- Time: The timestamp of the event.
- User: The username or account associated with the activity.
- Event: The type of action or event (e.g., login, logout, etc).
- Client ID: The unique identifier for the client session.
- City: The detected city of the clientโs IP address.
- Country: The detected country of the clientโs IP address.
- IP: The IP address from which the user connected.
- Browser: The browser or client software used to access the system.
Client IPs behind a reverse proxyโ
SkyView reads X-Forwarded-For only when the connection comes through a trusted proxy. By default, only loopback proxies (127.0.0.0/8 and ::1/128) are trusted. The native Linux and Jetson Compose overlays connect Caddy to the backend over loopback. The Vite development proxy forwards client addresses for both HTTP and WebSocket connections.
For a remote proxy or Docker bridge deployment, set SKY_VIEW_TRUSTED_PROXIES to a comma-separated list of the proxy IP addresses or CIDRs as seen by the backend. For example, 127.0.0.0/8,::1/128,172.18.0.5/32 also trusts a proxy at 172.18.0.5. Restart the backend after changing this setting. Use none to ignore forwarding headers entirely. Invalid entries prevent startup.
Configure the edge proxy to overwrite incoming forwarding headers or append the actual connecting address. Trust only your proxy addresses; trusting an entire client LAN would allow clients to forge their logged IP. SkyView walks the forwarded chain from the backend outward and uses the first address outside the trusted proxy ranges.
Check new activity after reconnecting the browser. Existing records retain their original IP and location. City and country require a publicly routable client IP and a successful geolocation lookup; loopback and private LAN addresses have no public geolocation.
Geolocation uses HTTPS requests to ipapi.co, with ipwho.is as a fallback when the primary lookup fails or is rate limited. Successful locations are cached for one hour. Each provider attempt is limited to 900 ms so the fallback can run within the activity log's two-second lookup budget. Failed providers are paused for 30 seconds; HTTP 429 responses use Retry-After, or five minutes when that header is absent. Server logs report these failures with the [GeoIP] prefix. Invalid, empty, or error responses are never cached as successful locations. If both providers are unavailable, the activity is still recorded with its IP and an empty location.
Log File and Syslog Configurationโ
SkyView uses two different storage paths for log-related information:
- The Server Logs view reads the backend structured log file.
- The User Activity Logs view reads a separate BoltDB activity database.
This means syslog support does not replace the normal server log file, and it does not replace the user activity database. Syslog is an additional output for backend log messages.
Standard Log Fileโ
The backend log file is controlled by these environment variables:
SKY_VIEW_LOG_PATH: Path to the structured log file shown in the Server Logs view.SKY_VIEW_LOG_MAX_SIZE_MB: Maximum size of the active log file before rotation.SKY_VIEW_LOG_MAX_BACKUPS: Number of rotated log files to keep.SKY_VIEW_LOG_MAX_AGE_DAYS: Maximum age of rotated log files. Use0to keep them indefinitely.SKY_VIEW_FORCE_FILE_LOG: When enabled, messages that would normally be console-only are still written to durable log outputs.
The server continues to write logs to stdout and to the configured log file. The UI log page reads from the file path configured by SKY_VIEW_LOG_PATH.
Optional Syslog Outputโ
Syslog can be enabled when you want a second copy of backend log messages to be forwarded to a local or remote syslog service.
SKY_VIEW_SYSLOG_ENABLED: Enables syslog output when set totrue.SKY_VIEW_SYSLOG_NETWORK: Optional network for remote syslog, such asudportcp.SKY_VIEW_SYSLOG_ADDRESS: Optional remote syslog address, such as192.168.1.50:514.SKY_VIEW_SYSLOG_TAG: Tag written with syslog messages. Default:skyview.SKY_VIEW_SYSLOG_FACILITY: Syslog facility. Supported values areuser,daemon, andlocal0throughlocal7.
If SKY_VIEW_SYSLOG_ENABLED=true and both SKY_VIEW_SYSLOG_NETWORK and SKY_VIEW_SYSLOG_ADDRESS are left empty, SkyView uses the local syslog service on supported Unix systems.
If SKY_VIEW_SYSLOG_NETWORK and SKY_VIEW_SYSLOG_ADDRESS are set, SkyView sends the same backend log messages to that remote syslog target as well.
User Activity Log Storageโ
User activity records are configured separately and are not affected by syslog:
SKY_VIEW_USERS_DB_PATH: BoltDB file for user activity events such as login, logout, and connection records.
If you also use stream event history, that remains separate as well:
SKY_VIEW_STREAM_EVENTS_DB_PATH: BoltDB file for per-stream online duration data.
Exampleโ
SKY_VIEW_LOG_PATH=/data/skyview.log
SKY_VIEW_LOG_MAX_SIZE_MB=10
SKY_VIEW_LOG_MAX_BACKUPS=5
SKY_VIEW_LOG_MAX_AGE_DAYS=30
SKY_VIEW_SYSLOG_ENABLED=true
SKY_VIEW_SYSLOG_NETWORK=udp
SKY_VIEW_SYSLOG_ADDRESS=192.168.1.50:514
SKY_VIEW_SYSLOG_TAG=skyview
SKY_VIEW_SYSLOG_FACILITY=local0
With this configuration:
- The Server Logs page still reads from
/data/skyview.log. - SkyView also sends the same backend log messages to the remote syslog receiver.
- User activity entries continue to be stored in the activity database, not in syslog.