Accessing Live Logs
This guide explains how to use Live Logs to view real-time container logs from all your DevSpaces applications and services.
Overviewβ
Live Logs provides a centralized web interface to monitor all Docker container logs in real-time. This is extremely useful for debugging, monitoring application behavior, and quickly identifying issues across multiple containers.
Powered by Dozzle, it offers real-time log streaming, search, and multi-container viewing.
Installing Live Logs Serviceβ
Install the livelogs service:
dvs service install livelogs
Once installed, the web interface is accessible at:
https://livelogs.svc.dvs.sh
Featuresβ
Real-time Log Streamingβ
- Logs are streamed in real-time via Server-Sent Events (SSE)
- No page refresh needed - new logs appear automatically
- Minimal resource usage (~4 MB memory)
Multi-Container Viewβ
- View logs from all containers in a single interface
- Containers grouped by type: Apps, Database, Tools, Proxy
- Split-screen mode to compare logs from multiple containers
- Quick container switching via sidebar
Search and Filterβ
- Fuzzy search across container names
- Regex search within logs
- Filter by log level or content
Container Statsβ
- Live CPU and memory usage per container
- Quick health status overview
Use Casesβ
Debugging Application Errorsβ
When your application throws an error:
- Open Live Logs
- Select your application container
- Search for error messages or stack traces
- View logs before and after the error to understand the context
Monitoring Multiple Servicesβ
When running a complex stack (app + database + cache):
- Use split-screen mode to view multiple containers
- Correlate events across services
- Identify cascading failures
Quick Container Inspectionβ
Instead of running docker logs or dvs logs repeatedly:
- Keep Live Logs open in a browser tab
- Switch between containers instantly
- Use search to find specific events
Limitationsβ
- No log persistence: Logs are not stored, only real-time viewing
- stdout/stderr only: Cannot access file-based logs inside containers
- No offline search: Cannot search historical logs
For persistent log analysis, export logs with docker logs > file.log.
Troubleshootingβ
Interface Not Loadingβ
If the Live Logs interface doesn't load:
- Verify the service is running:
dvs status - Start the service if needed:
dvs service start livelogs - Check for browser SSL certificate warnings
Containers Not Appearingβ
If some containers don't appear:
- Verify containers are running:
docker ps - Check that containers are on the DevSpaces network
Slow Log Streamingβ
If logs appear delayed:
- Check if you're behind a reverse proxy that buffers SSE
- Reduce the number of open container tabs
Next Stepsβ
- Learn how to access HTTP Log for API debugging
- Learn how to access Mailpit for email testing
- Learn how to use phpMyAdmin for database management