Usage
uc log
Arguments
Names of services to view logs from. If not specified, shows logs from all services defined in the Compose file.
Flags
One or more Compose files to load service names from when no services are specified. Default:
compose.yaml-f, --follow
Continually stream new logs in real-time.
Filter logs by machine name or ID. Can be specified multiple times or as a comma-separated list.
Show logs generated on or after the given timestamp. Accepts relative duration, RFC 3339 date, or Unix timestamp.Examples:
--since 2m30s- 2 minutes 30 seconds ago--since 1h- 1 hour ago--since 2025-11-24- RFC 3339 date (midnight local time)--since 2024-05-14T22:50:00- RFC 3339 date/time (local)--since 2024-01-31T10:30:00Z- RFC 3339 date/time (UTC)--since 1763953966- Unix timestamp
Show the most recent logs and limit the number of lines shown per replica. Use
all to show all logs.Show logs generated before the given timestamp. Accepts the same formats as
--since.--utc
Print timestamps in UTC instead of local timezone.
Examples
View recent logs for a service
Stream logs in real-time
View logs from multiple services
View logs from all services in Compose file
Show last 20 lines per replica
Show all logs without line limit
View logs from a specific time range
View logs from specific machines
View logs with UTC timestamps
Log Format
Each log line shows:Color Coding
- Single service: Machine names are colored to differentiate machines
- Multiple services: Service names are colored to differentiate services
- Timestamps: Dimmed for readability
- Container IDs: Dimmed, showing first 5 characters
Time Filters
Relative Durations
View logs from the last hour:Absolute Timestamps
View logs from a specific date:Unix Timestamps
Following Logs
Stream logs in real-time from all replicas:- Monitoring deployments
- Debugging issues in real-time
- Watching application behavior
Ctrl+C to stop streaming.
Machine Filtering
View logs only from specific machines:Multiple Services
When viewing logs from multiple services, logs are merged and sorted by timestamp:Viewing All Services
View logs from all services in your Compose file:compose.yaml and shows logs from all of them.
Use Cases
Debugging Deployments
After deploying, watch logs to ensure everything starts correctly:Troubleshooting Errors
View recent logs to find errors:Monitoring Traffic
Stream logs to watch requests:Checking Specific Time Period
Investigate what happened during an incident:Related Commands
uc service ls- List servicesuc ps- List containersuc service exec- Execute commands in containers
