Skip to Content
dFlow
Applications

dflow apps:logs

Read the tailed pod logs for one application through the API.

This reads the recent container logs for one application through the API. --follow keeps streaming new lines, including after a redeploy. No logs yet. is success. The application is still running.

dflow apps:logs APP [--follow] [--tail N] [--container NAME] [--pods POD]

Flags

--follow keeps the stream open. --tail is how many recent lines to show first. The default is 500, from 1 to 5000. --container limits the output to one container. --pods limits it to one or more pod names from dflow apps:report. Leaving --pods off reads every replica. The usual global flags still apply.

What you see

Each line looks like pod container | line. A bearer token in a line is printed as [redacted]. An empty result prints No logs yet.

--follow streams new lines. A container started by a redeploy joins that same stream. A line dropped because the client fell behind prints [truncated]. --follow with --output json prints one JSON object per line.

Exit 0 includes an empty result. The application keeps running.

When it fails

--tail below 1 or above 5000 exits 1 before a request. Exit 1 is validation. Exit 2 is auth, including a 401 during --follow, which stops the stream. Exit 3 means the application was not found. Exit 7 is Ctrl-C or a terminate signal during --follow. Exit 10 means the API could not be reached.

How is this guide?

Last updated on