journal

package
v1.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Cursor                  string `json:"__CURSOR"`
	RealtimeTimestamp       string `json:"__REALTIME_TIMESTAMP"`
	MonotonicTimestamp      string `json:"__MONOTONIC_TIMESTAMP"`
	BootID                  string `json:"_BOOT_ID"`
	Priority                string `json:"PRIORITY"`
	MachineID               string `json:"_MACHINE_ID"`
	Hostname                string `json:"_HOSTNAME"`
	SyslogFacility          string `json:"SYSLOG_FACILITY"`
	SyslogIdentifier        string `json:"SYSLOG_IDENTIFIER"`
	UID                     string `json:"_UID"`
	GID                     string `json:"_GID"`
	Transport               string `json:"_TRANSPORT"`
	Codefile                string `json:"CODE_FILE"`
	Codeline                string `json:"CODE_LINE"`
	Codefunction            string `json:"CODE_FUNCTION"`
	MessageID               string `json:"MESSAGE_ID"`
	Result                  string `json:"RESULT"`
	PID                     string `json:"_PID"`
	Comm                    string `json:"_COMM"`
	EXE                     string `json:"_EXE"`
	CmdLine                 string `json:"_CMDLINE"`
	CapEffective            string `json:"_CAP_EFFECTIVE"`
	SystemDCGroup           string `json:"_SYSTEMD_CGROUP"`
	SystemDUnit             string `json:"_SYSTEMD_UNIT"`
	SystemDSlice            string `json:"_SYSTEMD_SLICE"`
	Unit                    string `json:"UNIT"`
	Message                 string `json:"MESSAGE"`
	SourceRealtimeTimestamp string `json:"_SOURCE_REALTIME_TIMESTAMP"`
	SystemDInvocationID     string `json:"_SYSTEMD_INVOCATION_ID"`
}

func GetJournalEntriesForUnitFromCursor added in v1.0.9

func GetJournalEntriesForUnitFromCursor(unit, cursor string) []Entry

GetJournalEntriesForUnitFromCursor gets a list of journal entries in JSON format for the given unit. It gets all journal entries from the given cursor (or from the beginning if the cursor is empty)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL