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