policy/misc/stats.bro

Stats

Log memory/packet/lag statistics. Differs from policy/misc/profiling.bro in that this is lighter-weight (much less info, and less load to generate).

Namespace:Stats
Imports:base/frameworks/notice
Source File:/scripts/policy/misc/stats.bro

Summary

Options

Stats::stats_report_interval: interval &redef How often stats are reported.

Types

Stats::Info: record  

Redefinitions

Log::ID: enum  

Events

Stats::log_stats: event Event to catch stats as they are written to the logging stream.

Detailed Interface

Options

Stats::stats_report_interval
Type:interval
Attributes:&redef
Default:1.0 min

How often stats are reported.

Types

Stats::Info
Type:

record

ts: time &log

Timestamp for the measurement.

peer: string &log

Peer that generated this log. Mostly for clusters.

mem: count &log

Amount of memory currently in use in MB.

pkts_proc: count &log

Number of packets processed since the last stats interval.

events_proc: count &log

Number of events processed since the last stats interval.

events_queued: count &log

Number of events that have been queued since the last stats interval.

lag: interval &log &optional

Lag between the wall clock and packet timestamps if reading live traffic.

pkts_recv: count &log &optional

Number of packets received since the last stats interval if reading live traffic.

pkts_dropped: count &log &optional

Number of packets dropped since the last stats interval if reading live traffic.

pkts_link: count &log &optional

Number of packets seen on the link since the last stats interval if reading live traffic.

bytes_recv: count &log &optional

Number of bytes received since the last stats interval if reading live traffic.

Events

Stats::log_stats
Type:event (rec: Stats::Info)

Event to catch stats as they are written to the logging stream.


Previous Page

policy/misc/scan.bro

Copyright 2013, The Bro Project. Last updated on July 19, 2016. Created using Sphinx 1.4.4.