profiling: log rule profiling as json by default

We've been forcing JSON logging in our default configuration for some
time now, just make it the actual default.
pull/14505/head
Jason Ish 7 months ago
parent d89b35db56
commit b3d45e5507

@ -56,7 +56,7 @@ extern int profiling_output_to_file;
int profiling_rules_enabled = 0;
static char profiling_file_name[PATH_MAX] = "";
static const char *profiling_file_mode = "a";
static int profiling_rule_json = 0;
static bool profiling_rule_json = true;
/**
* Sort orders for dumping profiled rules.
@ -157,8 +157,9 @@ void SCProfilingRulesGlobalInit(void)
profiling_output_to_file = 1;
}
if (SCConfNodeChildValueIsTrue(conf, "json")) {
profiling_rule_json = 1;
if (SCConfNodeChildValueIsFalse(conf, "json")) {
profiling_rule_json = false;
}
}
}

@ -1970,8 +1970,8 @@ profiling:
# Limit the number of sids for which stats are shown at exit (per sort).
limit: 10
# output to json
json: yes
# output to json, default = yes.
#json: yes
# per keyword profiling
keywords:

Loading…
Cancel
Save