pub struct EventLog { /* private fields */ }Expand description
Handle to an opened event log or log file.
Implementations§
Source§impl EventLog
impl EventLog
Sourcepub fn open(channel_name: &str) -> Result<Self>
pub fn open(channel_name: &str) -> Result<Self>
Open an event log channel by name.
Examples: “Security”, “System”, “Application”, “Windows PowerShell”, etc.
Sourcepub fn open_file(path: &Path) -> Result<Self>
pub fn open_file(path: &Path) -> Result<Self>
Open an event log file (.evtx, .evt, or .etl format).
Sourcepub fn list_channels() -> Result<Vec<String>>
pub fn list_channels() -> Result<Vec<String>>
List available event log channels.
Sourcepub fn list_channels_filtered(filter: ChannelFilter) -> Result<Vec<String>>
pub fn list_channels_filtered(filter: ChannelFilter) -> Result<Vec<String>>
List event log channels with a specific filter.
Sourcepub fn query(&self, builder: &QueryBuilder) -> Result<EventQueryResult>
pub fn query(&self, builder: &QueryBuilder) -> Result<EventQueryResult>
Query events using a query builder.
This returns all matching events at once. For large result sets,
prefer query_stream() with batch processing.
Sourcepub fn query_stream(&self, xpath: &str) -> Result<EventQuery>
pub fn query_stream(&self, xpath: &str) -> Result<EventQuery>
Query events in a streaming fashion with batch processing.
Returns an EventQuery handle for batch iteration with buffer reuse.
Use query_stream() for processing large logs efficiently.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventLog
impl RefUnwindSafe for EventLog
impl Send for EventLog
impl Sync for EventLog
impl Unpin for EventLog
impl UnsafeUnpin for EventLog
impl UnwindSafe for EventLog
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