Skip to content

Commit

Permalink
fix: multiple key agg case
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Jun 3, 2024
1 parent 30a2f45 commit b344562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detections/rule/correlation_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ use yaml_rust::Yaml;

use crate::detections::configs::StoredStatic;
use crate::detections::message::{AlertMessage, ERROR_LOG_STACK};
use crate::detections::rule::{DetectionNode, RuleNode};
use crate::detections::rule::aggregation_parser::{
AggregationConditionToken, AggregationParseInfo,
};
use crate::detections::rule::count::TimeFrameInfo;
use crate::detections::rule::selectionnodes::OrSelectionNode;
use crate::detections::rule::{DetectionNode, RuleNode};

fn is_related_rule(rule_node: &RuleNode, id_or_title: &str) -> bool {
if let Some(hash) = rule_node.yaml.as_hash() {
Expand Down Expand Up @@ -107,7 +107,7 @@ fn get_group_by_from_yaml(yaml: &Yaml) -> Result<String, Box<dyn Error>> {
group_by.push(group);
}

Ok(group_by.join("_"))
Ok(group_by.join(","))
}
fn parse_tframe(value: String) -> Result<TimeFrameInfo, Box<dyn Error>> {
let ttype;
Expand Down

0 comments on commit b344562

Please sign in to comment.