diff options
author | Qi Wang <qiwan@redhat.com> | 2019-05-20 17:23:03 -0400 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-08-02 11:47:43 -0400 |
commit | 0ad374af6a7552a68736e68fd4093809844a171f (patch) | |
tree | e6c6e68a399b510c2718f76acf813f763967a7f3 /docs | |
parent | 3cc9ab8992833ddf952df479ffb239c61845fa2e (diff) | |
download | podman-0ad374af6a7552a68736e68fd4093809844a171f.tar.gz podman-0ad374af6a7552a68736e68fd4093809844a171f.tar.bz2 podman-0ad374af6a7552a68736e68fd4093809844a171f.zip |
podman events format json
Enable podman events to format the output as jsonline
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/podman-events.1.md | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/podman-events.1.md b/docs/podman-events.1.md index 2097bb1f9..ed3faedfd 100644 --- a/docs/podman-events.1.md +++ b/docs/podman-events.1.md @@ -68,7 +68,7 @@ Print usage statement. **--format** -Format the output using the given Go template. An output value of *json* is not supported. +Format the output to JSON Lines or using the given Go template. **--filter**=*filter* @@ -134,6 +134,13 @@ $ sudo podman events --since 5m 2019-03-02 10:44:42.374637304 -0600 CST pod create ca731231718e (image=, name=webapp) ``` +Show podman events in JSON Lines format +``` +events --format json +{"ID":"683b0909d556a9c02fa8cd2b61c3531a965db42158627622d1a67b391964d519","Image":"localhost/myshdemo:latest","Name":"agitated_diffie","Status":"cleanup","Time":"2019-04-27T22:47:00.849932843-04:00","Type":"container"} +{"ID":"a0f8ab051bfd43f9c5141a8a2502139707e4b38d98ac0872e57c5315381e88ad","Image":"docker.io/library/alpine:latest","Name":"friendly_tereshkova","Status":"unmount","Time":"2019-04-28T13:43:38.063017276-04:00","Type":"container"} +``` + ## SEE ALSO podman(1) |