table of contents
- bookworm 252.31-1~deb12u1
- bookworm-backports 254.16-1~bpo12+1
- testing 256.7-3
- unstable 257~rc2-3
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
/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=
--key=
--trust=
--system, --user
-m, --merge
-D DIR, --directory=DIR
--file=GLOB
-h, --help
--version
SUPPORTED URLS¶
The following URLs are recognized:
/browse
/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.
/machine
Example:
{ "machine_id" : "8cf7ed9d451ea194b77a9f118f3dc446",
"boot_id" : "3d3c9efaf556496a9b04259ee35df7f7",
"hostname" : "fedora",
"os_pretty_name" : "Fedora 19 (Rawhide)",
"virtualization" : "kvm",
...}
/fields/FIELD_NAME
ACCEPT HEADER¶
Accept: format
Recognized formats:
text/plain
application/json
text/event-stream
application/vnd.fdo.journal
RANGE HEADER¶
Range: entries=cursor[[:num_skip]:num_entries]
where cursor is a cursor string, 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
discrete
boot
KEY=match
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 252 |