Skip to main content

Overview

View and stream logs from your applications, containers, databases, and jobs.

Commands

Stream Logs

Stream real-time logs:
qovery log
Stream logs for specific service:
qovery log --application "app-id"
Follow logs with live updates:
qovery log --application "app-id" --follow
Filter logs by keyword:
qovery log --application "app-id" --filter "ERROR"

Historical Logs

Get logs from last hour:
qovery log --application "app-id" --since 1h
Get logs from specific time range:
qovery log \
  --application "app-id" \
  --from "2024-01-01T00:00:00Z" \
  --to "2024-01-01T23:59:59Z"
Get last N lines:
qovery log --application "app-id" --tail 100

Options

FlagDescription
--applicationApplication ID or name
--containerContainer ID or name
--databaseDatabase ID or name
--jobJob ID or name
--followFollow log output
--filterFilter logs by keyword
--sinceShow logs since duration (e.g., 1h, 30m)
--fromShow logs from timestamp (ISO 8601)
--toShow logs until timestamp (ISO 8601)
--tailNumber of lines to show from end
--helpShow help

Examples

Follow Application Logs

# Stream logs in real-time
qovery log --application "my-api" --follow

# Filter for errors
qovery log --application "my-api" --follow --filter "ERROR"

Debug Production Issues

# Get last hour of logs
qovery log \
  --application "my-api" \
  --since 1h \
  --filter "exception"

# Get specific time range
qovery log \
  --application "my-api" \
  --from "2024-12-01T10:00:00Z" \
  --to "2024-12-01T11:00:00Z"

View Database Logs

# Stream database logs
qovery log --database "postgres-main" --follow

View Job Logs

# View cronjob logs
qovery log --job "backup-job" --tail 50

Multiple Filters

# Combine flags for precise debugging
qovery log \
  --application "my-api" \
  --since 30m \
  --filter "ERROR" \
  --tail 100

Tips

Use --follow to monitor logs in real-time during deployments or debugging.
Combine --filter with error levels like “ERROR”, “WARN”, “FATAL” to quickly find issues.
The --since flag accepts: s (seconds), m (minutes), h (hours), d (days).