Add journald format flag

Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver
2019-08-21 15:01:18 +01:00
parent 2d924b83fc
commit 48bccd34db
3 changed files with 11 additions and 4 deletions

View File

@ -1185,7 +1185,7 @@ Unsuccessful response:
Added in supervisor version v10.2.0
Retrieve a stream to the journald logs on device. This is
equivalent to running `journalctl -o export`. Options
equivalent to running `journalctl --no-pager`. Options
supported are:
##### all: boolean
@ -1203,6 +1203,11 @@ Show the most recent `count` events, equivalent to
Show journal logs from `unit` only, equivalent to
`journalctl --unit=<unit>`.
##### format
The format which will be streamed from journalctl, formats
are described here:
https://www.freedesktop.org/software/systemd/man/journalctl.html#-o
Fields should be provided via POST body in JSON format.
From an application container (with systemd installed):