Skip to main content

Prune-PCAP

Counts flows whose packets were not stored to PCAP because the server matched a skip pattern, keyed by the matched pattern.

PropertyValue
GUID{1E92FD61-5129-499D-0A12-883E9FC1C00C}
LayerSystem
InputPackets
Key typeMatched domain keyword
ImplementationLua — new_counters.lua, fed by skip_youtube.lua (apps/analyzers/prune-encrypted-pcap)
Trisul Appprune-encrypted-pcap (install from Trisul Apps)
Bucket / Topper60 s / 300 s
Enabled by defaultYes, once the app is installed

What it measures​

  • When a new flow starts, skip_youtube.lua looks up the flow's Z-end IP in the passive DNS LevelDB to get a domain name.
  • If the name matches the skip regex, the flow's packets are not stored and the key for the matched keyword gets +1.
  • The default regex is (youtube|googlevideo|twitter|ytimg|twimg|netflix|nflxvideo|nflximg|nflxext|acorn.tv|tubitv|atv-ext.amazon.com|atv-ps.amazon.com|hulu). You can override it with DNS_Regex_To_Skip in trisulnsm_skip_youtube.lua in the context config directory.
  • Requires the passive-dns app. Without its LevelDB nothing is skipped or counted.

Keys​

The text captured by the regex, that is the keyword that matched.

KeyMeaning
googlevideoFlows to YouTube video servers (*.googlevideo.com)
nflxvideoFlows to Netflix video servers
twimgFlows to Twitter image servers

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update made to this group in the interval, the total flows excluded from PCAP.

Meter list​

IDNameTypeUnitsTopBottomDescription
0flowsVT_COUNTERFlws2020+1 for each new flow excluded from PCAP storage by this keyword.
1Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
2Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.