]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
counters: Add new default for decoder events
authorShivani Bhardwaj <shivanib134@gmail.com>
Fri, 30 Aug 2019 16:16:44 +0000 (21:46 +0530)
committerVictor Julien <victor@inliniac.net>
Mon, 9 Sep 2019 17:52:51 +0000 (19:52 +0200)
Set the new default for decoder events to `decoder.event` instead of the
previously used `decoder`. Remove the corresponding warning for 5.0.

src/counters.c
suricata.yaml.in

index ac350a0719d0325b08d2575e24cbe4f98c9695a1..e7f624990dbf89754192173b80bdbf3613a96894 100644 (file)
@@ -100,7 +100,7 @@ static char stats_enabled = TRUE;
 
 /**< add decoder events as stats? enabled by default */
 bool stats_decoder_events = true;
-const char *stats_decoder_events_prefix = "decoder";
+const char *stats_decoder_events_prefix = "decoder.event";
 /**< add stream events as stats? disabled by default */
 bool stats_stream_events = false;
 
@@ -256,12 +256,7 @@ static void StatsInitCtxPreOutput(void)
 
         const char *prefix = NULL;
         if (ConfGet("stats.decoder-events-prefix", &prefix) != 1) {
-            prefix = "decoder";
-            SCLogWarning(SC_WARN_DEFAULT_WILL_CHANGE, "in 5.0 the default "
-                    "for decoder event stats will go from "
-                    "'decoder.<proto>.<event>' to 'decoder.event.<proto>.<event>'. "
-                    "See ticket #2225. To suppress this message, "
-                    "set stats.decoder-events-prefix in the yaml.");
+            prefix = "decoder.event";
         }
         stats_decoder_events_prefix = prefix;
     }
index 75c61ce9f7f7a509fbc2cfc218a57e4a048099a0..4180af2e7a0c769102aa79df618213ac9afce18f 100644 (file)
@@ -65,7 +65,7 @@ stats:
   #decoder-events: true
   # Decoder event prefix in stats. Has been 'decoder' before, but that leads
   # to missing events in the eve.stats records. See issue #2225.
-  decoder-events-prefix: "decoder.event"
+  #decoder-events-prefix: "decoder.event"
   # Add stream events as stats.
   #stream-events: false