Octov0.11.17
Referenceoctopaas CLI

octopaas logs

Read or follow what a deployment logs

Read a deployment's logs three ways:

- By default, its stored history: newest last, across every pod it has had,
  filtered with --level, --grep and --since. --all pages through everything.
- With --tail, the last lines its pods wrote, straight from the cluster.
- With --follow, its pods' logs live, line by line, until you press Ctrl-C.
  The platform ends a stream after thirty minutes; octopaas reconnects.

--pod narrows tail and follow to one pod; without it every pod is read, each with its own colour.

octopaas logs <deployment> [flags]

Examples

octopaas logs billing --since 1h --level ERROR
octopaas logs billing --grep invoice --all -o json
octopaas logs billing --tail 100
octopaas logs billing -f

Flags

FlagWhat it doesDefault
--allpage through every matching entry, not only the newest page
--greponly messages containing this text
--levelonly this level: DEBUG, INFO, WARN or ERROR
--limitentries per page (at most 1000)200
--podonly this pod (tail and follow)
--sinceonly entries newer than this, such as 30m or 24h0s
--tailthe last N lines from the cluster; with --follow, how many to start with
-f, --followstream new lines as they are written