Dokploy / Dokploy/cli

Add `app logs` command for viewing application logs

Open
#23 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
152
Forks
46
PR merge metrics
No merged PRs in 30d

Description

It would be useful to have a CLI command for viewing application logs directly from the terminal, similar to docker service logs.

Proposed feature

A new dokploy app logs command that supports:

  • Fetching recent logs with configurable --tail count
  • Live streaming with --follow (-f)
  • Time-based filtering with --since (e.g. 30m, 1h, 2d, all)
  • Keyword filtering with --search
  • Non-interactive usage via --applicationId, --projectId, --environmentId flags
  • Interactive project/environment/application selection when flags are omitted

Implementation notes

  • Uses the existing /docker-container-logs WebSocket endpoint for log streaming
  • Tries Docker Swarm mode first, falls back to native containers
  • For Dokploy Cloud instances where WebSocket is unavailable, falls back to SSH-based docker service logs

Example usage

$ dokploy app logs                           # interactive selection
$ dokploy app logs -a myAppId -f             # stream logs
$ dokploy app logs -a myAppId --since 1h     # logs from last hour
$ dokploy app logs -a myAppId --search error # filter by keyword

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the existing app command entry point and inspect the /docker-container-logs WebSocket endpoint, including the Swarm and native-container behavior described here. Done means app logs supports the listed selection, filtering, follow, and identifier flags, with the SSH-based fallback for Dokploy Cloud instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript
Domain
cli, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.