Skip to main content

LogEntry

Struct LogEntry 

Source
pub struct LogEntry {
Show 48 fields pub id: u64, pub line_number: u32, pub message: String, pub component: Option<String>, pub timestamp: Option<i64>, pub timestamp_display: Option<String>, pub severity: Severity, pub thread: Option<u32>, pub thread_display: Option<String>, pub source_file: Option<String>, pub format: LogFormat, pub file_path: String, pub timezone_offset: Option<i32>, pub error_code_spans: Vec<ErrorCodeSpan>, pub ip_address: Option<String>, pub host_name: Option<String>, pub mac_address: Option<String>, pub result_code: Option<String>, pub gle_code: Option<String>, pub setup_phase: Option<String>, pub operation_name: Option<String>, pub http_method: Option<String>, pub uri_stem: Option<String>, pub uri_query: Option<String>, pub status_code: Option<u16>, pub sub_status: Option<u16>, pub time_taken_ms: Option<u64>, pub client_ip: Option<String>, pub server_ip: Option<String>, pub user_agent: Option<String>, pub server_port: Option<u16>, pub username: Option<String>, pub win32_status: Option<u32>, pub query_name: Option<String>, pub query_type: Option<String>, pub response_code: Option<String>, pub dns_direction: Option<String>, pub dns_protocol: Option<String>, pub source_ip: Option<String>, pub dns_flags: Option<String>, pub dns_event_id: Option<u32>, pub zone_name: Option<String>, pub entry_kind: Option<EntryKind>, pub whatif: Option<bool>, pub section_name: Option<String>, pub section_color: Option<String>, pub iteration: Option<String>, pub tags: Option<Vec<String>>,
}
Expand description

A single parsed log entry. Field names use camelCase for direct JSON serialization to TypeScript.

Fields§

§id: u64

Sequential ID for stable row identity

§line_number: u32

1-based line number in the source file

§message: String

The log message text

§component: Option<String>

Component name (up to 100 chars in CCM format)

§timestamp: Option<i64>

Unix timestamp in milliseconds (for sorting/merging)

§timestamp_display: Option<String>

Formatted display string: “MM-dd-yyyy HH:mm:ss.fff”

§severity: Severity

Severity level

§thread: Option<u32>

Thread ID as a number

§thread_display: Option<String>

Thread display string: “N (0xNNNN)”

§source_file: Option<String>

Source file attribute (CCM format only)

§format: LogFormat

Which format was used to parse this entry

§file_path: String

Path to the file this entry came from

§timezone_offset: Option<i32>

Timezone offset in minutes

§error_code_spans: Vec<ErrorCodeSpan>

Spans of recognized error codes within the message text

§ip_address: Option<String>

IP address (DHCP logs)

§host_name: Option<String>

Host/device name (DHCP logs)

§mac_address: Option<String>

MAC address (DHCP logs)

§result_code: Option<String>

Primary result/error code extracted from the message (Panther logs) e.g. from “Result = 0x80070490”, “Error: 0x80070002”, “Status: 0xC000000F”

§gle_code: Option<String>

GetLastError code from “[gle=0x…]” (Panther logs)

§setup_phase: Option<String>

Windows setup phase name (Panther logs) e.g. “SetupPhaseInstall”, “SetupPhasePrepare”, “SetupPhaseFinalize”

§operation_name: Option<String>

Setup operation being executed or completed (Panther logs) e.g. “Apply Drivers”, “Mount WIM file”, “Set Language Settings”

§http_method: Option<String>

HTTP method (IIS W3C logs)

§uri_stem: Option<String>

URI stem/path (IIS W3C logs)

§uri_query: Option<String>

URI query string without the leading ‘?’ (IIS W3C logs)

§status_code: Option<u16>

HTTP response status code (IIS W3C logs)

§sub_status: Option<u16>

HTTP response sub-status code (IIS W3C logs)

§time_taken_ms: Option<u64>

Request duration in milliseconds (IIS W3C logs)

§client_ip: Option<String>

Client/source IP address (IIS W3C logs)

§server_ip: Option<String>

Server/listener IP address (IIS W3C logs)

§user_agent: Option<String>

HTTP user agent (IIS W3C logs)

§server_port: Option<u16>

Server/listener port (IIS W3C logs)

§username: Option<String>

Authenticated username (IIS W3C logs)

§win32_status: Option<u32>

Win32 status code (IIS W3C logs)

§query_name: Option<String>

DNS query name, decoded from wire-format (DNS logs)

§query_type: Option<String>

DNS query type name: A, AAAA, SRV, etc. (DNS logs)

§response_code: Option<String>

DNS response code: NOERROR, NXDOMAIN, etc. (DNS logs)

§dns_direction: Option<String>

Packet direction: Snd or Rcv (DNS debug log)

§dns_protocol: Option<String>

Transport protocol: UDP or TCP (DNS debug log)

§source_ip: Option<String>

Remote IP address, optionally with port (DNS logs)

§dns_flags: Option<String>

DNS header flags as hex string (DNS debug log)

§dns_event_id: Option<u32>

DNS event ID for EVTX-sourced entries (DNS audit)

§zone_name: Option<String>

DNS zone name (DNS audit)

§entry_kind: Option<EntryKind>

Entry role — distinguishes sections, iterations, and headers from normal log lines

§whatif: Option<bool>

WhatIf/simulation flag (CmtLog)

§section_name: Option<String>

Section label for Section entries (CmtLog)

§section_color: Option<String>

Optional color hint associated with a section (CmtLog)

§iteration: Option<String>

Iteration identifier for Iteration entries (CmtLog)

§tags: Option<Vec<String>>

Arbitrary tag list attached to a log entry (CmtLog)

Trait Implementations§

Source§

impl Clone for LogEntry

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LogEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for LogEntry

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for LogEntry

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.