From: Jason Ish Date: Tue, 19 Dec 2023 18:13:23 +0000 (-0600) Subject: stats: add rules skipped X-Git-Tag: suricata-8.0.0-beta1~1897 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b453eea1502cc5455f383c4fe82c6011fee93495;p=thirdparty%2Fsuricata.git stats: add rules skipped Rule skipped is a count of the number of rules that are skipped due to missing requirements. Feature: #6637 --- diff --git a/etc/schema.json b/etc/schema.json index 76d88ec4c8..0756acd008 100644 --- a/etc/schema.json +++ b/etc/schema.json @@ -4871,6 +4871,9 @@ }, "rules_failed": { "type": "integer" + }, + "rules_skipped": { + "type": "integer" } }, "additionalProperties": false diff --git a/src/output-json-stats.c b/src/output-json-stats.c index 7bfcfc58ca..718298e485 100644 --- a/src/output-json-stats.c +++ b/src/output-json-stats.c @@ -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;