From 98a6ca8adc37a6a094410649fb80a1175bb00d4e Mon Sep 17 00:00:00 2001 From: DustInDark Date: Wed, 22 Dec 2021 18:15:34 +0900 Subject: [PATCH] adjust change field name from output to details in rule file #337 --- src/afterfact.rs | 2 +- src/detections/detection.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afterfact.rs b/src/afterfact.rs index a19a01b7..48a1d682 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -45,7 +45,7 @@ pub fn after_fact() { let mut displayflag = false; let mut target: Box = - if let Some(csv_path) = configs::CONFIG.read().unwrap().args.value_of("output") { + if let Some(csv_path) = configs::CONFIG.read().unwrap().args.value_of("details") { // ファイル出力する場合 match File::create(csv_path) { Ok(file) => Box::new(BufWriter::new(file)), diff --git a/src/detections/detection.rs b/src/detections/detection.rs index a2685b9d..dfcf0ddf 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -187,7 +187,7 @@ impl Detection { .unwrap_or("-".to_owned()) .to_string(), rule.yaml["title"].as_str().unwrap_or("").to_string(), - rule.yaml["output"].as_str().unwrap_or("").to_string(), + rule.yaml["details"].as_str().unwrap_or("").to_string(), ); }