mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-17 23:08:14 +00:00
Add journald format flag
Change-type: minor Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user