misc-stats question

In misc-stats, we have a field in stats.lg labeled “plt_lag”. What exactly is this measuring? Also, in a reasonable deployment, what should we see as far as events_queued. Should this be close to zero? I am seeing a packet lag of 2.0-2.5, and several million events queued.

In misc-stats, we have a field in stats.lg labeled "plt_lag". What exactly is this measuring?

    ## Lag between the wall clock and packet timestamps if reading
    ## live traffic.
    pkt_lag: interval &log &optional;

This could mean that packets are getting pulled from a queue somewhere after they're timestamped. It doesn't necessarily mean a whole lot, but it could be an interesting data point in some circumstances.

Also, in a reasonable deployment, what should we see as far as events_queued. Should this be close to zero? I am seeing a packet lag of 2.0-2.5, and several million events queued.

    ## Number of events that have been queued since the last stats
    ## interval.
    events_queued: count &log;

This depends on your report interval (it's 5min by default) since it's reporting the number of events queued in the last report interval. You probably don't want it to be zero, it would mean that Bro isn't doing anything. Events are how almost all script execution happens too so I'd expect it to be reasonably high in many circumstances. In your case, this just means that you had several million events queued in a 5min period which would seem ok to me, but we don't have much data on this yet.

  .Seth