diff --git a/src/detections/print.rs b/src/detections/print.rs index 5bfc235d..211b039a 100644 --- a/src/detections/print.rs +++ b/src/detections/print.rs @@ -120,8 +120,7 @@ impl Message { } fn get_event_time(event_record: &Value) -> Option> { - let system_time = - &event_record["Event"]["System"]["TimeCreated"]["#attributes"]["SystemTime"]; + let system_time = &event_record["Event"]["System"]["TimeCreated_attributes"]["SystemTime"]; let system_time_str = system_time.as_str().unwrap_or(""); if system_time_str.is_empty() { return Option::None;