Skip to main content

Documentation Index

Fetch the complete documentation index at: https://qovery-docs-ai-use-cases-highlight.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

View and stream logs from any service — application, container, database, or job — running on Qovery.

Commands

Stream Logs

Stream real-time logs:
qovery log
Stream logs for a specific service (regardless of its type):
qovery log --service "httpbin"
Follow logs with live updates:
qovery log --service "httpbin" --follow
Filter logs by keyword:
qovery log --service "httpbin" --filter "ERROR"

Historical Logs

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

Options

FlagDescription
--serviceService name — tries application, container, database, and job APIs until a match is found
--applicationTarget specifically an application
--containerTarget specifically a container
--databaseTarget specifically a database
--jobTarget specifically a job
--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 Service Logs

# Stream logs in real-time — works for any service type
qovery log --service "httpbin" --follow

# Filter for errors
qovery log --service "httpbin" --follow --filter "ERROR"

Debug Production Issues

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

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

View Database Logs

# Stream database logs — no need to specify the type
qovery log --service "postgres-main" --follow

View Job Logs

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

Multiple Filters

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

Tips

Use --service when you don’t know (or don’t want to specify) the type of your service. Qovery will try each API (application, container, database, job) until it finds a match. Use a specific flag (--application, --database, etc.) if you want to target a precise service type.
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).