pub struct SyslogAuditBackend { /* private fields */ }Expand description
Syslog audit backend for centralized audit logging.
Sends audit events to a remote syslog server via UDP using RFC 3164 format. Syslog backend does not store events locally - it acts as a forwarding sink.
Implementations§
Source§impl SyslogAuditBackend
impl SyslogAuditBackend
Sourcepub fn with_facility(self, facility: SyslogFacility) -> Self
pub fn with_facility(self, facility: SyslogFacility) -> Self
Set the syslog facility to use
Sourcepub fn with_app_name(self, app_name: impl Into<String>) -> Self
pub fn with_app_name(self, app_name: impl Into<String>) -> Self
Set the application name
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the socket timeout
Trait Implementations§
Source§impl AuditBackend for SyslogAuditBackend
impl AuditBackend for SyslogAuditBackend
Source§fn log_event<'life0, 'async_trait>(
&'life0 self,
event: AuditEvent,
) -> Pin<Box<dyn Future<Output = AuditResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn log_event<'life0, 'async_trait>(
&'life0 self,
event: AuditEvent,
) -> Pin<Box<dyn Future<Output = AuditResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Log an audit event to syslog.
Source§fn query_events<'life0, 'async_trait>(
&'life0 self,
_filters: AuditQueryFilters,
) -> Pin<Box<dyn Future<Output = AuditResult<Vec<AuditEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_events<'life0, 'async_trait>(
&'life0 self,
_filters: AuditQueryFilters,
) -> Pin<Box<dyn Future<Output = AuditResult<Vec<AuditEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query audit events from syslog backend.
Syslog backend does not support querying - events are sent to syslog server for centralized storage and querying there. This returns an empty vector to indicate no local storage.
Source§impl Clone for SyslogAuditBackend
impl Clone for SyslogAuditBackend
Source§fn clone(&self) -> SyslogAuditBackend
fn clone(&self) -> SyslogAuditBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyslogAuditBackend
impl RefUnwindSafe for SyslogAuditBackend
impl Send for SyslogAuditBackend
impl Sync for SyslogAuditBackend
impl Unpin for SyslogAuditBackend
impl UnsafeUnpin for SyslogAuditBackend
impl UnwindSafe for SyslogAuditBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more