Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultHost = "http://localhost:19531"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Host string // contains filtered or unexported fields }
A Client is used for accessing the journal (through systemd-journal-gatewayd.service) Like http.DefaultClient, its zero value (DefaultClient) is a usable client that connects to localhost on the default port (http://localhost:19531)
func (*Client) Entries ¶
Entries will return a list of entries. If a non-nil filter is passed, any non-empty entries will be used to filter the query. For example, Entry{SYSTEMD_UNIT: "my-service.service"} will return only entries matching this unit name. Note that the systemd journal does not allow filtering on all journal field names.
type Entry ¶
type Entry struct { MESSAGE interface{} `json:"MESSAGE"` PRIORITY string `json:"PRIORITY"` SYSLOGFACILITY string `json:"SYSLOG_FACILITY"` SYSLOGIDENTIFIER string `json:"SYSLOG_IDENTIFIER"` AUDITLOGINUID string `json:"_AUDIT_LOGINUID"` AUDITSESSION string `json:"_AUDIT_SESSION"` BOOTID string `json:"_BOOT_ID"` CAPEFFECTIVE string `json:"_CAP_EFFECTIVE"` CMDLINE string `json:"_CMDLINE"` COMM string `json:"_COMM"` EXE string `json:"_EXE"` GID string `json:"_GID"` HOSTNAME string `json:"_HOSTNAME"` MACHINEID string `json:"_MACHINE_ID"` PID string `json:"_PID"` SELINUXCONTEXT string `json:"_SELINUX_CONTEXT"` SOURCEREALTIMETIMESTAMP string `json:"_SOURCE_REALTIME_TIMESTAMP"` SYSTEMDCGROUP string `json:"_SYSTEMD_CGROUP"` SYSTEMDOWNERUID string `json:"_SYSTEMD_OWNER_UID"` SYSTEMDSESSION string `json:"_SYSTEMD_SESSION"` SYSTEMDSLICE string `json:"_SYSTEMD_SLICE"` SYSTEMDUNIT string `json:"_SYSTEMD_UNIT"` TRANSPORT string `json:"_TRANSPORT"` UID string `json:"_UID"` CURSOR string `json:"__CURSOR"` MONOTONICTIMESTAMP string `json:"__MONOTONIC_TIMESTAMP"` REALTIMETIMESTAMP string `json:"__REALTIME_TIMESTAMP"` }
Click to show internal directories.
Click to hide internal directories.