issue57に伴うデグレの修正。検知したログの時間が取得できなくなった問題の修正
This commit is contained in:
@@ -120,8 +120,7 @@ impl Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_event_time(event_record: &Value) -> Option<DateTime<Utc>> {
|
fn get_event_time(event_record: &Value) -> Option<DateTime<Utc>> {
|
||||||
let system_time =
|
let system_time = &event_record["Event"]["System"]["TimeCreated_attributes"]["SystemTime"];
|
||||||
&event_record["Event"]["System"]["TimeCreated"]["#attributes"]["SystemTime"];
|
|
||||||
let system_time_str = system_time.as_str().unwrap_or("");
|
let system_time_str = system_time.as_str().unwrap_or("");
|
||||||
if system_time_str.is_empty() {
|
if system_time_str.is_empty() {
|
||||||
return Option::None;
|
return Option::None;
|
||||||
|
|||||||
Reference in New Issue
Block a user