Log monitoring for all OpenCloud services and components with flexible filtering.
| UID | opencloud-logs |
| Datasource | Loki |
| Refresh | auto |
- Monitor error rates across all services
- Debug application-level issues by component
- Track down warnings and errors in specific components
- Search logs by text pattern
- Analyze log volume patterns
Not for: HTTP request analysis → use Proxy instead
Start from: Overview for quick health check
{service=~"$service", level=~"$level"} | json | service_extracted=~"$component"
| Label | Source | Description |
|---|---|---|
service |
Docker Compose | Container service name (e.g., opencloud, collaboration) |
level |
Log JSON | Log level (error, warn, info, debug) |
| Field | Description | Example |
|---|---|---|
service_extracted |
OpenCloud component | proxy, graph, storage-users |
message |
Log message | request completed |
proxy, gateway, frontend, graph, ocdav, ocm, sharing
storage-system, storage-users, storage-shares, storage-publiclink
auth-service, auth-app, auth-basic, auth-machine
users, groups, idm, idp, settings, notifications
postprocessing, thumbnails, antivirus, search
app-provider, app-registry, collaboration
activitylog, clientlog, userlog, eventhistory
nats, sse, webfinger, invitations, policies, audit
| Variable | Type | Default | Description |
|---|---|---|---|
| Service | Multi-select (query) | opencloud | Docker Compose service names |
| Component | Multi-select | All | OpenCloud internal components |
| Log Level | Multi-select (query) | All | error, warn, info, debug |
| Search | Text | (empty) | Case-insensitive text search |
error # Logs containing "error"
user@example.com # Logs for specific user
spaceid # Space-related logs
quota # Quota-related logs
timeout # Timeout errors
| Panel | Shows | Thresholds |
|---|---|---|
| Log Volume by Level | Stacked bars over time | red=error, orange=warn, blue=info, gray=debug |
| Error Count | Total errors in time range | green <10, yellow <100, red ≥100 |
| Warning Count | Total warnings in time range | green <50, yellow <200, orange ≥200 |
| Total Logs | Total log lines in time range | blue (info) |
| Error Rate | % of error logs | green <1%, yellow <5%, red ≥10% |
| Panel | Shows |
|---|---|
| Logs by Service | Pie chart: Docker service distribution |
| Logs by Component | Pie chart: OpenCloud component distribution |
| Top Components by Errors | Components ranked by error count |
| Log Volume by Component | Component activity over time |
| Panel | Shows |
|---|---|
| Logs | Live log stream with full JSON details |
- Set Component filter (e.g.,
graph) - Set Log Level to
error - Review Log Volume by Level for timing
- Check Logs panel for details
- Enter username or email in Search filter
- Set Log Level to
errorandwarn - Check Top Components by Errors for affected components
- Review Logs for the sequence of events
- Keep all filters at default (All)
- Watch Error Count and Error Rate
- Check Top Components by Errors for problem areas
- Investigate spikes in Log Volume by Level
- Select multiple components in Component filter
- Review Logs by Component pie chart for distribution
- Check Log Volume by Component for patterns over time
- Enter error message pattern in Search filter
- Set Log Level to
error - Review matching logs in Logs panel
- Click entries to expand full JSON
- Set Component to
activitylog - Set Log Level to
errorandwarn - → For deep dive: Activitylog Debug
- Check if OpenCloud containers are running
- Verify Loki is receiving logs from Alloy
- Try setting all filters to "All"
- Components are extracted from JSON field
service - Verify OpenCloud logs include this field
- Check Logs by Component to see available components
- Search is case-insensitive regex
- Try simpler patterns
- Check if the text appears in the JSON log structure
- Narrow time range
- Add component or level filters
- Use search to filter by text
| Dashboard | Datasource | Use for |
|---|---|---|
| Overview | Prometheus | Quick health check (start here) |
| Proxy | Loki | HTTP access logs, request analysis |
| Uploads | Prometheus | File upload pipeline |
| Activitylog Debug | Loki | Activity feed debugging |