pub struct SystemdJournaldEvent {Show 14 fields
pub pid: Option<u32>,
pub tid: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub prio: Option<u32>,
pub tag: Option<String>,
pub message: Option<String>,
pub comm: Option<String>,
pub exe: Option<String>,
pub systemd_unit: Option<String>,
pub hostname: Option<String>,
pub transport: Option<String>,
pub num_total: Option<u64>,
pub num_failed: Option<u64>,
}Expand description
A journald log event packet, collected from the Linux systemd journal. Emitted by the “linux.systemd_journald” data source in traced_probes. Next field id: 13, statistics starting at 20
Fields§
§pid: Option<u32>_PID: PID of the process that wrote the log entry (trusted).
tid: Option<u32>_TID: thread ID of the logging thread (trusted, set by journald for native journal protocol entries). Absent for syslog, stdout-piped, and kernel entries.
uid: Option<u32>_UID: user ID of the process (trusted).
gid: Option<u32>_GID: group ID of the process (trusted).
prio: Option<u32>PRIORITY: syslog priority level 0 (EMERG) .. 7 (DEBUG).
tag: Option<String>SYSLOG_IDENTIFIER: program name / tag, set by the logging application.
message: Option<String>MESSAGE: the human-readable log message text.
comm: Option<String>_COMM: short process name as known to the kernel (trusted).
exe: Option<String>_EXE: full executable path (trusted).
systemd_unit: Option<String>_SYSTEMD_UNIT: the systemd unit that owns this process (trusted).
hostname: Option<String>_HOSTNAME: hostname of the machine (trusted).
transport: Option<String>_TRANSPORT: how the entry was received by journald (trusted). Values: “audit”, “driver”, “syslog”, “journal”, “stdout”, “kernel”.
num_total: Option<u64>These statistics emitted once on Flush()
num_failed: Option<u64>Implementations§
Source§impl SystemdJournaldEvent
impl SystemdJournaldEvent
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Returns the value of message, or the default value if message is unset.
Sourcepub fn systemd_unit(&self) -> &str
pub fn systemd_unit(&self) -> &str
Returns the value of systemd_unit, or the default value if systemd_unit is unset.
Sourcepub fn hostname(&self) -> &str
pub fn hostname(&self) -> &str
Returns the value of hostname, or the default value if hostname is unset.
Sourcepub fn transport(&self) -> &str
pub fn transport(&self) -> &str
Returns the value of transport, or the default value if transport is unset.
Sourcepub fn num_total(&self) -> u64
pub fn num_total(&self) -> u64
Returns the value of num_total, or the default value if num_total is unset.
Sourcepub fn num_failed(&self) -> u64
pub fn num_failed(&self) -> u64
Returns the value of num_failed, or the default value if num_failed is unset.
Trait Implementations§
Source§impl Clone for SystemdJournaldEvent
impl Clone for SystemdJournaldEvent
Source§fn clone(&self) -> SystemdJournaldEvent
fn clone(&self) -> SystemdJournaldEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SystemdJournaldEvent
impl Debug for SystemdJournaldEvent
Source§impl Default for SystemdJournaldEvent
impl Default for SystemdJournaldEvent
Source§impl Hash for SystemdJournaldEvent
impl Hash for SystemdJournaldEvent
Source§impl Message for SystemdJournaldEvent
impl Message for SystemdJournaldEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SystemdJournaldEvent
impl PartialEq for SystemdJournaldEvent
Source§fn eq(&self, other: &SystemdJournaldEvent) -> bool
fn eq(&self, other: &SystemdJournaldEvent) -> bool
self and other values to be equal, and is used by ==.