Project

General

Profile

Actions

Feature #6410

open

Log packets/bytes per second in Suricata stats

Added by Lukas Sismis about 1 year ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:
Beginner, C, Good First Issue

Description

In Suricata stats it could be nice to have an average of packet/bits per second (pps/bps) in the given delta between stats windows.
Say that stats are refreshed every 8 seconds (1 stats window). Then the average can be calculated as delta of packets/bytes between two stats windows divided by stats refresh interval.

e.g.

stat_window_new.pps = (stat_window_new.kernel_packets - stat_window_old.kernel_packets) / stat_refresh_interval

Actions

Also available in: Atom PDF