Logging
Stackpad provides a unified logging pipeline that collects, stores, and searches logs from all your services. Logs are available in real time from the dashboard.
How logging works
Stackpad’s logging pipeline consists of:
- Collection — Vector runs on every compute node and collects stdout/stderr from all containers
- Enrichment — logs are tagged with organization, project, service, and deployment metadata
- Storage — logs are stored in ClickHouse, a high-performance analytics database
- Query — the dashboard queries ClickHouse for filtered, searchable log views
All components run on European infrastructure — your logs never leave the EU.
Viewing logs
From the dashboard
- Open your project
- Click on a service
- Select the Logs tab
You’ll see a real-time log stream with:
- Timestamp — when the log line was emitted
- Log level — info, warn, error, etc. (if structured)
- Message — the log content
Filtering
The log viewer supports multiple filter types that can be combined:
| Filter | Options | Default |
|---|---|---|
| Time range | 15 minutes, 1 hour, 6 hours, 24 hours, 7 days | 1 hour |
| Log level | Debug, Info, Warn, Error, All | All |
| Service | Any specific service or all | All |
| Replica | Specific replica index or all (for scaled services) | All |
| Text search | Free-text keyword search (debounced) | — |
Filters are applied server-side, so even with a large log volume, you only see what’s relevant.
Real-time streaming
The log viewer uses Server-Sent Events (SSE) to stream new log lines instantly as they’re written — no polling or manual refresh needed. New lines appear in real-time with:
- Color-coded levels — errors in red, warnings in yellow, info in default, debug in muted
- Auto-scroll — follows new output by default, disables when you scroll up
- Connection indicator — shows when the SSE connection is active
This is useful for:
- Watching deployment progress
- Debugging errors in real time
- Monitoring application behavior
- Tailing cron job output
Build logs
Deployment build logs are stored separately from runtime logs. To view build logs:
- Go to the Deployments tab
- Click on a specific deployment
- Build logs show the full output of the build process
Build logs are useful for debugging:
- Failed builds
- Slow builds
- Missing dependencies
Log retention
| Plan | Retention |
|---|---|
| Starter | 7 days |
| Pro | 30 days |
| Business | 90 days |
Logs older than the retention period are automatically deleted.
What’s next?
- Git push deploy — understand the deployment pipeline
- Web shell — open a terminal to debug interactively
- Rollbacks — debug failed deployments
- Troubleshooting — common issues and how to fix them