table of contents
- bookworm 252.30-1~deb12u2
- bookworm-backports 254.16-1~bpo12+1
- testing 256.7-2
- unstable 256.7-2
SYSTEMD-JOURNAL-GATEWAYD.SERVICE(8) | systemd-journal-gatewayd.service | SYSTEMD-JOURNAL-GATEWAYD.SERVICE(8) |
NAME¶
systemd-journal-gatewayd.service, systemd-journal-gatewayd.socket, systemd-journal-gatewayd - HTTP server for journal events
SYNOPSIS¶
systemd-journal-gatewayd.service
systemd-journal-gatewayd.socket
/usr/lib/systemd/systemd-journal-gatewayd [OPTIONS...]
DESCRIPTION¶
systemd-journal-gatewayd serves journal events over the network. Clients must connect using HTTP. The server listens on port 19531 by default. If --cert= is specified, the server expects HTTPS connections.
The program is started by systemd(1) and expects to receive a single socket. Use systemctl start systemd-journal-gatewayd.socket to start the service, and systemctl enable systemd-journal-gatewayd.socket to have it started on boot.
OPTIONS¶
The following options are understood:
--cert=
Added in version 198.
--key=
Added in version 198.
--trust=
Added in version 236.
--system, --user
Added in version 249.
-m, --merge
Added in version 249.
-D DIR, --directory=DIR
Added in version 232.
--file=GLOB
Added in version 249.
-h, --help
--version
SUPPORTED URLS¶
The following URLs are recognized:
/browse
Added in version 197.
/entries[?option1&option2=value...]
The Accept: part of the HTTP header determines the format. Supported values are described below.
The Range: part of the HTTP header determines the range of events returned. Supported values are described below.
GET parameters can be used to modify what events are returned. Supported parameters are described below.
Added in version 197.
/machine
Example:
{ "machine_id" : "8cf7ed9d451ea194b77a9f118f3dc446",
"boot_id" : "3d3c9efaf556496a9b04259ee35df7f7",
"hostname" : "fedora",
"os_pretty_name" : "Fedora 19 (Rawhide)",
"virtualization" : "kvm",
...}
Added in version 197.
/fields/FIELD_NAME
Added in version 197.
ACCEPT HEADER¶
Accept: format
Recognized formats:
text/plain
Added in version 197.
application/json
Added in version 197.
text/event-stream
Added in version 229.
application/vnd.fdo.journal
Added in version 197.
RANGE HEADER¶
Range: entries=cursor[[:num_skip]:num_entries]
Range: realtime=[since]:[until][[:num_skip]:num_entries]
where cursor is a cursor string, since and until are timestamps (seconds since 1970-01-01 00:00:00 UTC), num_skip is an integer, num_entries is an unsigned integer.
Range defaults to all available events.
URL GET PARAMETERS¶
Following parameters can be used as part of the URL:
follow
Added in version 197.
discrete
Added in version 197.
boot
Added in version 197.
KEY=match
Added in version 197.
EXAMPLES¶
Retrieve events from this boot from local journal in Journal Export Format[3]:
curl --silent -H'Accept: application/vnd.fdo.journal' \
'http://localhost:19531/entries?boot'
Listen for core dumps:
SEE ALSO¶
systemd(1), journalctl(1), systemd.journal-fields(7), systemd-journald.service(8), systemd-journal-remote.service(8), systemd-journal-upload.service(8)
NOTES¶
- 1.
- Journal JSON Format
- 2.
- Server-Sent Events
- 3.
- Journal Export Format
systemd 256.7 |