exceptions: move app_layer stats to common counter

Part of making the exception policy stats counters more search
friendly.

Task #7185
pull/12891/head
Juliana Fajardini 8 months ago committed by Victor Julien
parent a8b9965f69
commit 6c484064d8

@ -4677,11 +4677,6 @@
"error": {
"type": "object",
"properties": {
"exception_policy": {
"description":
"Consolidated stats on how many times app-layer error exception policy was applied, and which one",
"$ref": "#/$defs/exceptionPolicy"
},
"bittorrent-dht": {
"description":
"Errors encountered parsing BitTorrent DHT protocol",
@ -6158,6 +6153,19 @@
},
"additionalProperties": false
},
"exception_policy": {
"type": "object",
"properties": {
"app_layer": {
"type": "object",
"error": {
"description":
"Consolidated stats on how many times app-layer error exception policy was applied, and which one",
"$ref": "#/$defs/exceptionPolicy"
}
}
}
},
"file_store": {
"type": "object",
"properties": {

@ -1213,7 +1213,7 @@ void AppLayerSetupCounters(void)
/* We don't log stats counters if exception policy is `ignore`/`not set` */
if (g_applayerparser_error_policy != EXCEPTION_POLICY_NOT_SET) {
/* Register global counters for app layer error exception policy summary */
const char *eps_default_str = "app_layer.error.exception_policy.";
const char *eps_default_str = "exception_policy.app_layer.error.";
for (enum ExceptionPolicy i = EXCEPTION_POLICY_NOT_SET + 1; i < EXCEPTION_POLICY_MAX; i++) {
if (IsAppLayerErrorExceptionPolicyStatsValid(i)) {
snprintf(app_layer_error_eps_stats.eps_name[i],

Loading…
Cancel
Save