1podman-pod-logs(1)()                                      podman-pod-logs(1)()
2
3
4

NAME

6       podman-pod-logs - Displays logs for pod with one or more containers
7
8

SYNOPSIS

10       podman pod logs [options] pod
11
12

DESCRIPTION

14       The  podman  pod logs command batch-retrieves whatever logs are present
15       with all the containers of a pod. Pod logs can be filtered by container
16       name or id using flag -c or --container if needed.
17
18
19       Note:  Long  running  command  of  podman pod log with a -f or --follow
20       needs to be reinvoked if new container is added to the pod  dynamically
21       otherwise  logs  of  newly added containers would not be visible in log
22       stream.
23
24

OPTIONS

26   --container, -c
27       By default podman pod logs retrives logs for all the containers  avail‐
28       able within the pod differentiate by field container. However there are
29       use-cases where user would want to limit the log stream only to a  par‐
30       ticular  container  of  a pod for such cases -c can be used like podman
31       pod logs -c ctrNameorID podname.
32
33
34   --follow, -f
35       Follow log output.  Default is false.
36
37
38       Note: If you are following a pod which is removed podman pod  rm,  then
39       there  is  a  chance the the log file will be removed before podman pod
40       logs reads the final content.
41
42
43   --latest, -l
44       Instead of providing the pod name or id, get logs of the  last  created
45       pod. (This option is not available with the remote Podman client)
46
47
48   --since=TIMESTAMP
49       Show  logs  since TIMESTAMP. The --since option can be Unix timestamps,
50       date formatted timestamps, or Go duration  strings  (e.g.  10m,  1h30m)
51       computed  relative  to the client machine's time. Supported formats for
52       date   formatted   time   stamps    include    RFC3339Nano,    RFC3339,
53       2006-01-02T15:04:05,  2006-01-02T15:04:05.999999999,  2006-01-02Z07:00,
54       and 2006-01-02.
55
56
57   --until=TIMESTAMP
58       Show logs until TIMESTAMP. The --until option can be  Unix  timestamps,
59       date  formatted  timestamps,  or  Go duration strings (e.g. 10m, 1h30m)
60       computed relative to the client machine's time. Supported  formats  for
61       date    formatted    time    stamps   include   RFC3339Nano,   RFC3339,
62       2006-01-02T15:04:05,  2006-01-02T15:04:05.999999999,  2006-01-02Z07:00,
63       and 2006-01-02.
64
65
66   --tail=LINES
67       Output  the  specified  number  of LINES at the end of the logs.  LINES
68       must be an integer.  Defaults to -1, which prints all lines
69
70
71   --timestamps, -t
72       Show timestamps in the log outputs.  The default is false
73
74

EXAMPLE

76       To view a pod's logs:
77
78
79              podman pod logs -t podIdorName
80
81
82
83       To view logs of a specific container on the pod
84
85
86              podman pod logs -c ctrIdOrName podIdOrName
87
88
89
90       To view all pod logs:
91
92
93              podman pod logs -t --since 0 myserver-pod-1
94
95
96
97       To view a pod's logs since a certain time:
98
99
100              podman pod logs -t --since 2017-08-07T10:10:09.055837383-04:00 myserver-pod-1
101
102
103
104       To view a pod's logs generated in the last 10 minutes:
105
106
107              podman pod logs --since 10m myserver-pod-1
108
109
110
111       To view a pod's logs until 30 minutes ago:
112
113
114              podman pod logs --until 30m myserver-pod-1
115
116
117

SEE ALSO

119       podman(1), podman-pod-start(1), podman-pod-rm(1), podman-logs(1)
120
121
122
123                                                          podman-pod-logs(1)()
Impressum