sp logs

View and tail logs for any running service.

Usage

bash
sp logs <service>
sp logs <service> --tail 100

Options

FlagDescription
--tail NShow the last N lines (default: 50)

Examples

bash
# See the last 50 lines of Mautic logs
sp logs mautic

# Follow n8n logs in real time (last 100 lines)
sp logs n8n --tail 100

# Check Cal.com startup logs
sp logs calcom --tail 200

Available service names

mautic, mysql, n8n, postgres, calcom, pocketbase, adminer

What to look for

  • Mautic errors: PHP fatal errors, Symfony exceptions, database connection failures
  • n8n errors: Workflow execution failures, webhook timeouts, memory issues
  • MySQL/Postgres errors: Connection refused, disk full, lock timeouts
  • Cal.com errors: Missing environment variables, database migration failures

If a service is crashing on startup, sp logs <service> --tail 200 usually shows the reason in the last few lines.