]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stats: add rules skipped 10078/head
authorJason Ish <jason.ish@oisf.net>
Tue, 19 Dec 2023 18:13:23 +0000 (12:13 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 19 Dec 2023 18:25:42 +0000 (12:25 -0600)
Rule skipped is a count of the number of rules that are skipped due to
missing requirements.

Feature: #6637

etc/schema.json
src/output-json-stats.c

index 76d88ec4c8fb99f55c37c32da7fa99f0903ee526..0756acd008006733d47cc71a70ab49544304edc2 100644 (file)
                                     },
                                     "rules_failed": {
                                         "type": "integer"
+                                    },
+                                    "rules_skipped": {
+                                        "type": "integer"
                                     }
                                 },
                                 "additionalProperties": false
index 7bfcfc58cad24aa8c962245f2967f057048e9bf2..718298e4859293caae590dcc779ca82baba92ebc 100644 (file)
@@ -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;