Repository navigation
Low PCAP retention (0.2 days) while forward node disk usage stays around 21% #16338
Version3.3.0 Installation MethodSecurity Onion ISO image Descriptionconfiguration Installation TypeDistributed Locationairgap Hardware SpecsMeets minimum requirements CPU16 RAM128 Storage for /400gb Storage for /nsm5tb Network Traffic Collectiontap Network Traffic SpeedsLess than 1Gbps StatusYes, all services on all nodes are running OK Salt StatusNo, there are no failures LogsNo, there are no additional clues DetailThe Grid page shows PCAP retention of about 0.2 days on our forward node. At the same time, its disk usage stays around 21% and never gets close to 85%. We would expect PCAP to use more of the available disk and keep data for longer. We also applied a BPF filter to exclude heavy backup traffic from PCAP, but retention is still about 0.2 days. Questions:
Guidelines
|
Replies: 2 comments 2 replies
|
PCAP on current Security Onion is written by Suricata (the global pcap engine option only lists SURICATA), and it has its own size budget that doesn't depend on how full the disk is. That budget is The value is set per node when the node is created. Check Administration > Configuration > suricata > pcap > maxsize for that node. The docs say of this value: "You may need to adjust this value based on your disk space and desired pcap retention." Retention scales roughly linearly with it, up to what |
|
Thanks again for the explanation. We checked further and found something that doesn't fit, so I'd appreciate your help. We have two separate grids, both on 3.3.0 with identical settings. suricata.pcap.maxsize is 25 (GB) at grid level on both, with no node-level overrides. Grid A, forward node:
Grid B, forward node:
At ~88 Mb/s, 17 hours of PCAP should be far more than 25 GB, so it looks like maxsize is not being enforced the same way on both grids. Questions:
|
PCAP on current Security Onion is written by Suricata (the global pcap engine option only lists SURICATA), and it has its own size budget that doesn't depend on how full the disk is. That budget is
suricata.pcap.maxsize, documented as the "Maximum size in GB for total disk usage of all PCAP files written by Suricata".salt/suricata/map.jinjaturns it into thepcap-logmax-fileslimit (maxsize * 1000 / filesize / threads, so with the default 1000 MB files and one thread, 25 GB is 25 files). Retention is therefore bounded by that value no matter how much free space/nsmhas, and a BPF filter only changes how fast the budget fills.The value is set per node when the node is created.
so-minion…