When we added feature #5976 (
72146b969), we overlook that we also have
a config stats option for the human-readable stats logs to output
0 counters.
Due to not seeing this before, we now have two different setting names
for basically the same thing, but in different logs:
- zero-valued-counters for EVE
- null-values for stats.log
This ensures we use the same terminology, and change the recently added
one to `null-values`, as this one has been around for longer.
Task #6962
counters, by default EVE Stats logs output all enabled counters, which may lead
to fairly verbose logs.
-To reduce log file size, one may set `zero-valued-counters` to false. Do note
+To reduce log file size, one may set `null-values` to false. Do note
that this may impact on the visibility of information for which a stats counter
as zero is relevant.
- stats:
# Don't log stats counters that are zero. Default: true
- #zero-valued-counters: false # False will NOT log stats counters: 0
+ #null-values: false # False will NOT log stats counters: 0
Date modifiers in filename
~~~~~~~~~~~~~~~~~~~~~~~~~~
threads: no # per thread stats
deltas: no # include delta values
# Don't log stats counters that are zero. Default: true
- #zero-valued-counters: false # False will NOT log stats counters: 0
+ #null-values: false # False will NOT log stats counters: 0
- dhcp:
# DHCP logging.
enabled: yes
const char *totals = ConfNodeLookupChildValue(conf, "totals");
const char *threads = ConfNodeLookupChildValue(conf, "threads");
const char *deltas = ConfNodeLookupChildValue(conf, "deltas");
- const char *zero_counters = ConfNodeLookupChildValue(conf, "zero-valued-counters");
+ const char *zero_counters = ConfNodeLookupChildValue(conf, "null-values");
SCLogDebug("totals %s threads %s deltas %s", totals, threads, deltas);
if ((totals != NULL && ConfValIsFalse(totals)) &&
threads: no # per thread stats
deltas: no # include delta values
# Don't log stats counters that are zero. Default: true
- #zero-valued-counters: false # False will NOT log stats counters: 0
+ #null-values: false # False will NOT log stats counters: 0
# bi-directional flows
- flow
# uni-directional flows