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 almost 9 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 #1

Updated by Victor Julien almost 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Andreas Moe
  • Target version set to 70
Actions #2

Updated by Andreas Moe almost 9 years ago

  • % Done changed from 50 to 100

Merged through: https://github.com/inliniac/suricata/pull/1845

Will this be added to 3.0.1 or later?

Actions #3

Updated by Victor Julien almost 9 years ago

  • Target version changed from 70 to 3.0.1RC1

3.0.1 indeed. Thanks Andreas!

Actions #4

Updated by Andreas Moe almost 9 years ago

  • Status changed from Assigned to Resolved
Actions #5

Updated by Andreas Moe almost 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF