Project

General

Profile

Actions

Feature #247

closed
EF GS

Config option to set stats.log update interval

Feature #247: Config option to set stats.log update interval

Added by Edward Fjellskål over 15 years ago. Updated over 15 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

VJ Updated by Victor Julien over 15 years ago Actions #1

  • 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.

GS Updated by Gurvinder Singh over 15 years ago Actions #2

Attached patch provides the support.

VJ Updated by Victor Julien over 15 years ago Actions #3

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: PDF Atom