fix issue#57

This commit is contained in:
ichiichi11
2021-02-25 23:04:12 +09:00
parent 631dda679a
commit 3e1c4a2942

View File

@@ -5,7 +5,7 @@ use crate::detections::rule;
use crate::detections::rule::RuleNode;
use crate::yaml::ParseYaml;
use evtx::err;
use evtx::{EvtxParser, SerializedEvtxRecord};
use evtx::{EvtxParser, SerializedEvtxRecord, ParserSettings};
use serde_json::{Error, Value};
use std::path::PathBuf;
@@ -66,6 +66,9 @@ impl Detection {
}
})
.map(|mut cur| {
let mut parse_config = ParserSettings::default();
parse_config = parse_config.separate_json_attributes(true);
cur = cur.with_configuration(parse_config);
let ret: Vec<err::Result<SerializedEvtxRecord<String>>> =
cur.records_json().collect();
return ret;