diff --git a/src/analysisd/format/to_json.c b/src/analysisd/format/to_json.c index 336ea995b..5b8145476 100644 --- a/src/analysisd/format/to_json.c +++ b/src/analysisd/format/to_json.c @@ -27,6 +27,11 @@ char *Eventinfo_to_jsonstr(const Eventinfo *lf) cJSON_AddNumberToObject(rule, "level", lf->generated_rule->level); + if (lf->generated_rule->group) { + cJSON_AddStringToObject(rule, "group", lf->generated_rule->group); + } + + if (lf->generated_rule->comment) { cJSON_AddStringToObject(rule, "comment", lf->generated_rule->comment); }