Project

General

Profile

Actions

Bug #1686

closed

Conflicting "no" for "totals" and "threads" in stats output

Added by Andreas Moe almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Enabeling stats, but setting both "totals" and "threads" to no, will lead to the stats being outputed (either if its JSON or the old style), but no data is created. For the old style the headers are created, and for the JSON style, only uptime is included.

- stats:
enabled: yes
filename: stats.log
interval: 8
[7516] 1/2/2016 -- 14:27:14 - (log-stats.c:257) <Debug> (LogStatsLogInitCtx) -- statslog_ctx->flags 00000001
- stats:
enabled: yes
threads: no
totals: no
filename: stats.log
interval: 8
[8027] 1/2/2016 -- 14:28:26 - (log-stats.c:257) <Debug> (LogStatsLogInitCtx) -- statslog_ctx->flags 00000000

{"timestamp":"2016-02-01T14:33:04.855565+0100","event_type":"stats","stats":{"uptime":16}}

Created PR for this: https://github.com/inliniac/suricata/pull/1826 (no feedback yet though).

Actions

Also available in: Atom PDF