Skip to content

Commit

Permalink
stats: add rules skipped
Browse files Browse the repository at this point in the history
Rule skipped is a count of the number of rules that are skipped due to
missing requirements.

Feature: OISF#6637
  • Loading branch information
jasonish committed Dec 19, 2023
1 parent 5cc872f commit b453eea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4871,6 +4871,9 @@
},
"rules_failed": {
"type": "integer"
},
"rules_skipped": {
"type": "integer"
}
},
"additionalProperties": false
Expand Down
1 change: 1 addition & 0 deletions src/output-json-stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static json_t *EngineStats2Json(const DetectEngineCtx *de_ctx,
json_integer(sig_stat->good_sigs_total));
json_object_set_new(jdata, "rules_failed",
json_integer(sig_stat->bad_sigs_total));
json_object_set_new(jdata, "rules_skipped", json_integer(sig_stat->skipped_sigs_total));
}

return jdata;
Expand Down

0 comments on commit b453eea

Please sign in to comment.