Project

General

Profile

Actions

Feature #247

closed

Config option to set stats.log update interval

Added by Edward Fjellskål about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:

Description

In src/counters.h SC_PERF_MGMTT_TTS is hardcoded to 8 sec.
This makes the stats.log file large fast, and I dont need "real-time" stats updates :)
Also, my way of graphing suricata in munin does not need more than an update each 5 minutes.

I therefor propose an option in the suricata.yaml to be able to manually overwrite the default,
without recompiling suricata :)


Files

Actions #1

Updated by Victor Julien about 14 years ago

  • Assignee set to Victor Julien
  • Target version set to 1.1beta2

I agree this should be configurable. Also maybe some ppl want to disable stats completely, so that should be an option as well.

Actions #2

Updated by Gurvinder Singh about 14 years ago

Attached patch provides the support.

Actions #3

Updated by Victor Julien about 14 years ago

Applied thanks Gurvinder. alert-fastlog.c had a compiler warning and I cleaned up the counters.c code a bit. See attached patch.

Actions

Also available in: Atom PDF