# Broctl netstats

**URL:** <https://community.zeek.org/t/broctl-netstats/5290>\
**Category:** Zeek\
**Created:** [May 3, 2018, 6:41pm UTC](https://community.zeek.org/t/broctl-netstats/5290 "2018-05-03T18:41:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carl\_Rotenan](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@Carl\_Rotenan](https://community.zeek.org/u/Carl_Rotenan)\
**Post date:** [May 3, 2018, 6:41pm UTC](https://community.zeek.org/t/broctl-netstats/5290/1 "2018-05-03T18:41:44Z")

</div>

Could someone explain the the dropped and link columns in the broctl netstats output?

Ex  
recvd=12409185 dropped=33782 link=12409185

I’m trying to figure out what is causing the drops.

Thanks.

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [May 9, 2018, 12:12am UTC](https://community.zeek.org/t/broctl-netstats/5290/2 "2018-05-09T00:12:30Z")

</div>

Hi,

> Could someone explain the the dropped and link columns in the broctl  
> netstats output?
> 
> Ex  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recvd=12409185 dropped=33782 link=12409185

The information comes out of the get\_net\_stats.bif. Documentation is at  
[https://www.bro.org/sphinx/scripts/base/bif/stats.bif.bro.html#id-get\_net\_stats](https://www.bro.org/sphinx/scripts/base/bif/stats.bif.bro.html#id-get_net_stats).

According to this, the numbers mean: "the number of packets (i) received  
by Bro, (ii) dropped, and (iii) seen on the link (not always available)."

For the standard pcap input method, received is incremented each time that  
Bro handles a packet. Dropped and link come out of pcap\_stats  
([pcap\_stats(3PCAP) man page | TCPDUMP & LIBPCAP](https://www.tcpdump.org/manpages/pcap_stats.3pcap.html)) and are set to  
ps\_recv (link) and ps\_drop (dropped). ps\_ifdrop does not seem to be  
available.

I hope that helps,  
Johanna

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:45pm UTC](https://community.zeek.org/t/broctl-netstats/5290/3 "2022-05-06T15:45:46Z")

</div>

Closed on May 6, 2022, 3:45pm UTC


