fixed level data when detected by aggregation rule
This commit is contained in:
@@ -424,7 +424,7 @@ impl Detection {
|
|||||||
|
|
||||||
let detect_info = DetectInfo {
|
let detect_info = DetectInfo {
|
||||||
rulepath: (&rule.rulepath).to_owned(),
|
rulepath: (&rule.rulepath).to_owned(),
|
||||||
level: rule.yaml["level"].as_str().unwrap_or("").to_owned(),
|
level: LEVEL_ABBR.get(&level).unwrap_or(&level).to_string(),
|
||||||
computername: "-".to_owned(),
|
computername: "-".to_owned(),
|
||||||
eventid: "-".to_owned(),
|
eventid: "-".to_owned(),
|
||||||
detail: output,
|
detail: output,
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ pub fn insert(
|
|||||||
for (k, v) in &detect_info.ext_field {
|
for (k, v) in &detect_info.ext_field {
|
||||||
let converted_reserve_info = convert_profile_reserved_info(v, profile_converter);
|
let converted_reserve_info = convert_profile_reserved_info(v, profile_converter);
|
||||||
if v == "%RecordInformation%" {
|
if v == "%RecordInformation%" {
|
||||||
tmp_converted_info.insert(k.to_owned(), converted_reserve_info);
|
tmp_converted_info.insert(k.to_owned(), v.to_owned());
|
||||||
} else {
|
} else {
|
||||||
tmp_converted_info.insert(
|
tmp_converted_info.insert(
|
||||||
k.to_owned(),
|
k.to_owned(),
|
||||||
|
|||||||
Reference in New Issue
Block a user