cargo fmt
This commit is contained in:
@@ -243,10 +243,9 @@ impl Detection {
|
|||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
let eid = get_serde_number_to_string(&record_info.record["Event"]["System"]["EventID"])
|
let eid = get_serde_number_to_string(&record_info.record["Event"]["System"]["EventID"])
|
||||||
.unwrap_or_else(|| "-".to_owned());
|
.unwrap_or_else(|| "-".to_owned());
|
||||||
let default_output = match DEFAULT_DETAILS
|
let default_output = match DEFAULT_DETAILS.get(&format!("{}_{}", provider, &eid)) {
|
||||||
.get(&format!("{}_{}", provider, &eid)) {
|
Some(str) => str.to_owned(),
|
||||||
Some(str) => str.to_owned(),
|
None => recinfo.as_ref().unwrap_or(&"-".to_string()).to_string(),
|
||||||
None => recinfo.as_ref().unwrap_or(&"-".to_string()).to_string(),
|
|
||||||
};
|
};
|
||||||
let opt_record_info = if configs::CONFIG.read().unwrap().args.full_data {
|
let opt_record_info = if configs::CONFIG.read().unwrap().args.full_data {
|
||||||
recinfo
|
recinfo
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ pub fn create_rec_info(data: Value, path: String, keys: &[String]) -> EvtxRecord
|
|||||||
// EvtxRecordInfoを作る
|
// EvtxRecordInfoを作る
|
||||||
let data_str = data.to_string();
|
let data_str = data.to_string();
|
||||||
let rec_info = Option::Some(create_recordinfos(&data));
|
let rec_info = Option::Some(create_recordinfos(&data));
|
||||||
|
|
||||||
EvtxRecordInfo {
|
EvtxRecordInfo {
|
||||||
evtx_filepath: path,
|
evtx_filepath: path,
|
||||||
record: data,
|
record: data,
|
||||||
|
|||||||
Reference in New Issue
Block a user