Add `app logs` command for viewing application logs
Open
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
--tailcount - 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,--environmentIdflags - Interactive project/environment/application selection when flags are omitted
Implementation notes
- Uses the existing
/docker-container-logsWebSocket 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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